예제 #1
0
 /// <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;
 }
예제 #2
0
 /// <summary>
 ///设置返回结果
 /// </summary>
 /// <param name="statusCode">返回状态</param>
 public void setResult(BaseService.ApiStatusCode statusCode)
 {
     this.code = (int)statusCode;
     this.desc = statusCode.ToString();
 }
예제 #3
0
 /// <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;
 }
예제 #4
0
 public ResultModel(BaseService.ApiStatusCode statusCode)
 {
     this.code = (int)statusCode;
     this.desc = statusCode.ToString();
 }