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