feat(relation): 实现用户关注功能
- 新增关注用户接口,支持通过用户ID关注其他用户 - 添加参数校验,确保被关注用户ID不为空 - 实现关注用户时的业务逻辑,包括: -不能关注自己 - 校验被关注用户是否存 - 集成Feign客户端,调用用户服务查询用户信息 - 定义关注相关的异常码和错误信息 - 更新网关配置,路由/relation/**请求到用户关系服务- 添加HTTP客户端测试用例,用于验证关注功能 - 引入用户API依赖,支持远程调用用户服务
This commit is contained in:
@@ -91,6 +91,12 @@
|
||||
<artifactId>spring-boot-starter-data-redis</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.hanserwei</groupId>
|
||||
<artifactId>han-note-user-api</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
</dependencies>
|
||||
<build>
|
||||
<plugins>
|
||||
|
||||
Reference in New Issue
Block a user