From a6a33f6916afbf1fc629baecb772939cda2ee981 Mon Sep 17 00:00:00 2001
From: wankeda <Administrator@DESKTOP-HAU3ST3>
Date: 星期四, 13 三月 2025 17:58:12 +0800
Subject: [PATCH] 代码提交
---
代码管理/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseModels/WebResponseContent.cs | 39 +++++++++++++++++++++++++++++++++++++++
1 files changed, 39 insertions(+), 0 deletions(-)
diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseModels/WebResponseContent.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseModels/WebResponseContent.cs"
index 66feb1b..7dd3a2f 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseModels/WebResponseContent.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseModels/WebResponseContent.cs"
@@ -3,6 +3,7 @@
using System.Linq;
using System.Text;
using System.Threading.Tasks;
+using OfficeOpenXml.FormulaParsing.Excel.Functions.DateTime;
namespace WIDESEA_Core
{
@@ -16,10 +17,12 @@
Status = status;
}
public bool Status { get; set; }
+ public bool success { get; set; }
public int Code { get; set; }
public string Message { get; set; }
+ public string msg { get; set; }
public object Data { get; set; }
@@ -50,4 +53,40 @@
return this;
}
}
+
+ public class WCSback
+ {
+ /// <summary>
+ /// 鏄惁鎴愬姛锛屾垚鍔熻繑鍥炵┖锛屽紓甯歌繑鍥炲紓甯镐俊鎭�
+ /// </summary>
+ public string message { get; set; }
+ /// <summary>
+ /// 1鎴愬姛,0澶辫触
+ /// </summary>
+ public int code { get; set; }
+ public bool success { get; set; }
+ public bool data { get; set; }
+
+ public string msg { get; set; }
+
+ public static WCSback Instance
+ {
+ get { return new WCSback(); }
+ }
+ public WCSback OK(string message = null, object data = null)
+ {
+ success = true;
+ code = 200;
+ msg = "璇锋眰鎴愬姛";
+ data = true;
+ return this;
+ }
+
+ public WCSback Error(string message = null)
+ {
+ code = 999;
+ message = message;
+ return this;
+ }
+ }
}
--
Gitblit v1.9.3