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 };
|
}
|
}
|
}
|