This commit is contained in:
2023-05-19 17:38:09 +08:00
parent e41797c750
commit 3dc6fb7828
77 changed files with 1000 additions and 256 deletions

View File

@ -46,7 +46,7 @@ public class LoginUser implements UserDetails {
/**
* 角色列表
*/
private List<String> roleIds;
private List<String> roleKeys;
/**
@ -58,13 +58,13 @@ public class LoginUser implements UserDetails {
public LoginUser() {
}
public LoginUser(String userId, String deptId, String username, String nickname, List<String> roleIds, Set<String> permissions) {
public LoginUser(String userId, String deptId, String username, String nickname, List<String> roleKeys, Set<String> permissions) {
this.userId = userId;
this.deptId = deptId;
this.username = username;
this.permissions = permissions;
this.nickname = nickname;
this.roleIds = roleIds;
this.roleKeys = roleKeys;
}
public String getUserId() {
@ -84,12 +84,12 @@ public class LoginUser implements UserDetails {
}
public List<String> getRoleIds() {
return roleIds;
public List<String> getRoleKeys() {
return roleKeys;
}
public void setRoleIds(List<String> roleIds) {
this.roleIds = roleIds;
public void setRoleKeys(List<String> roleKeys) {
this.roleKeys = roleKeys;
}
public Set<String> getPermissions() {