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 }); }
public static BaseResponse Create(ApiEnum.ResponseCode code, object data, int Successed = 1) { return(Create(code, null, data, Successed)); }
public static BaseResponse Create(ApiEnum.ResponseCode code, string message, int Successed = 1) { return(Create(code, message, null, Successed)); }