Esempio n. 1
0
 /// <summary>
 /// 构造
 /// </summary>
 /// <param name="errorCode"></param>
 /// <param name="errorMsg"></param>
 public AjaxResult(ErrorCodeEnum errorCode, string errorMsg)
 {
     Data = new AjaxBackData <T>(errorCode, errorMsg);
 }
Esempio n. 2
0
 /// <summary>
 /// 构造
 /// </summary>
 /// <param name="ex"></param>
 public AjaxResult(Exception ex)
 {
     Data = new AjaxBackData <T>(ex);
 }
Esempio n. 3
0
 /// <summary>
 /// 构造
 /// </summary>
 /// <param name="data"></param>
 /// <param name="errorCode"></param>
 /// <param name="errorMsg"></param>
 public AjaxResult(T data, ErrorCodeEnum errorCode = ErrorCodeEnum.ok, string errorMsg = "ok")
 {
     Data = new AjaxBackData <T>(data, errorCode, errorMsg);
 }