【更新】SysRelationApi增加一个接口

This commit is contained in:
xuyuxiang
2025-09-22 20:55:50 +08:00
parent 6735460216
commit f470684719
2 changed files with 14 additions and 0 deletions

View File

@@ -38,6 +38,14 @@ public interface SysRelationApi {
**/
List<String> getUserIdListByGroupIdList(List<String> groupIdList);
/**
* 根据用户id集合获取用户授权的用户组id集合
*
* @author xuyuxiang
* @date 2022/6/6 11:43
**/
List<String> getGroupIdListByUserIdList(List<String> userIdList);
/**
* 根据移动端菜单Id集合移除角色和移动端菜单关系
*

View File

@@ -74,6 +74,12 @@ public class SysRelationApiProvider implements SysRelationApi {
}
}
@Override
public List<String> getGroupIdListByUserIdList(List<String> userIdList) {
return sysRelationService.getRelationTargetIdListByObjectIdListAndCategory(userIdList,
SysRelationCategoryEnum.SYS_USER_HAS_GROUP.getValue());
}
@Override
public void removeRoleHasMobileMenuRelation(List<String> targetIdList) {
sysRelationService.remove(new LambdaQueryWrapper<SysRelation>().in(SysRelation::getTargetId, targetIdList)