设置错误信息枚举表
public enum ResponseCode {
SUCCESS("000000", "成功"),
LOGINERR("BIZ100102", "登录失败");
private String code;
private String desc;
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getDesc() {
return desc;
}
public void setDesc(String desc) {
this.desc = desc;
}
private ResponseCode(String code, String desc) {
this.code = code;
this.desc = desc;
}
}
转载请注明原文地址:https://ipadbbs.8miu.com/read-534.html