/// <summary> /// 构造函数 /// </summary> /// <param name="resultType">返回类型</param> /// <param name="message">返回消息</param> public MResultModel(MResultType resultType, string message = "") { _resultType = resultType; _message = message; }
/// <summary> /// 构造函数 /// </summary> /// <param name="resultType">返回类型</param> /// <param name="message">返回消息</param> public DataResult(MResultType resultType, string message = "") { ResultType = resultType; Message = message; }
/// <summary> /// 构造方法 /// </summary> /// <param name="resultType">返回对象类型</param> /// <param name="data">返回数据对象</param> /// <param name="pagingM">分页信息</param> /// <param name="message">返回消息</param> public MResultPagingModel(MResultType resultType, T data, MPagingModel pagingM, string message = "") : base(resultType, data, message) { _pagingInfo = pagingM; }
/// <summary> /// 构造方法 /// </summary> /// <param name="resultType">返回对象类型</param> /// <param name="data">返回数据对象</param> /// <param name="pagingM">分页信息</param> /// <param name="message">返回消息</param> public PagedResult(MResultType resultType, T data, MPageModel pagingM, string message = "") : base(resultType, data, message) { PageInfo = pagingM; }