kazelee
2025-05-20 ef839d119eec2c28fac5f5ba175d71f926afae44
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace HH.WCS.Mobox3.AnGang.Dtos.Response {
    public class ErpResponse {
        public class ErpResult {
            /// <summary>
            /// 接口反馈码
            /// </summary>
            public int errCode { get; set; }
            /// <summary>
            /// 错误说明
            /// </summary>
            public string errMsg { get; set; }
        }
 
        public static ErpResult BuildErpResult(int code, string message, bool printLog = true) {
            if (printLog) {
                LogHelper.Info(message);
            }
            return new ErpResult { errCode = code, errMsg = message };
        }
    }
}