using Newtonsoft.Json; namespace WcsMain.ApiClient.DataEntity.AGVEntity; /// /// AGV 接口响应数据模板类 /// /// public class AGVResponseLayout where T : class, new() { /// /// 头部 /// [JsonProperty("header")] public AGVResponseHeader? Header { get; set; } /// /// 数据 /// [JsonProperty("body")] public AGVResponseBody? Body { get; set; } } /// /// AGV 报文响应头 /// public class AGVResponseHeader { /// /// 请求ID /// [JsonProperty("requestId")] public string? RequestId { get; set; } /// /// 时间戳 /// [JsonProperty("timestamp")] public string? TimeStamp { get; set; } /// /// 版本号 /// [JsonProperty("version")] public string? version { get; set; } } /// /// AGV 响应体 /// /// public class AGVResponseBody where T : class, new() { /// /// 是否成功 /// [JsonProperty("success")] public bool? Success { get; set; } /// /// 条码 /// [JsonProperty("code")] public string? Code { get; set; } /// /// 响应信息 /// [JsonProperty("message")] public string? Message { get; set; } /// /// 响应数据 /// [JsonProperty("data")] public T? Data { get; set; } }