refactor(note):优化笔记点赞功能,使用 Roaring Bitmap 替代布隆过滤器

- 修改消费者组名称,统一命名规范
- 更新 HTTP 客户端测试用例中的授权令牌和笔记 ID
- 引入 NoteLikeDOMapper 并替换原有的 service 查询方式
- 将布隆过滤器相关逻辑全部替换为 Roaring Bitmap 实现
- 新增多个 Lua 脚本支持 Roaring Bitmap 的操作与初始化
- 添加 Roaring Bitmap 相关的 Redis Key 构建方法
- 删除旧有的布隆过滤器校验逻辑及冗余代码
- 更新 Redis Key 常量类,增加 Roaring Bitmap 相关定义
- 日志字典文件中新增 rbitmap 关键词
- 优化点赞和取消点赞流程,提升性能与准确性
This commit is contained in:
2025-11-09 22:09:23 +08:00
parent 6e0f226b42
commit 94729e5170
9 changed files with 143 additions and 48 deletions

View File

@@ -202,16 +202,16 @@ Content-Type: application/json
Authorization: Bearer {{thirdToken}}
{
"id": 1981698494959714362
"id": 1985254482941837349
}
### 笔记取消点赞入口
POST http://localhost:8000/note/note/unlike
Content-Type: application/json
Authorization: Bearer {{otherToken}}
Authorization: Bearer {{thirdToken}}
{
"id": 1977249693272375330
"id": 1985254482941837349
}
### 笔记收藏入口