diff --git a/WcsMain/ApiClient/DataEntity/WmsEntity/ApplyInRequest.cs b/WcsMain/ApiClient/DataEntity/WmsEntity/ApplyInRequest.cs index 98d758b..189b4df 100644 --- a/WcsMain/ApiClient/DataEntity/WmsEntity/ApplyInRequest.cs +++ b/WcsMain/ApiClient/DataEntity/WmsEntity/ApplyInRequest.cs @@ -1,4 +1,5 @@ -using System.Text.Json.Serialization; +using Newtonsoft.Json; +using System.Text.Json.Serialization; namespace WcsMain.ApiClient.DataEntity.WmsEntity; @@ -20,25 +21,25 @@ public class ApplyInRequest /// /// 申请点位 /// - [JsonPropertyName("point")] + [JsonProperty("point")] public string? Point { get; set; } /// /// 载具号 /// - [JsonPropertyName("vehicleNo")] + [JsonProperty("vehicleNo")] public string? VehicleNo { get; set; } /// /// 条码信息 /// - [JsonPropertyName("codeMessage")] + [JsonProperty("codeMessage")] public string? CodeMessage { get; set; } /// /// 备注 /// - [JsonPropertyName("remark")] + [JsonProperty("remark")] public string? Remark { get; set; } } \ No newline at end of file diff --git a/WcsMain/ApiClient/DataEntity/WmsEntity/SendWmsTaskStatusRequest.cs b/WcsMain/ApiClient/DataEntity/WmsEntity/SendWmsTaskStatusRequest.cs index 16600c6..b2b2080 100644 --- a/WcsMain/ApiClient/DataEntity/WmsEntity/SendWmsTaskStatusRequest.cs +++ b/WcsMain/ApiClient/DataEntity/WmsEntity/SendWmsTaskStatusRequest.cs @@ -1,4 +1,5 @@ -using System.Text.Json.Serialization; +using Newtonsoft.Json; +using System.Text.Json.Serialization; namespace WcsMain.ApiClient.DataEntity.WmsEntity; @@ -10,31 +11,31 @@ public class SendWmsTaskStatusRequest /// /// 任务号 /// - [JsonPropertyName("taskId")] + [JsonProperty("taskId")] public string? TaskId { get; set; } /// /// 任务状态 /// - [JsonPropertyName("taskStatus")] + [JsonProperty("taskStatus")] public int? TaskStatus { get; set; } /// /// 任务类型 /// - [JsonPropertyName("destination")] + [JsonProperty("destination")] public string? Destination { get; set; } /// /// 载具号 /// - [JsonPropertyName("vehicleNo")] + [JsonProperty("vehicleNo")] public string? VehicleNo { get; set; } /// /// 信息 /// - [JsonPropertyName("message")] + [JsonProperty("message")] public string? Message { get; set; } } \ No newline at end of file diff --git a/WcsMain/ApiClient/DataEntity/WmsEntity/UploadPickStandRequest.cs b/WcsMain/ApiClient/DataEntity/WmsEntity/UploadPickStandRequest.cs index 07be159..44f96a0 100644 --- a/WcsMain/ApiClient/DataEntity/WmsEntity/UploadPickStandRequest.cs +++ b/WcsMain/ApiClient/DataEntity/WmsEntity/UploadPickStandRequest.cs @@ -1,4 +1,5 @@ -using System.Text.Json.Serialization; +using Newtonsoft.Json; +using System.Text.Json.Serialization; namespace WcsMain.ApiClient.DataEntity.WmsEntity; @@ -10,18 +11,18 @@ public class UploadPickStandRequest /// /// 载具号 /// - [JsonPropertyName("vehicleNo")] + [JsonProperty("vehicleNo")] public string? VehicleNo { get; set; } /// /// 拣选站台 /// - [JsonPropertyName("pickStand")] + [JsonProperty("pickStand")] public string? PickStand { get; set; } /// /// 备注 /// - [JsonPropertyName("remark")] + [JsonProperty("remark")] public string? Remark { get; set; } } \ No newline at end of file diff --git a/WcsMain/ApiClient/DataEntity/WmsEntity/WmsResponse.cs b/WcsMain/ApiClient/DataEntity/WmsEntity/WmsResponse.cs index ba6fec1..464c132 100644 --- a/WcsMain/ApiClient/DataEntity/WmsEntity/WmsResponse.cs +++ b/WcsMain/ApiClient/DataEntity/WmsEntity/WmsResponse.cs @@ -1,4 +1,5 @@ -using System.Text.Json.Serialization; +using Newtonsoft.Json; +using System.Text.Json.Serialization; namespace WcsMain.ApiClient.DataEntity.WmsEntity; @@ -7,12 +8,12 @@ public class WmsResponse /// /// 代码 /// - [JsonPropertyName("code")] + [JsonProperty("code")] public int? Code { get; set; } /// /// 信息 /// - [JsonPropertyName("message")] + [JsonProperty("message")] public string? Message { get; set; } } \ No newline at end of file