add
This commit is contained in:
@ -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() {
|
||||
|
Reference in New Issue
Block a user