You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

96 lines
2.8 KiB
C#

using System.ComponentModel.DataAnnotations;
namespace DS.WMS.Core.TaskPlat.Dtos
{
/// <summary>
///
/// </summary>
public class TaskManageOrderMessageHeadInfo
{
/// <summary>
/// 报文惟一主键
/// </summary>
///<example>08dabd4e-dcc3-471a-8031-cf066ed0a8f4</example>
public string GID { get; set; } = Guid.NewGuid().ToString();
/// <summary>
/// 业务主键
/// </summary>
public long? BSNO { get; set; }
/// <summary>
/// 报文类型 TASK-任务
/// </summary>
/// <example>TASK</example>
[Required(ErrorMessage = "必填")]
public string MessageType { get; set; }
/// <summary>
/// 发送方代码
/// </summary>
/// <example>MAIL_PARSE</example>
[Required(ErrorMessage = "必填")]
public string SenderId { get; set; }
/// <summary>
/// 发送方名称
/// </summary>
/// <example>邮件解析</example>
[Required(ErrorMessage = "必填")]
public string SenderName { get; set; }
/// <summary>
/// 接收方代码
/// </summary>
/// <example>TaskManage</example>
[Required(ErrorMessage = "必填")]
public string ReceiverId { get; set; }
/// <summary>
/// 接收方名称
/// </summary>
/// <example>任务管理平台</example>
[Required(ErrorMessage = "必填")]
public string ReceiverName { get; set; }
/// <summary>
/// 请求方登录TOKEN可以是真实的登录人TOKEN或者是服务模拟登录人TOKEN
/// </summary>
/// <example>eyJhbGciOiJSUzI1NiIsImtpZCI6IkQ1RTkxMDI5OUU0RURFNUZEM0EwNTJBMEFDRDUzMUQzIiwidHlwIjoiYXQrand0In0</example>
public string Token { get; set; }
/// <summary>
/// 版本号 默认1.0
/// </summary>
/// <example>1.0</example>
[Required(ErrorMessage = "必填")]
public string Version { get; set; } = "1.0";
/// <summary>
/// 请求时间
/// </summary>
/// <example>2022-12-23 14:29:11</example>
public string RequestDate { get; set; }
/// <summary>
/// 请求授权KEY
/// </summary>
/// <example>testkey</example>
public string SenderKey { get; set; }
/// <summary>
/// 请求操作类型
/// </summary>
/// <example>Add</example>
[Required(ErrorMessage = "必填")]
public string RequestAction { get; set; } = "Add";
/// <summary>
/// 大简云用户Id(跨平台传)
/// </summary>
/// <example>testkey</example>
public string DJYUserId { get; set; }
}
}