修改代码模板以及 swagger 配置.
This commit is contained in:
@@ -70,10 +70,6 @@ public enum ErrorCode implements CodeInfo {
|
||||
|
||||
DIABLED_ERROR(715, "数据已被禁用"),
|
||||
|
||||
DATA_PRESENT(716, "数据已存在"),
|
||||
|
||||
DATA_ABESENT(717, "数据不存在"),
|
||||
|
||||
;
|
||||
|
||||
ErrorCode(int code, String message) {
|
||||
|
||||
@@ -13,4 +13,10 @@ public interface ErrorMessage {
|
||||
|
||||
String ID_MISSING = "id 不能为空";
|
||||
|
||||
String USERNAME_PASSWORD_ERROR = "用户名或密码错误";
|
||||
|
||||
String DATA_PRESENT = "数据已存在";
|
||||
|
||||
String DATA_ABSENT = "数据不存在";
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user