更新后端,采用Springboot+mybatis

This commit is contained in:
季圣华
2018-12-19 23:54:53 +08:00
parent bb6f5528a7
commit 5cc26a22f2
1672 changed files with 52804 additions and 156085 deletions

View File

@@ -0,0 +1,36 @@
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, "转发请求失败!");
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;
}
}