mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-10-09 04:57:11 +08:00
style: 优化登录用户信息角色相关信息命名
1.roles => roleCodes 2.roleSet => roles
This commit is contained in:
@@ -108,7 +108,7 @@ public class DataPermissionHandlerImpl implements DataPermissionHandler {
|
||||
*/
|
||||
private static Expression buildDataScopeFilter(LoginUser user, String tableAlias, Expression where) {
|
||||
Expression expression = null;
|
||||
for (RoleDTO role : user.getRoleSet()) {
|
||||
for (RoleDTO role : user.getRoles()) {
|
||||
DataScopeEnum dataScope = role.getDataScope();
|
||||
if (DataScopeEnum.ALL.equals(dataScope)) {
|
||||
return where;
|
||||
|
@@ -60,12 +60,12 @@ public class LoginUser implements Serializable {
|
||||
/**
|
||||
* 角色编码集合
|
||||
*/
|
||||
private Set<String> roles;
|
||||
private Set<String> roleCodes;
|
||||
|
||||
/**
|
||||
* 角色集合
|
||||
*/
|
||||
private Set<RoleDTO> roleSet;
|
||||
private Set<RoleDTO> roles;
|
||||
|
||||
/**
|
||||
* 令牌
|
||||
|
Reference in New Issue
Block a user