| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | |
| | | using static HH.WCS.Mobox3.DSZSH.Dtos.Response.BaseResponse; |
| | | using static HH.WCS.Mobox3.DSZSH.Dtos.Response.MoboxResponse; |
| | | |
| | | namespace HH.WCS.Mobox3.DSZSH.Helpers { |
| | | public class ResultHelper { |
| | | public static Result BuildResult(int code, string message, bool pringLog = true) { |
| | | if (pringLog) { |
| | | LogHelper.Info(message); |
| | | } |
| | | return new Result { Code = code, Message = message }; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 构建 <see cref="SimpleResult"/> 返回值,选择打印日志信息(默认打印) |