using System.Collections.Generic;
|
|
using Newtonsoft.Json;
|
|
namespace HH.WCS.Mobox3.AnGang.Dtos.Response {
|
public class MoboxResponse {
|
/// <summary>
|
/// Mobox 接口返回
|
/// </summary>
|
public class SimpleResult {
|
[JsonProperty("resultCode")]
|
public int resultCode { get; set; }
|
|
[JsonProperty("resultMsg")]
|
public string resultMsg { get; set; }
|
|
[JsonProperty("result")]
|
public List<object> Results { get; set; } = new List<object>();
|
}
|
|
public static SimpleResult BuildSimpleResult(int code, string message, bool pringLog = true) {
|
if (pringLog) {
|
LogHelper.Info(message);
|
}
|
return new SimpleResult { resultCode = code, resultMsg = message };
|
}
|
}
|
}
|