예제 #1
0
 /// <summary>
 /// 表示失败的结果
 /// </summary>
 /// <param name="code">错误码</param>
 /// <returns></returns>
 public static RestResult False(ErrorCode code)
 {
     var model = new RestModel { Msg = code.GetFieldDisplay(), Code = code.GetHashCode() };
     return new RestResult(model);
 }