/// <summary> /// 构造函数 /// </summary> /// <param name="_type"></param> /// <param name="_msg"></param> protected ExecResult(OpResultStatus _type, string _msg) : this(_type, _msg, default(TResultData)) { }
/// <summary> /// 构造函数 /// </summary> /// <param name="_type"></param> /// <param name="_msg"></param> /// <param name="_data"></param> protected ExecResult(OpResultStatus _type, string _msg, TResultData _data) { Status = _type; Message = _msg; Result = _data; }
/// <summary> /// 构造函数 /// </summary> /// <param name="_type"></param> /// <param name="_msg"></param> /// <param name="_data"></param> protected ExcePageResult(OpResultStatus _type, string _msg, PageResult <TResultData> _data) { Status = _type; Message = _msg; Result = _data; }
/// <summary> /// 构造函数 /// </summary> /// <param name="_type"></param> protected ExecResult(OpResultStatus _type) : this(_type, null, default(TResultData)) { }
/// <summary> /// 构造函数 /// </summary> /// <param name="_type"></param> protected ExcePageResult(OpResultStatus _type) : this(_type, null, default(PageResult <TResultData>)) { }
/// <summary> /// 构造函数 /// </summary> /// <param name="_type"></param> /// <param name="_msg"></param> protected ExcePageResult(OpResultStatus _type, string _msg) : this(_type, _msg, default(PageResult <TResultData>)) { }
/// <summary> /// 初始化一个<see cref="OpResult"/>类型的新实例 /// </summary> public OpPageResult(OpResultStatus resultType, string message) : this(resultType, message, new List <TData>()) { }
/// <summary> /// 初始化一个<see cref="OpResult"/>类型的新实例 /// </summary> public OpPageResult(OpResultStatus resultType, string message, IReadOnlyList <TData> data, int totalCount = 0) : base(resultType, message, new PageResult <TData>(data, totalCount)) { }
/// <summary> /// 初始化一个<see cref="OpResult"/>类型的新实例 /// </summary> public OpPageResult(OpResultStatus resultType) : this(resultType, null, new List <TData>()) { }
public BadOpResult(OpResultStatus status) : base(status) { }
/// <summary> /// 初始化一个<see cref="OpResult"/>类型的新实例 /// </summary> public OpResult(OpResultStatus resultType, string message, object data) : base(resultType, message, data) { }
/// <summary> /// 初始化一个<see cref="OpResult"/>类型的新实例 /// </summary> public OpResult(OpResultStatus resultType, string message) : this(resultType, message, null) { }
/// <summary> /// 初始化一个<see cref="OpResult"/>类型的新实例 /// </summary> public OpResult(OpResultStatus resultType) : this(resultType, null, null) { }