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 TaskManageOrderMessageHeadInfo
{
///
/// 报文惟一主键
///
///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; }
///
/// 请求操作类型
///
/// Add
[Required(ErrorMessage = "必填")]
public string RequestAction { get; set; } = "Add";
///
/// 大简云用户Id(跨平台传)
///
/// testkey
public string DJYUserId { get; set; }
}
}