Beispiel #1
0
 /// <summary>
 /// 构造
 /// </summary>
 /// <param name="code"></param>
 /// <param name="msg"></param>
 public AjaxResult(int code, string msg)
 {
     Data = new AjaxBackData(code, msg);
 }
Beispiel #2
0
 /// <summary>
 /// 构造
 /// </summary>
 /// <param name="ex"></param>
 public AjaxResult(Exception ex)
 {
     Data = new AjaxBackData(ex);
 }
Beispiel #3
0
 /// <summary>
 /// 构造
 /// </summary>
 /// <param name="data"></param>
 public AjaxResult(dynamic data, int total = 0)
 {
     Data = new AjaxBackData(data, total);
 }