/// <summary> /// 创建返回信息(返回处理失败) /// </summary> /// <param name="result">结果消息</param> /// <returns></returns> public new static Result <T> ReFailure(ValueTuple <int, string> result) { Result <T> res = new Result <T>(); res.To(result); return(res); }
/// <summary> /// 创建返回信息(返回处理失败) /// </summary> /// <param name="result">结果</param> /// <returns></returns> public static Result <T> ReFailure(Result result) { Result <T> re = new Result <T>(); re.To(result); return(re); }
/// <summary> /// 创建返回信息(返回处理失败) /// </summary> /// <param name="message">结果消息</param> /// <param name="status">结果状态</param> /// <returns></returns> public new static Result <T> ReFailure(string message, int status) { Result <T> result = new Result <T>(); result.To(message, status); return(result); }