2024-11-15 11:37:55 +08:00
|
|
|
|
using System.Text.Json.Serialization;
|
2024-11-14 23:06:18 +08:00
|
|
|
|
|
2024-11-15 11:37:55 +08:00
|
|
|
|
namespace WcsMain.ApiServe.Dto.AGV;
|
2024-11-14 23:06:18 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 接收AGV请求的实体
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class AGVRequestLayout<T>
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 头部
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[JsonPropertyName("header")]
|
|
|
|
|
|
public AGVRequestHeader? Header { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[JsonPropertyName("body")]
|
|
|
|
|
|
public T? Body { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// AGV 报文请求头
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class AGVRequestHeader
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 快仓唯一标识
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[JsonPropertyName("appKey")]
|
|
|
|
|
|
public string? AppKey { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 应用密钥
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[JsonPropertyName("appSecret")]
|
|
|
|
|
|
public string? AppSecret { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 请求ID
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[JsonPropertyName("requestId")]
|
|
|
|
|
|
public string? RequestId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 时间戳
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[JsonPropertyName("timestamp")]
|
|
|
|
|
|
public string? TimeStamp { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 版本号
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[JsonPropertyName("version")]
|
|
|
|
|
|
public string? version { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|