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