com.didiglobal.logi.security.service.RolePermissionService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of logi-security-spring-boot-starter Show documentation
Show all versions of logi-security-spring-boot-starter Show documentation
logi-security 提供项目大多都需要的一些基础功能(用户、角色、权限、登录、注册、操作记录)
package com.didiglobal.logi.security.service;
import java.util.List;
/**
* @author cjm
*/
public interface RolePermissionService {
/**
* 保存角色与权限的关联信息
* @param roleId 角色id
* @param permissionIdList 权限idList
*/
void saveRolePermission(Integer roleId, List permissionIdList);
/**
* 更新角色与权限的关联信息,保存新关系之前会删除old的关联信息
* @param roleId 角色id
* @param permissionIdList 权限idList
*/
void updateRolePermission(Integer roleId, List permissionIdList);
/**
* 删除角色与权限的关联信息
* @param roleId 角色id
*/
void deleteRolePermissionByRoleId(Integer roleId);
/**
* 根据角色id,获取权限idList
* @param roleId 角色id
* @return 权限idList
*/
List getPermissionIdListByRoleId(Integer roleId);
/**
* 根据角色idList,获取权限idList
* @param roleIdList 角色idList
* @return 权限idList
*/
List getPermissionIdListByRoleIdList(List roleIdList);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy