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 OperUserId { get; set; } /// /// 操作触发人用户名称 /// public string OperUserName { get; set; } /// /// 操作触发人租户ID /// public long OperTenantId { get; set; } /// /// 操作触发人租户名称 /// public string OperTenantName { get; set; } /// /// 状态操作类型 MANUAL-手工 AUTO-自动 /// public TrackingOperTypeEnum OpertType { get; set; } /// /// 推送类型 /// public TrackingPushTypeEnum PushType { get; set; } /// /// 来源类型 /// public TrackingSourceTypeEnum SourceType { get; set; } /// /// 服务项目列表 /// public List ProjectList { get; set; } /// /// 服务状态列表 /// public List StatusList { get; set; } } /// /// 服务状态详情 /// public class TrackingMessageMainStatusInfo { /// /// 服务项目代码 /// public string ServiceProjectCode { get; set; } /// /// 服务项目名称 /// public string ServiceProjectName { get; set; } /// /// 状态代码 /// public string StatusCode { get; set; } /// /// 状态名称 /// public string StatusName { get; set; } /// /// 状态产生时间 /// public Nullable StatusDate { get; set; } /// /// 状态产生值 /// public string StatusVal { get; set; } /// /// 状态备注 /// public string Remark { get; set; } } /// /// 服务详情 /// public class TrackingMessageMainProjectInfo { /// /// 服务项目代码 /// public string ServiceProjectCode { get; set; } /// /// 服务项目名称 /// public string ServiceProjectName { get; set; } } }