Пример #1
0
 /// <summary>
 /// 构造
 /// </summary>
 /// <param name="code"></param>
 /// <param name="message"></param>
 /// <param name="data"></param>
 public IEnumerableResult(ResultCode code, string message, IEnumerableData <T> data)
 {
     this.code    = code;
     this.message = message;
     this.data    = data;
 }
Пример #2
0
 /// <summary>
 /// 构造
 /// </summary>
 /// <param name="data"></param>
 public IEnumerableResult(IEnumerable <T> data)
 {
     this.code    = ResultCode.Success;
     this.message = "获取数据成功";
     this.data    = new IEnumerableData <T>(data);
 }