admin/src/Oms.Application/Integrations/SmallBagTrack/ISmallBagTrackOrderClient.cs
zzh 26c840cdb1
All checks were successful
Build and Deploy / deploy (push) Successful in 1m2s
fix: 加固本地存储失败不回滚创单,并完善揽收大包轨迹同步
避免 /app/wwwroot 不可写时预报成功被回滚;同步推送 test 部署出口资质等已合入能力。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-24 09:51:02 +08:00

49 lines
1.8 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace Oms.Application.Integrations.SmallBagTrack;
public interface ISmallBagTrackOrderClient
{
Task UpsertAsync(SmallBagTrackUpsertRequest request, CancellationToken cancellationToken = default);
/// <summary>
/// 追加一条生命周期轨迹节点(POST ProviderService/Track/Upsert),默认小包 orderType=1。
/// </summary>
Task AppendLifecycleTrackAsync(
string orderNo,
string trackCode,
string? authorization = null,
CancellationToken cancellationToken = default);
/// <summary>
/// 追加生命周期轨迹节点,返回调用结果(用于按序编排)。
/// </summary>
Task<SmallBagTrackUpsertResult> AppendLifecycleTrackResultAsync(
string orderNo,
string trackCode,
int orderType,
string? authorization = null,
CancellationToken cancellationToken = default);
/// <summary>
/// 同步调用并返回完整请求/响应(仅调试)。
/// </summary>
Task<SmallBagTrackUpsertResult> UpsertDebugAsync(SmallBagTrackUpsertRequest request, CancellationToken cancellationToken = default);
/// <summary>
/// 创建/更新大包轨迹订单(POST ProviderService/Order/UpsertBigBag)。
/// </summary>
Task<SmallBagTrackUpsertResult> UpsertBigBagAsync(
SmallBagTrackUpsertBigBagRequest request,
CancellationToken cancellationToken = default);
/// <summary>
/// 关联大包与小包(POST ProviderService/Order/Link)。
/// </summary>
Task<SmallBagTrackUpsertResult> LinkOrdersAsync(
string parentOrderNo,
int parentOrderType,
IReadOnlyList<string> linkOrderNos,
int linkOrderType,
string? authorization = null,
CancellationToken cancellationToken = default);
}