コード例 #1
0
 public ResponseResult(bool success, string message,
                       object data = null,
                       ResultEnum.ErrorType errorType = ResultEnum.ErrorType.无异常)
 {
     Success   = success;
     Message   = message;
     Data      = data;
     ErrorType = errorType;
 }
コード例 #2
0
 public ResponseResult(ResultEnum.IsSuccess success, string message,
                       object data = null,
                       ResultEnum.ErrorType errorType = ResultEnum.ErrorType.无异常)
 {
     Success   = ((int)success) == 0?false:true;
     Message   = message;
     Data      = data;
     ErrorType = errorType;
 }