Compare commits
2 Commits
633ed5f49f
...
421f58d3dd
Author | SHA1 | Date |
---|---|---|
|
421f58d3dd | 3 years ago |
|
28e62d633e | 3 years ago |
@ -1,17 +0,0 @@
|
||||
package com.imut.common;
|
||||
|
||||
public interface Constants {
|
||||
|
||||
String CODE_200 = "200"; //成功
|
||||
String CODE_401 = "401"; // 权限不足
|
||||
String CODE_400 = "400"; // 参数错误
|
||||
String CODE_500 = "500"; // 系统错误
|
||||
String CODE_600 = "600"; // 其他业务异常
|
||||
String dict_type = "icon";
|
||||
|
||||
String role_admin = "admin";
|
||||
String role_user = "user";
|
||||
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,28 @@
|
||||
package entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@TableName("admin")
|
||||
public class Admin {
|
||||
private Integer id;
|
||||
private String name;
|
||||
@JsonIgnore
|
||||
private String password;
|
||||
private String address;
|
||||
private String username;
|
||||
private String tele;
|
||||
// @TableField(value = "role")
|
||||
private String role;
|
||||
// @TableLogic 逻辑删除注释
|
||||
// private Integer isDelete;
|
||||
|
||||
}
|
Loading…
Reference in new issue