feat(comment): 实现评论点赞与取消点赞功能,评论点赞、取消点赞批量写库

- 新增评论点赞布隆过滤器,提升点赞判断性能
- 实现评论点赞与取消点赞的批量操作消费者
- 添加评论点赞状态查询接口及异常处理
- 优化点赞操作合并逻辑,减少数据库访问频率
- 增加评论点赞相关 Lua 脚本支持过期时间设置
- 完善评论点赞 Mapper 层批量插入与删除方法
- 添加评论已点赞业务异常状态码
- 新增测试类用于验证评论点赞 MQ 消费逻辑
- 调整 MQ 消费者 Bean 名称避免冲突
- 更新 HTTP 测试文件中的评论 ID便于调试
This commit is contained in:
2025-11-08 22:55:09 +08:00
parent a8d5c7f9b7
commit f90e36f7d6
10 changed files with 395 additions and 4 deletions

View File

@@ -372,5 +372,5 @@ POST http://localhost:8093/comment/like
Content-Type: application/json
{
"commentId": 4002
"commentId": 6001
}