admin/src/Oms.Application/Dtos/Orders/OrderParcelBatchCreateOutput.cs
zzh 4f3bbd17bc feat(order): 订单批量任务 RabbitMQ 异步处理与治理 API
引入批量 Job 表、RabbitMQ 队列与消费者,支持导入/小包创建及我的订单批量操作异步化,并提供任务列表、重试失败、取消 pending 与 DLX 监控接口及测试。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-08 09:52:22 +08:00

43 lines
969 B
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.Dtos.Orders;
/// <summary>
/// 批量创建小包出参。
/// </summary>
public class OrderParcelBatchCreateOutput
{
/// <summary>
/// 本次批量处理批次号。
/// </summary>
public string BatchNo { get; set; } = string.Empty;
/// <summary>
/// 成功数量。
/// </summary>
public int SuccessCount { get; set; }
/// <summary>
/// 失败数量。
/// </summary>
public int FailCount { get; set; }
/// <summary>
/// 逐条处理结果。
/// </summary>
public List<OrderParcelBatchCreateItemOutput> Items { get; set; } = [];
/// <summary>
/// 关联批量 Job(异步模式)。
/// </summary>
public int? JobId { get; set; }
/// <summary>
/// 是否已转为异步 Job 处理。
/// </summary>
public bool Async { get; set; }
/// <summary>
/// 异步任务总数。
/// </summary>
public int Total { get; set; }
}