Files
gitea-test/src/main/java/cn/wujiangbo/constants/ErrorCode.java
2025-12-30 11:02:57 +08:00

45 lines
1.3 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package cn.wujiangbo.constants;
/**
* 系统错误码
*/
public enum ErrorCode {
SYSTEM_SUCCESS("0000", "操作成功!"),
ERROR_CODE_1001("1001", "操作失败,请稍候再试!"),
ERROR_CODE_1002("1002", "认证状态失效,请重新登录!"),
ERROR_CODE_1003("1003", "登录账号不能为空!"),
ERROR_CODE_1004("1004", "登录密码不能为空!"),
ERROR_CODE_1005("1005", "登录账号不存在!"),
ERROR_CODE_1006("1006", "登录账号存在多个!"),
ERROR_CODE_1007("1007", "登录密码错误!"),
ERROR_CODE_1008("1008", "Token错误或失效"),
ERROR_CODE_1009("1009", "UUID不能为空"),
ERROR_CODE_1010("1010", "图片验证码不能为空!"),
ERROR_CODE_1011("1011", "图片验证码已过期,请点击图片刷新!"),
ERROR_CODE_1012("1012", "图片验证码错误,请重新输入!"),
SYSTEM_ERROR("9999", "系统开小差了,请稍后再试!");
//错误码
private String code;
//错误信息
private String message;
ErrorCode(String code, String message) {
this.code = code;
this.message = message;
}
public String getCode() {
return code;
}
public String getMessage() {
return message;
}
}