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