track/src/TrackCenter.Domain/Aggregates/OrderAggregate/OrderOperationRecordIndex.cs
2025-08-11 18:19:40 +08:00

62 lines
1.3 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.

using Nest;
using TrackCenter.Domain.Consts;
using TrackCenter.Domain.SeedWork;
namespace TrackCenter.Domain.Aggregates.OrderAggregate;
/// <summary>
/// 订单操作记录
/// </summary>
[ElasticsearchType(RelationName = GlobalConst.OrderOperationRecordIndex)]
public class OrderOperationRecordIndex : IdBaseIndex
{
/// <summary>
/// 索引名称
/// </summary>
public string IndexName { get; set; } = null!;
/// <summary>
/// 订单Id
/// </summary>
public int OrderId { get; set; }
/// <summary>
/// 订单号
/// </summary>
public string OrderNo { get; set; } = null!;
/// <summary>
/// 操作类型
/// </summary>
public string OptionType { get; set; } = null!;
/// <summary>
/// 前期报文(json)
/// </summary>
public string Content { get; set; } = null!;
/// <summary>
/// 创建人
/// </summary>
public int CreateUserId { get; set; }
/// <summary>
/// 创建人姓名
/// </summary>
public string CreateUserName { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreateTime { get; set; }
}
public enum OrderOperationType
{
创建订单 = 1,
修改订单 = 2,
创建轨迹 = 3,
修改轨迹 = 4,
删除轨迹 = 5
}