修改登录逻辑,配合前后端联调
This commit is contained in:
@@ -41,6 +41,10 @@ public class User implements Serializable {
|
||||
@TableField("password")
|
||||
private String password;
|
||||
|
||||
@Schema(description = "原始密码")
|
||||
@TableField("original_password")
|
||||
private String originalPassword;
|
||||
|
||||
@Schema(description = "token令牌")
|
||||
@TableField("token")
|
||||
private String token;
|
||||
|
||||
@@ -26,11 +26,11 @@ public class UserRole implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Schema(description = "用户编号")
|
||||
@TableId("user_id")
|
||||
@TableField("user_id")
|
||||
private Integer userId;
|
||||
|
||||
@Schema(description = "角色编号")
|
||||
@TableId("role_id")
|
||||
@TableField("role_id")
|
||||
private Integer roleId;
|
||||
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ CREATE TABLE `user` (
|
||||
`user_name` varchar(255) DEFAULT NULL COMMENT '用户名称',
|
||||
`email` varchar(255) DEFAULT NULL COMMENT '邮箱',
|
||||
`password` varchar(255) DEFAULT NULL COMMENT '密码',
|
||||
`original_password` varchar(255) DEFAULT NULL COMMENT '原始密码',
|
||||
`token` varchar(255) DEFAULT NULL COMMENT 'token令牌',
|
||||
`avatar` varchar(255) DEFAULT NULL COMMENT '头像',
|
||||
PRIMARY KEY (`user_id`)
|
||||
|
||||
Reference in New Issue
Block a user