mirror of https://gitee.com/xiaonuobase/snowy
【更新】SysRelationApi增加一个接口
parent
6735460216
commit
f470684719
|
@ -38,6 +38,14 @@ public interface SysRelationApi {
|
||||||
**/
|
**/
|
||||||
List<String> getUserIdListByGroupIdList(List<String> groupIdList);
|
List<String> getUserIdListByGroupIdList(List<String> groupIdList);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据用户id集合获取用户授权的用户组id集合
|
||||||
|
*
|
||||||
|
* @author xuyuxiang
|
||||||
|
* @date 2022/6/6 11:43
|
||||||
|
**/
|
||||||
|
List<String> getGroupIdListByUserIdList(List<String> userIdList);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据移动端菜单Id集合移除角色和移动端菜单关系
|
* 根据移动端菜单Id集合移除角色和移动端菜单关系
|
||||||
*
|
*
|
||||||
|
|
|
@ -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
|
@Override
|
||||||
public void removeRoleHasMobileMenuRelation(List<String> targetIdList) {
|
public void removeRoleHasMobileMenuRelation(List<String> targetIdList) {
|
||||||
sysRelationService.remove(new LambdaQueryWrapper<SysRelation>().in(SysRelation::getTargetId, targetIdList)
|
sysRelationService.remove(new LambdaQueryWrapper<SysRelation>().in(SysRelation::getTargetId, targetIdList)
|
||||||
|
|
Loading…
Reference in New Issue