ResultCode.cs 953 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using System.ComponentModel;
  2. namespace Infrastructure
  3. {
  4. public enum ResultCode
  5. {
  6. [Description("success")]
  7. SUCCESS = 1,
  8. [Description("没有更多数据")]
  9. NO_DATA = 210,
  10. [Description("参数错误")]
  11. PARAM_ERROR = 101,
  12. [Description("验证码错误")]
  13. CAPTCHA_ERROR = 103,
  14. [Description("登录错误")]
  15. LOGIN_ERROR = 105,
  16. [Description("操作失败")]
  17. FAIL = 100,
  18. [Description("服务端出错啦")]
  19. GLOBAL_ERROR = 500,
  20. [Description("自定义异常")]
  21. CUSTOM_ERROR = 110,
  22. [Description("非法请求")]
  23. INVALID_REQUEST = 116,
  24. [Description("授权失败")]
  25. OAUTH_FAIL = 201,
  26. [Description("未授权")]
  27. DENY = 401,
  28. [Description("授权访问失败")]
  29. FORBIDDEN = 403,
  30. [Description("Bad Request")]
  31. BAD_REQUEST = 400
  32. }
  33. }