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

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

No files matched your search

@@ -5,7 +5,7 @@ import com.youlai.system.model.entity.SysUserRole;
import org.apache.ibatis.annotations.Mapper;
/**
* 用户角色持久层
* 用户角色访问层
*
* @author haoxr
* @since 2022/1/15
@@ -13,4 +13,10 @@ import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {
/**
* 统计角色下绑定的用户数量
*
* @param roleId 角色ID
*/
int countUsersForRole(Long roleId);
}