// // // namespace ERP.Framework.Exceptions { /// /// 错误编码 6位 /// public class ErrorCode { /// /// 响应成功 /// public const int SUCCESS = 200; /// /// 响应失败 /// public const int ERROR = 500; #region Framework /// /// 无法获取当前请求IP /// public const int NO_IP = 000001; /// /// Token校验失败 /// public const int TOKEN_VALIDATE = 000002; /// /// 长时间未操作 /// public const int IDLE_TIME_OUT = 000003; /// /// 被踢下线 /// public const int KICKED_OUT = 000004; /// /// 被顶下线 /// public const int CONCURRENT_LOGIN = 000004; /// /// 无法获得当前用户 /// public const int NO_USER = 000005; #endregion Framework #region Core /// /// 用户不存在 /// public const int USER_NOT_EXIST = 100000; /// /// 用户禁用 /// public const int USER_BLOCK = 100001; /// /// 密码重试超出次数限制 /// public const int USER_PASSWORD_RETRYLIMITEXCEED = 100002; /// /// 密码输入错误 /// public const int PASSWORD_ERROR = 100003; #endregion Core } }