예제 #1
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="_type"></param>
 /// <param name="_msg"></param>
 protected ExecResult(OpResultStatus _type, string _msg)
     : this(_type, _msg, default(TResultData))
 {
 }
예제 #2
0
 /// <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;
 }
예제 #3
0
 /// <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;
 }
예제 #4
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="_type"></param>
 protected ExecResult(OpResultStatus _type)
     : this(_type, null, default(TResultData))
 {
 }
예제 #5
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="_type"></param>
 protected ExcePageResult(OpResultStatus _type)
     : this(_type, null, default(PageResult <TResultData>))
 {
 }
예제 #6
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="_type"></param>
 /// <param name="_msg"></param>
 protected ExcePageResult(OpResultStatus _type, string _msg)
     : this(_type, _msg, default(PageResult <TResultData>))
 {
 }
예제 #7
0
 /// <summary>
 /// 初始化一个<see cref="OpResult"/>类型的新实例
 /// </summary>
 public OpPageResult(OpResultStatus resultType, string message)
     : this(resultType, message, new List <TData>())
 {
 }
예제 #8
0
 /// <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))
 {
 }
예제 #9
0
 /// <summary>
 /// 初始化一个<see cref="OpResult"/>类型的新实例
 /// </summary>
 public OpPageResult(OpResultStatus resultType)
     : this(resultType, null, new List <TData>())
 {
 }
예제 #10
0
 public BadOpResult(OpResultStatus status) : base(status)
 {
 }
예제 #11
0
 /// <summary>
 /// 初始化一个<see cref="OpResult"/>类型的新实例
 /// </summary>
 public OpResult(OpResultStatus resultType, string message, object data)
     : base(resultType, message, data)
 {
 }
예제 #12
0
 /// <summary>
 /// 初始化一个<see cref="OpResult"/>类型的新实例
 /// </summary>
 public OpResult(OpResultStatus resultType, string message)
     : this(resultType, message, null)
 {
 }
예제 #13
0
 /// <summary>
 /// 初始化一个<see cref="OpResult"/>类型的新实例
 /// </summary>
 public OpResult(OpResultStatus resultType)
     : this(resultType, null, null)
 {
 }