feat: Spring Boot 整合 Spring Cache 和 Redis 缓存

This commit is contained in:
haoxr
2023-12-04 21:39:12 +08:00
parent 0fa99a61ae
commit e28b3e9490
12 changed files with 176 additions and 35 deletions

View File

@@ -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);
}