public interface SysRoleResourceService extends com.baomidou.mybatisplus.extension.service.IService<SysRoleResource>
| 限定符和类型 | 方法和说明 |
|---|---|
void |
batchSaveResCodes(Long roleId,
List<SysRoleResourceDTO> totalResourceCode)
批量保存角色和资源的绑定
|
void |
deleteRoleResourceListByResourceIds(List<Long> resourceIds)
根据资源id集合删除角色关联的资源
|
void |
deleteRoleResourceListByRoleId(Long roleId,
Integer resourceBizType)
根据角色id删除对应的角色资源信息
|
void |
grantResource(SysRoleRequest sysRoleRequest)
授权资源
|
void |
grantResourceV2(SysRoleRequest sysRoleRequest)
角色授权接口资源
|
void |
quickSaveAll(List<SysRoleResource> sysRoleResourceList)
保存所有的角色资源
|
void |
updateNewAppCode(Boolean decisionFirstStart,
String newAppCode)
更新本表的资源编码,替换为新的app编码
|
count, count, getBaseMapper, getById, getEntityClass, getMap, getObj, getOne, getOne, ktQuery, ktUpdate, lambdaQuery, lambdaUpdate, list, list, listByIds, listByMap, listMaps, listMaps, listObjs, listObjs, listObjs, listObjs, page, page, pageMaps, pageMaps, query, remove, removeBatchByIds, removeBatchByIds, removeBatchByIds, removeBatchByIds, removeById, removeById, removeById, removeByIds, removeByIds, removeByMap, save, saveBatch, saveBatch, saveOrUpdate, saveOrUpdate, saveOrUpdateBatch, saveOrUpdateBatch, update, update, update, updateBatchById, updateBatchById, updateByIdvoid grantResource(SysRoleRequest sysRoleRequest)
sysRoleRequest - 授权参数void grantResourceV2(SysRoleRequest sysRoleRequest)
void deleteRoleResourceListByResourceIds(List<Long> resourceIds)
resourceIds - 资源id集合void deleteRoleResourceListByRoleId(Long roleId, Integer resourceBizType)
roleId - 角色idresourceBizType - 指定的资源类型,如果为空,则删除所有类型的void quickSaveAll(List<SysRoleResource> sysRoleResourceList)
void batchSaveResCodes(Long roleId, List<SysRoleResourceDTO> totalResourceCode)
Copyright © 2022. All rights reserved.