引入批量 Job 表、RabbitMQ 队列与消费者,支持导入/小包创建及我的订单批量操作异步化,并提供任务列表、重试失败、取消 pending 与 DLX 监控接口及测试。 Co-authored-by: Cursor <cursoragent@cursor.com>
40 lines
842 B
C#
40 lines
842 B
C#
namespace Oms.Application.Dtos.Orders;
|
|
|
|
public class OrderBatchQueueStatOutput
|
|
{
|
|
public string QueueName { get; set; } = string.Empty;
|
|
|
|
public uint MessageCount { get; set; }
|
|
|
|
public uint ConsumerCount { get; set; }
|
|
}
|
|
|
|
public class OrderBatchDlxStatsOutput
|
|
{
|
|
public bool Enabled { get; set; }
|
|
|
|
public uint DeadLetterMessageCount { get; set; }
|
|
|
|
public uint DlxAlertThreshold { get; set; }
|
|
|
|
public bool Alert { get; set; }
|
|
|
|
public List<OrderBatchQueueStatOutput> Queues { get; set; } = [];
|
|
}
|
|
|
|
public class OrderBatchJobManageOutput
|
|
{
|
|
public int JobId { get; set; }
|
|
|
|
public int RetriedCount { get; set; }
|
|
|
|
public int CancelledCount { get; set; }
|
|
|
|
public string Status { get; set; } = string.Empty;
|
|
}
|
|
|
|
public class OrderBatchJobRetryFailedInput
|
|
{
|
|
public List<int> ItemIds { get; set; } = [];
|
|
}
|