示例#1
0
 public static ReturnBase Error(this ReturnBase returnBase, ErrorEnum errorEnum)
 {
     returnBase.Code      = (int)errorEnum;
     returnBase.IsSuccess = false;
     returnBase.Message   = errorEnum.ToString();
     return(returnBase);
 }
示例#2
0
 public static ReturnBase Error(this ReturnBase returnBase)
 {
     returnBase.Code      = (int)ErrorEnum.未知错误;
     returnBase.IsSuccess = false;
     returnBase.Message   = ErrorEnum.未知错误.ToString();
     return(returnBase);
 }
示例#3
0
 public static ReturnBase Success(this ReturnBase returnBase)
 {
     returnBase.Code      = (int)ErrorEnum.成功;
     returnBase.IsSuccess = true;
     returnBase.Message   = ErrorEnum.成功.ToString();
     return(returnBase);
 }