コード例 #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();
 }