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 { /// /// 规则平台请求报文头(HEAD) /// public class RulesEngineWebAPIHeadBase { /// /// 报文惟一主键 /// public string GID { get; set; } = IDGen.NextID().ToString(); /// /// 报文类型 BUSI_RULE-业务规则校验 /// [Required(ErrorMessage = "必填")] public string MessageType { get; set; } /// /// 发送方代码 /// [Required(ErrorMessage = "必填")] public string SenderId { get; set; } /// /// 发送方名称 /// [Required(ErrorMessage = "必填")] public string SenderName { get; set; } /// /// 接收方代码 /// [Required(ErrorMessage = "必填")] public string ReceiverId { get; set; } /// /// 接收方名称 /// [Required(ErrorMessage = "必填")] public string ReceiverName { get; set; } /// /// 请求方登录TOKEN(可以是真实的登录人TOKEN或者是服务模拟登录人TOKEN) /// public string Token { get; set; } /// /// 版本号 默认1.0 /// [Required(ErrorMessage = "必填")] public string Version { get; set; } = "1.0"; /// /// 请求时间 /// public string RequestDate { get; set; } /// /// 请求授权KEY /// public string SenderKey { get; set; } /// /// 请求操作类型 /// [Required(ErrorMessage = "必填")] public string RequestAction { get; set; } = "Add"; } }