2024-11-14 12:06:40 +08:00
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
2024-11-15 11:37:55 +08:00
|
|
|
|
namespace WcsMain.ApiClient.AGV.Dto;
|
2024-11-14 12:06:40 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// AGV 接口请求数据格式
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <typeparam name="T"></typeparam>
|
|
|
|
|
|
public class AGVRequestLayout<T> where T : class, new()
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 头部
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[JsonProperty("header")]
|
|
|
|
|
|
public AGVRequestHeader? Header { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[JsonProperty("body")]
|
|
|
|
|
|
public T? Body { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// AGV 报文请求头
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class AGVRequestHeader
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 快仓唯一标识
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[JsonProperty("appKey")]
|
2024-11-15 11:37:55 +08:00
|
|
|
|
public string? AppKey { get; set; }
|
2024-11-14 12:06:40 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 应用密钥
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[JsonProperty("appSecret")]
|
|
|
|
|
|
public string? AppSecret { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 请求ID
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[JsonProperty("requestId")]
|
|
|
|
|
|
public string? RequestId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 时间戳
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[JsonProperty("timestamp")]
|
|
|
|
|
|
public string? TimeStamp { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 版本号
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[JsonProperty("version")]
|
|
|
|
|
|
public string? version { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|