From 37051424de7c4a97132fbb06e45df594790aabf9 Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期二, 16 十二月 2025 18:40:38 +0800
Subject: [PATCH] 优化功能
---
项目代码/WCSServices/WIDESEAWCS_DTO/WMSResponseContent.cs | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 50 insertions(+), 0 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCSServices/WIDESEAWCS_DTO/WMSResponseContent.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCSServices/WIDESEAWCS_DTO/WMSResponseContent.cs"
index d02f463..86eeb02 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCSServices/WIDESEAWCS_DTO/WMSResponseContent.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCSServices/WIDESEAWCS_DTO/WMSResponseContent.cs"
@@ -3,6 +3,7 @@
using System.Linq;
using System.Text;
using System.Threading.Tasks;
+using WIDESEAWCS_Core;
namespace WIDESEA_External.Model
{
@@ -24,4 +25,53 @@
/// </summary>
public object Data { get; set; }
}
+ public class BinCodeObj
+ {
+ public string Bincode { get; set; }
+ }
+ public class WMSReceiveTaskContent
+ {
+ public bool Status { get; set; }
+
+ public int Code { get; set; }
+
+ public string Message { get; set; }
+
+ public List<BinCodeObj> SucessData { get; set; }
+
+ public List<BinCodeObj> FailData { get; set; }
+
+ public static WMSReceiveTaskContent Instance => new WMSReceiveTaskContent();
+
+ public WMSReceiveTaskContent()
+ {
+ SucessData=new List<BinCodeObj>();
+ FailData=new List<BinCodeObj>();
+ }
+
+ public WMSReceiveTaskContent(bool status)
+ {
+ Status = status;
+ }
+
+ public WMSReceiveTaskContent OK()
+ {
+ Status = true;
+ return this;
+ }
+
+ public WMSReceiveTaskContent OK(string message = null)
+ {
+ Status = true;
+ Message = message;
+ return this;
+ }
+
+ public WMSReceiveTaskContent Error(string message = null)
+ {
+ Status = false;
+ Message = message;
+ return this;
+ }
+ }
}
--
Gitblit v1.9.3