修改登录逻辑,配合前后端联调

This commit is contained in:
spllzh
2025-08-11 19:31:54 +08:00
parent 2ab6f0c7d8
commit 895d6662d8
25 changed files with 208 additions and 22 deletions

View File

@@ -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;

View File

@@ -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;
}

View File

@@ -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`)