Пример #1
0
 public static BaseResponse Create(ApiEnum.ResponseCode code, string message, object data, int Successed = 1)
 {
     return(new BaseResponse
     {
         Successed = Successed.ToString(),
         ErrorCode = code,
         ErrorMsg = string.IsNullOrEmpty(message) ? code.ToString() : message,
         Body = data
     });
 }
Пример #2
0
 public static BaseResponse Create(ApiEnum.ResponseCode code, object data, int Successed = 1)
 {
     return(Create(code, null, data, Successed));
 }
Пример #3
0
 public static BaseResponse Create(ApiEnum.ResponseCode code, string message, int Successed = 1)
 {
     return(Create(code, message, null, Successed));
 }