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