/// <summary> /// 设置返回结果 /// </summary> /// <param name="statusCode">返回状态</param> /// <param name="data">返回内容</param> /// <param name="PageIndex">当前页码</param> public void setResult(BaseService.ApiStatusCode statusCode, object data, int PageIndex) { this.code = (int)statusCode; this.desc = statusCode.ToString(); this.result = data; this.index = PageIndex; }
/// <summary> ///设置返回结果 /// </summary> /// <param name="statusCode">返回状态</param> public void setResult(BaseService.ApiStatusCode statusCode) { this.code = (int)statusCode; this.desc = statusCode.ToString(); }
/// <summary> /// 设置返回结果 /// </summary> /// <param name="statusCode">返回状态</param> /// <param name="data">返回内容</param> public void setResult(BaseService.ApiStatusCode statusCode, object data) { this.code = (int)statusCode; this.desc = statusCode.ToString(); this.result = data; }
public ResultModel(BaseService.ApiStatusCode statusCode) { this.code = (int)statusCode; this.desc = statusCode.ToString(); }