review code.

This commit is contained in:
lijiahang
2023-07-19 17:19:38 +08:00
parent 6643597c16
commit 6dd744219b
19 changed files with 253 additions and 58 deletions

View File

@@ -47,6 +47,8 @@ public enum ErrorCode implements CodeInfo {
ROLE_PRESENT(703, "角色 [{}] 不存在"),
DATA_ALTER(704, "数据发生改变, 请刷新后重试"),
// -------------------- 自定义 - 通用 --------------------
NETWORK_FLUCTUATION(900, "当前环境网路波动"),

View File

@@ -17,6 +17,8 @@ public interface ErrorMessage {
String INVALID_PARAM = "参数验证失败";
String DATA_ABSENT = "数据不存在";
String DATA_PRESENT = "数据已存在";
String NAME_PRESENT = "名称已存在";
@@ -33,16 +35,10 @@ public interface ErrorMessage {
String PARENT_MENU_ABSENT = "父菜单不存在";
String DATA_ABSENT = "数据不存在";
String USERNAME_PASSWORD_ERROR = "用户名或密码错误";
String MAX_LOGIN_FAILED = "登陆失败次数已上限";
String USER_ABSENT = "用户不存在";
String USER_DISABLED = "用户已被禁用";
String USER_LOCKED = "用户已被锁定";
}