mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-09-21 01:10:39 +08:00
后端:用户登录、退出登录、获取用户状态相关功能完成;引入SessionManager;数据库:user_identity改为group;前端:添加登录页面、后台管理页面框架,axios POST请求Content-Type问题修复,引入md5、sha1 js库;小问题调整
This commit is contained in:
@@ -2,6 +2,8 @@ package plus.bookshelf.Service.Model;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
|
||||
@Data
|
||||
public class UserModel {
|
||||
|
||||
@@ -9,6 +11,7 @@ public class UserModel {
|
||||
Integer id;
|
||||
|
||||
// 用户名
|
||||
@NotBlank(message = "用户名不能为空")
|
||||
String username;
|
||||
|
||||
// 用户加密后的密码
|
||||
@@ -18,7 +21,7 @@ public class UserModel {
|
||||
String nickname;
|
||||
|
||||
// 用户身份 NOT_LOGIN, ADMIN, LOGIN_USER;
|
||||
String userIdentity;
|
||||
String group;
|
||||
|
||||
// 用户头像
|
||||
String avatar;
|
||||
|
Reference in New Issue
Block a user