From d8db1698c125618c1b5f62b009204ddc5d4eed5a Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期三, 19 三月 2025 20:34:08 +0800
Subject: [PATCH] 成品代码更新....
---
代码管理/WMS/WIDESEA_WMSServer/WIDESEA_DTO/ERP/ErpResponseContent.cs | 58 +++++++++++++++++++++++++++++++++-------------------------
1 files changed, 33 insertions(+), 25 deletions(-)
diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_DTO/ERP/ErpResponseContent.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_DTO/ERP/ErpResponseContent.cs"
index 3ae8a32..339459c 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_DTO/ERP/ErpResponseContent.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_DTO/ERP/ErpResponseContent.cs"
@@ -8,39 +8,28 @@
namespace WIDESEA_DTO
{
+ /// <summary>
+ ///
+ /// </summary>
[ModelValidate]
public class ErpResponseContent
{
- public class content
- {
- /// <summary>
- ///
- /// </summary>
- public string Code { get; set; }
- /// <summary>
- ///
- /// </summary>
- public string Name { get; set; }
- /// <summary>
- ///
- /// </summary>
- public string ShortName { get; set; }
- }
+
//public class Root
//{
/// <summary>
///
/// </summary>
- public bool bSucc { get; set; } = true;
+ public bool BSucc { get; set; } = true;
/// <summary>
///
/// </summary>
- public string strCode { get; set; } = "0000";
+ public string StrCode { get; set; } = "0000";
/// <summary>
/// 鎵ц鎴愬姛
/// </summary>
- public string strMsg { get; set; } = "鎵ц鎴愬姛";
+ public string StrMsg { get; set; } = "鎵ц鎴愬姛";
/// <summary>
///
/// </summary>
@@ -48,7 +37,7 @@
/// <summary>
///
/// </summary>
- public content Content { get; set; }
+ public Content Content { get; set; }
//}
public static ErpResponseContent Instance
{
@@ -56,18 +45,37 @@
}
public ErpResponseContent OK(string message = null)
{
- bSucc = true;
- strCode = "0000";
- strMsg = message == null ? "鎵ц鎴愬姛" : message;
+ BSucc = true;
+ StrCode = "0000";
+ StrMsg = message == null ? "鎵ц鎴愬姛" : message;
return this;
}
public ErpResponseContent Error(string message = null)
{
- bSucc = false;
- strCode = "404";
- strMsg = message == null ? "鎵ц澶辫触" : message;
+ BSucc = false;
+ StrCode = "404";
+ StrMsg = message == null ? "鎵ц澶辫触" : message;
return this;
}
}
+
+ /// <summary>
+ ///
+ /// </summary>
+ public class Content
+ {
+ /// <summary>
+ ///
+ /// </summary>
+ public string Code { get; set; }
+ /// <summary>
+ ///
+ /// </summary>
+ public string Name { get; set; }
+ /// <summary>
+ ///
+ /// </summary>
+ public string ShortName { get; set; }
+ }
}
--
Gitblit v1.9.3