refactor(permission2identity): 增加返回personalId

This commit is contained in:
zhansihu 2023-10-25 11:00:49 +08:00
parent 01735461a2
commit 761ae92ca3
2 changed files with 3 additions and 1 deletions

View File

@ -32,6 +32,8 @@ public class ListIdentityFromPermissionResp {
private Integer identityType;
private Long personalId;
private boolean isSuperAdmin;
}
}

View File

@ -617,7 +617,7 @@ public class TyrSaasAuthServiceImpl implements TyrSaasAuthService {
if (!filterSet.contains(key)) {
filterSet.add(key);
ListIdentityFromPermissionResp.UserVO user = new ListIdentityFromPermissionResp.UserVO(relation.getIdentityId(),
relation.getIdentityType(), superAdmins.contains(relation.getIdentityId()));
relation.getIdentityType(), relation.getNaturalPersonId(), superAdmins.contains(relation.getIdentityId()));
users.add(user);
}
}