示例#1
0
        /// <summary>
        /// 创建返回信息(返回处理失败)
        /// </summary>
        /// <param name="result">结果消息</param>
        /// <returns></returns>
        public new static ResultPagedList <T> ReFailure(ValueTuple <int, string> result)
        {
            ResultPagedList <T> res = new ResultPagedList <T>();

            res.To(result);
            return(res);
        }
示例#2
0
        /// <summary>
        /// 创建返回信息(返回处理失败)
        /// </summary>
        /// <param name="result">结果</param>
        /// <returns></returns>
        public new static ResultPagedList <T> ReFailure(Result result)
        {
            ResultPagedList <T> re = new ResultPagedList <T>();

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

            result.To(message, status);
            return(result);
        }