实现文件上传和数据库记录、Element+vue登录注册UI
This commit is contained in:
@@ -8,10 +8,13 @@ public enum ResultEnum {
|
||||
DELETE_ERROR(103,"删除失败"),
|
||||
ADD_ERROR(104,"添加失败"),
|
||||
WRONGPASS(105,"用户名或密码错误"),
|
||||
ILLEGAL_ACCESS(106,"非法访问")
|
||||
ILLEGAL_ACCESS(106,"非法访问"),
|
||||
WRONG_FORM(107,"表单错误"),
|
||||
EMPTY_DATA(108,"无数据")
|
||||
;
|
||||
private Integer code;
|
||||
private String msg;
|
||||
private String data;
|
||||
|
||||
public Integer getCode() {
|
||||
return code;
|
||||
@@ -21,6 +24,15 @@ public enum ResultEnum {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setData(String data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public String getData() {
|
||||
return data;
|
||||
|
||||
}
|
||||
|
||||
ResultEnum(Integer code, String msg) {
|
||||
this.code = code;
|
||||
this.msg = msg;
|
||||
|
||||
Reference in New Issue
Block a user