123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- using Lottomat.Util.Extension;
- namespace Lottomat.Application.Code
- {
- #region ===========全局通用状态枚举===========
-
-
-
- public enum JsonObjectStatus
- {
- #region 系统
-
-
-
- Default = -1,
-
-
-
- [Text("请求(或处理)成功")]
- Success = 200,
-
-
-
- [Text("内部请求出错")]
- Error = 500,
-
-
-
- [Text("操作失败")]
- Fail = 408,
-
-
-
- [Text("服务器异常")]
- Exception = 409,
- #endregion
- #region Http请求
-
-
-
- [Text("请求授权信息参数不完整或不正确")]
- ParameterError = 400,
-
-
-
- [Text("未授权")]
- Unauthorized = 401,
-
-
-
- [Text("请求Token授权信息参数【用户编号】不存在")]
- ParameterStaffIdNotExist = 402,
-
-
-
- [Text("请求TOKEN失效")]
- TokenInvalid = 403,
-
-
-
- [Text("HTTP请求类型不合法")]
- HttpMehtodError = 405,
-
-
-
- [Text("HTTP请求不合法,请求参数可能被篡改")]
- HttpRequestError = 406,
-
-
-
- [Text("该URL已经失效或请求时间戳失效")]
- UrlExpireError = 407,
- #endregion
- #region 登录验证
-
-
-
- [Text("账号错误")]
- AccountErr = 410,
-
-
-
- [Text("密码错误")]
- PasswordErr = 411,
-
-
-
- [Text("验证码错误")]
- ValidateCodeErr = 412,
-
-
-
- [Text("用户不存在")]
- UserNotExist = 413,
-
-
-
- [Text("记录已经存在")]
- RecordAlreadyExists = 414,
-
-
-
- [Text("记录不存在")]
- RecordNotExists = 419,
- #endregion
- #region 账号状态
-
-
-
- [Text("正常")]
- AccountNormal = 415,
-
-
-
- [Text("账号被锁定")]
- AccountLock = 416,
-
-
-
- [Text("账号被禁用")]
- AccountDisable = 417,
-
-
-
- [Text("未启用")]
- AccountNotEnabled = 418,
- #endregion
-
- }
- #endregion
- }
|