public interface SysRolePermissionService extends BaseService<SysRolePermission>
角色权限关系 服务类
| Modifier and Type | Method and Description |
|---|---|
boolean |
deleteSysRolePermissionByRoleId(Long roleId)
根据角色id删除关联的权限关系
|
Set<String> |
getPermissionCodesByRoleId(Long roleId)
根据角色id获取可用的权限编码
|
List<Long> |
getPermissionIdsByRoleId(Long roleId)
根据角色id获取权限id列表
|
boolean |
isExistsByPermissionId(Long permissionId)
通过角色id判断在角色权限表中是否有数据存在
|
boolean |
saveSysRolePermission(Long roleId,
List<Long> permissionIds)
保存
|
boolean |
saveSysRolePermissionBatch(Long roleId,
org.apache.commons.collections4.SetUtils.SetView addSet)
批量保存角色权限关系
|
count, count, getBaseMapper, getById, getMap, getObj, getOne, getOne, lambdaQuery, lambdaUpdate, list, list, listByIds, listByMap, listMaps, listMaps, listObjs, listObjs, listObjs, listObjs, page, page, pageMaps, pageMaps, query, remove, removeById, removeByIds, removeByMap, save, saveBatch, saveBatch, saveOrUpdate, saveOrUpdate, saveOrUpdateBatch, saveOrUpdateBatch, update, update, update, updateBatchById, updateBatchById, updateByIdboolean saveSysRolePermission(Long roleId, List<Long> permissionIds) throws Exception
roleId - permissionIds - ExceptionList<Long> getPermissionIdsByRoleId(Long roleId) throws Exception
roleId - Exceptionboolean saveSysRolePermissionBatch(Long roleId, org.apache.commons.collections4.SetUtils.SetView addSet) throws Exception
roleId - addSet - Exceptionboolean deleteSysRolePermissionByRoleId(Long roleId) throws Exception
roleId - ExceptionSet<String> getPermissionCodesByRoleId(Long roleId) throws Exception
roleId - ExceptionCopyright © 2019. All rights reserved.