2024-11-14 23:06:18 +08:00
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
using Newtonsoft.Json;
|
2024-11-14 12:06:40 +08:00
|
|
|
|
|
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 AGVResponseLayout<T> where T : class, new()
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 头部
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[JsonProperty("header")]
|
2024-11-14 23:06:18 +08:00
|
|
|
|
[JsonPropertyName("header")]
|
2024-11-14 12:06:40 +08:00
|
|
|
|
public AGVResponseHeader? Header { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[JsonProperty("body")]
|
2024-11-14 23:06:18 +08:00
|
|
|
|
[JsonPropertyName("body")]
|
2024-11-14 12:06:40 +08:00
|
|
|
|
public AGVResponseBody<T>? Body { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// AGV 报文响应头
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class AGVResponseHeader
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 请求ID
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[JsonProperty("requestId")]
|
2024-11-14 23:06:18 +08:00
|
|
|
|
[JsonPropertyName("requestId")]
|
2024-11-14 12:06:40 +08:00
|
|
|
|
public string? RequestId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 时间戳
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[JsonProperty("timestamp")]
|
2024-11-14 23:06:18 +08:00
|
|
|
|
[JsonPropertyName("timestamp")]
|
2024-11-14 12:06:40 +08:00
|
|
|
|
public string? TimeStamp { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 版本号
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[JsonProperty("version")]
|
2024-11-14 23:06:18 +08:00
|
|
|
|
[JsonPropertyName("version")]
|
|
|
|
|
|
public string? Version { get; set; }
|
2024-11-14 12:06:40 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// AGV 响应体
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <typeparam name="T"></typeparam>
|
|
|
|
|
|
public class AGVResponseBody<T> where T : class, new()
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 是否成功
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[JsonProperty("success")]
|
2024-11-14 23:06:18 +08:00
|
|
|
|
[JsonPropertyName("success")]
|
2024-11-14 12:06:40 +08:00
|
|
|
|
public bool? Success { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 条码
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[JsonProperty("code")]
|
2024-11-14 23:06:18 +08:00
|
|
|
|
[JsonPropertyName("code")]
|
2024-11-14 12:06:40 +08:00
|
|
|
|
public string? Code { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 响应信息
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[JsonProperty("message")]
|
2024-11-14 23:06:18 +08:00
|
|
|
|
[JsonPropertyName("message")]
|
2024-11-14 12:06:40 +08:00
|
|
|
|
public string? Message { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 响应数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[JsonProperty("data")]
|
2024-11-15 11:37:55 +08:00
|
|
|
|
[JsonPropertyName("data")]
|
2024-11-14 12:06:40 +08:00
|
|
|
|
public T? Data { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|