using Furion.DistributedIDGenerator; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Myshipping.Application { /// /// 追踪报文 /// public class TrackingMessageInfo { /// /// 表头 /// public TrackingMessageHeadInfo Head { get; set; } /// /// 表体 /// public TrackingMessageMainInfo Main { get; set; } } public class TrackingMessageHeadInfo { /// /// 报文惟一主键 /// ///08dabd4e-dcc3-471a-8031-cf066ed0a8f4 public string GID { get; set; } = IDGen.NextID().ToString(); /// /// 报文类型 TASK-任务 /// /// TASK [Required(ErrorMessage = "必填")] public string MessageType { get; set; } /// /// 发送方代码 /// /// MAIL_PARSE [Required(ErrorMessage = "必填")] public string SenderId { get; set; } /// /// 发送方名称 /// /// 邮件解析 [Required(ErrorMessage = "必填")] public string SenderName { get; set; } /// /// 接收方代码 /// /// TaskManage [Required(ErrorMessage = "必填")] public string ReceiverId { get; set; } /// /// 接收方名称 /// /// 任务管理平台 [Required(ErrorMessage = "必填")] public string ReceiverName { get; set; } /// /// 请求方登录TOKEN(可以是真实的登录人TOKEN或者是服务模拟登录人TOKEN) /// /// eyJhbGciOiJSUzI1NiIsImtpZCI6IkQ1RTkxMDI5OUU0RURFNUZEM0EwNTJBMEFDRDUzMUQzIiwidHlwIjoiYXQrand0In0 public string Token { get; set; } /// /// 版本号 默认1.0 /// /// 1.0 [Required(ErrorMessage = "必填")] public string Version { get; set; } = "1.0"; /// /// 请求时间 /// /// 2022-12-23 14:29:11 public string RequestDate { get; set; } /// /// 请求授权KEY /// /// testkey public string SenderKey { get; set; } /// /// 请求操作类型 AddOrModify-新增或更新 Cancel-取消 /// /// Add [Required(ErrorMessage = "必填")] public string RequestAction { get; set; } = "AddOrModify"; } public class TrackingMessageMainInfo { /// /// 业务系统代码 /// [Required(ErrorMessage = "必填")] public string BusiSystemCode { get; set; } /// /// 业务主键 /// public string BusiId { get; set;} /// /// 提单号 /// public string MBlNo { get; set; } /// /// 船名航次 /// public string VesselVoyno { get; set; } /// /// 订舱编号 /// public string OrderNo { get; set; } /// /// 任务对应接收操作人ID /// public string RecvUserId { get; set; } /// /// 任务对应接收操作人名称 /// public string RecvUserName { get; set; } /// /// 状态列表 /// public List StatusList { get; set; } } public class TrackingMessageMainStatusInfo { /// /// 状态代码 /// [Required(ErrorMessage = "必填")] public string StatusCode { get; set; } /// /// 状态名称 /// [Required(ErrorMessage = "必填")] public string StatusName { get; set; } /// /// 状态产生时间 /// public DateTime StatusDate { get; set; } /// /// 状态产生值 /// public string StatusVal { get; set; } /// /// 状态操作类型 MANUAL-手工 AUTO-自动 /// public string OpertType { get; set; } } }