Some checks failed
Build and Deploy TenantApi + SkuWorker / build-and-deploy (push) Failing after 12s
- 新增 OrderStatusChangedEvent、OrderUrgeEvent 事件类型 - 扩展 EventRoutingKeys(orders.status-changed、orders.urged) - 丰富 OrderCreatedEvent(StoreId、Channel、DeliveryType 等字段) - CreateOrderCommandHandler 注入 IEventPublisher 并发布事件 - 新增接单/拒单/出餐完成/确认送达 Command + Handler(4对) - 新增 MassTransit Consumer(OrderCreated/StatusChanged/Urge → SignalR) - Program.cs 注册 3 个 Consumer
63 lines
1.3 KiB
C#
63 lines
1.3 KiB
C#
namespace TakeoutSaaS.Application.Messaging.Events;
|
||
|
||
/// <summary>
|
||
/// 订单创建事件。
|
||
/// </summary>
|
||
public sealed class OrderCreatedEvent
|
||
{
|
||
/// <summary>
|
||
/// 订单标识。
|
||
/// </summary>
|
||
public long OrderId { get; init; }
|
||
|
||
/// <summary>
|
||
/// 订单编号。
|
||
/// </summary>
|
||
public string OrderNo { get; init; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 实付金额。
|
||
/// </summary>
|
||
public decimal Amount { get; init; }
|
||
|
||
/// <summary>
|
||
/// 所属租户。
|
||
/// </summary>
|
||
public long TenantId { get; init; }
|
||
|
||
/// <summary>
|
||
/// 门店标识。
|
||
/// </summary>
|
||
public long StoreId { get; init; }
|
||
|
||
/// <summary>
|
||
/// 下单渠道。
|
||
/// </summary>
|
||
public int Channel { get; init; }
|
||
|
||
/// <summary>
|
||
/// 履约类型。
|
||
/// </summary>
|
||
public int DeliveryType { get; init; }
|
||
|
||
/// <summary>
|
||
/// 顾客姓名。
|
||
/// </summary>
|
||
public string? CustomerName { get; init; }
|
||
|
||
/// <summary>
|
||
/// 商品摘要。
|
||
/// </summary>
|
||
public string? ItemsSummary { get; init; }
|
||
|
||
/// <summary>
|
||
/// 桌号。
|
||
/// </summary>
|
||
public string? TableNo { get; init; }
|
||
|
||
/// <summary>
|
||
/// 创建时间(UTC)。
|
||
/// </summary>
|
||
public DateTime CreatedAt { get; init; }
|
||
}
|