| | |
| | | using System.Linq; |
| | | using System.Web; |
| | | |
| | | namespace SPump.Dto |
| | | namespace IStation.Dto |
| | | { |
| | | /// <summary> |
| | | /// 执行返回的通用类,该类带有详细的业务数据,除了告诉用户此次调用是否成功与否,以及一个表示提示信息的字符串外,还带的详细的业务数据 |
| | |
| | | /// <param name="data">业务数据</param> |
| | | /// <param name="type">状态标识</param> |
| | | /// <param name="message">提示信息</param> |
| | | public ApiResult_Status(SPump.Dto.ApiResultCode type, int status, T data, string message) |
| | | public ApiResult_Status(IStation.Dto.ApiResultCode type, int status, T data, string message) |
| | | : base(type, message) |
| | | { |
| | | this.Status = status; |
| | |
| | | /// <param name="status"></param> |
| | | /// <param name="message"></param> |
| | | public ApiResult_Status(T data, int status, string message) |
| | | : base(string.IsNullOrEmpty(message) ? SPump.Dto.ApiResultCode.Success : SPump.Dto.ApiResultCode.Error, message) |
| | | : base(string.IsNullOrEmpty(message) ? IStation.Dto.ApiResultCode.Success : IStation.Dto.ApiResultCode.Error, message) |
| | | { |
| | | this.Status = status; |
| | | this.Data = data; |