mirror of https://gitee.com/stylefeng/roses
【8.0】【sys】【role】封装获取角色限制列表接口
parent
2007a08031
commit
1d592db287
|
@ -5,6 +5,8 @@ import cn.stylefeng.roses.kernel.sys.modular.role.pojo.request.RoleBindPermissio
|
|||
import cn.stylefeng.roses.kernel.sys.modular.role.pojo.response.RoleBindPermissionResponse;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* 角色权限限制 服务类
|
||||
*
|
||||
|
@ -29,4 +31,12 @@ public interface SysRoleLimitService extends IService<SysRoleLimit> {
|
|||
*/
|
||||
void updateRoleBindLimit(RoleBindPermissionRequest roleBindPermissionRequest);
|
||||
|
||||
/**
|
||||
* 获取角色的限制列表(包含菜单id和菜单功能id)
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @since 2023/9/8 14:19
|
||||
*/
|
||||
Set<Long> getRoleBindLimitList(Long roleId);
|
||||
|
||||
}
|
|
@ -63,7 +63,8 @@ public class SysRoleLimitServiceImpl extends ServiceImpl<SysRoleLimitMapper, Sys
|
|||
* @author fengshuonan
|
||||
* @since 2023/9/8 13:55
|
||||
*/
|
||||
private Set<Long> getRoleBindLimitList(Long roleId) {
|
||||
@Override
|
||||
public Set<Long> getRoleBindLimitList(Long roleId) {
|
||||
LambdaQueryWrapper<SysRoleLimit> sysRoleLimitLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
||||
sysRoleLimitLambdaQueryWrapper.select(SysRoleLimit::getBusinessId);
|
||||
sysRoleLimitLambdaQueryWrapper.eq(SysRoleLimit::getRoleId, roleId);
|
||||
|
|
Loading…
Reference in New Issue