Пример #1
0
 /// <summary>
 /// 获得一个成功返回对象
 /// </summary>
 /// <param name="data">返回数据对象</param>
 /// <param name="pagingM">分页信息</param>
 /// <param name="message">返回消息</param>
 /// <returns>成功返回对象</returns>
 public static MResultPagingModel <T> GetSuccessResultM(T data, MPagingModel pagingM, string message = "")
 {
     return(new MResultPagingModel <T>(MResultType.Success, data, pagingM, message));
 }
Пример #2
0
 /// <summary>
 /// 获得一个错误返回对象
 /// </summary>
 /// <param name="data">返回数据对象</param>
 /// <param name="pagingM">分页信息</param>
 /// <param name="message">返回消息</param>
 /// <returns>错误返回对象</returns>
 public static MResultPagingModel <T> GetErrorResultM(T data = default(T), MPagingModel pagingM = null, string message = "")
 {
     return(new MResultPagingModel <T>(MResultType.Error, data, pagingM, message));
 }
Пример #3
0
 /// <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;
 }