feat: Spring Boot 整合 Spring Cache 和 Redis 缓存
This commit is contained in:
@@ -15,5 +15,13 @@ public interface SysUserRoleService extends IService<SysUserRole> {
|
||||
* @param roleIds
|
||||
* @return
|
||||
*/
|
||||
boolean saveUserRoles(Long userId, List<Long> roleIds);
|
||||
boolean saveUserRoles(Long userId, List<Long> roleIds);
|
||||
|
||||
/**
|
||||
* 判断角色是否存在绑定的用户
|
||||
*
|
||||
* @param roleId 角色ID
|
||||
* @return true:已分配 false:未分配
|
||||
*/
|
||||
boolean isRoleAssignedToUser(Long roleId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user