feat: 扩展领域模型与配置
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
using TakeoutSaaS.Domain.Deliveries.Enums;
|
||||
using TakeoutSaaS.Shared.Abstractions.Entities;
|
||||
|
||||
namespace TakeoutSaaS.Domain.Deliveries.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 配送状态事件流水。
|
||||
/// </summary>
|
||||
public sealed class DeliveryEvent : MultiTenantEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 配送单标识。
|
||||
/// </summary>
|
||||
public Guid DeliveryOrderId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 事件类型。
|
||||
/// </summary>
|
||||
public DeliveryEventType EventType { get; set; } = DeliveryEventType.Updated;
|
||||
|
||||
/// <summary>
|
||||
/// 事件描述。
|
||||
/// </summary>
|
||||
public string Message { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 原始数据 JSON。
|
||||
/// </summary>
|
||||
public string? Payload { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 发生时间。
|
||||
/// </summary>
|
||||
public DateTime OccurredAt { get; set; } = DateTime.UtcNow;
|
||||
}
|
||||
Reference in New Issue
Block a user