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, /// /// 请求Token授权信息参数【用户编号】不存在 /// [Text("请求Token授权信息参数【用户编号】不存在")] ParameterStaffIdNotExist = 402, /// /// 请求TOKEN失效 /// [Text("请求TOKEN失效")] TokenInvalid = 403, /// /// HTTP请求类型不合法 /// [Text("HTTP请求类型不合法")] HttpMehtodError = 405, /// /// HTTP请求不合法,请求参数可能被篡改 /// [Text("HTTP请求不合法,请求参数可能被篡改")] HttpRequestError = 406, /// /// 该URL已经失效或请求时间戳失效 /// [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 }