feat(relation): 实现用户关注功能并集成RocketMQ消息队列

- 新增关注用户MQ消息传输对象 FollowUserMqDTO
- 定义MQ常量类 MQConstants,包含关注/取关主题与标签
- 引入RocketMQ依赖及自动配置类 RocketMQConfig
- 在关注接口中构造并异步发送关注操作消息
- 使用JsonUtils将消息体序列化为JSON字符串
- 添加日志记录MQ发送状态及异常处理回调
This commit is contained in:
2025-10-12 20:03:33 +08:00
parent 3c8dc9e4af
commit 5a7564d504
5 changed files with 95 additions and 1 deletions

View File

@@ -96,6 +96,11 @@
<artifactId>han-note-user-api</artifactId>
</dependency>
<!-- Rocket MQ -->
<dependency>
<groupId>org.apache.rocketmq</groupId>
<artifactId>rocketmq-spring-boot-starter</artifactId>
</dependency>
</dependencies>
<build>