【更新】SysRelationApi增加一个接口

pull/285/head
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);
/**
* idid
*
* @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)