Files
jshERP/jshERP-boot/src/main/java/com/jsh/erp/utils/ErpInfo.java
2021-04-07 23:53:57 +08:00

38 lines
890 B
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 com.jsh.erp.utils;
/**
*
*/
public enum ErpInfo {
//通过构造传递参数
OK(200, "成功"),
BAD_REQUEST(400, "请求错误或参数错误"),
UNAUTHORIZED(401, "未认证用户"),
INVALID_VERIFY_CODE(461, "错误的验证码"),
ERROR(500, "服务内部错误"),
WARING_MSG(201, "提醒信息"),
REDIRECT(301, "session失效重定向"),
FORWARD_REDIRECT(302, "转发请求session失效"),
FORWARD_FAILED(303, "转发请求失败!"),
TEST_USER(-1, "演示用户禁止操作");
public final int code;
public final String name;
public int getCode() {
return code;
}
public String getName() {
return name;
}
/**
* 定义枚举构造函数
*/
ErpInfo(int code, String name) {
this.code = code;
this.name = name;
}
}