【更新】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

@@ -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)