Files
han-note/http-client/gateApi.http
Hanserwei 9e3c35043e feat(relation): 实现用户粉丝列表查询功能
- 新增查询用户粉丝列表接口
- 定义粉丝列表请求参数类 FindFansListReqVO- 定义粉丝信息响应类 FindFansUserRspVO
- 在 RelationController 中添加 /fans/list POST 接口
- 在 RelationService 中定义 findFansList 方法
- 在 RelationServiceImpl 中实现粉丝列表查询逻辑
- 支持 Redis 缓存查询与数据库分页查询
- 实现粉丝列表异步同步至 Redis 功能
- 添加 HTTP 客户端测试用例
2025-10-15 17:40:36 +08:00

186 lines
3.6 KiB
HTTP

###
POST http://localhost:8000/auth/verification/code/send
Content-Type: application/json
{
"email": "2628273921@qq.com"
}
### /
POST http://localhost:8000/auth/login
Content-Type: application/json
{
"email": "2628273921@qq.com",
"code": "825004",
"type": 1
}
###
POST http://localhost:8000/auth/password/update
Content-Type: application/json
Authorization: Bearer {{token}}
{
"newPassword": "wwgb1314"
}
###
POST http://localhost:8000/user/user/update
Content-Type: multipart/form-data; boundary=WebAppBoundary
Authorization: Bearer {{token}}
--WebAppBoundary
Content-Disposition: form-data; name="avatar"; filename="avatar.png"
Content-Type: image/png
< ./file/img.png
--WebAppBoundary
Content-Disposition: form-data; name="nickname"
Hanserwei
--WebAppBoundary
Content-Disposition: form-data; name="hanNoteId"
hanserwei010723
--WebAppBoundary
Content-Disposition: form-data; name="sex"
1
--WebAppBoundary
Content-Disposition: form-data; name="birthday"
2001-07-23
--WebAppBoundary
Content-Disposition: form-data; name="introduction"
HttpClient
--WebAppBoundary--
Content-Disposition: form-data; name="backgroundImg"; filename="backgroundImg.png"
Content-Type: image/jpeg
< ./file/backgroundImg.jpg
###
POST http://localhost:8000/note/note/publish
Content-Type: application/json
Authorization: Bearer {{token}}
{
"type": 0,
"imgUris": [
"https://cdn.pixabay.com/photo/2025/10/05/15/06/autumn-9875155_1280.jpg"
],
"title": "",
"content": "",
"topicId": 1
}
###
POST http://localhost:8000/note/note/publish
Content-Type: application/json
Authorization: Bearer {{token}}
{
"type": 1,
"videoUri": "https://cdn.pixabay.com/photo/2025/10/05/15/06/autumn-9875155_1280.jpg",
"title": "",
"content": "",
"topicId": 2
}
###
POST http://localhost:8000/note/note/detail
Content-Type: application/json
Authorization: Bearer {{token}}
{
"id": {{noteId}}
}
###
POST http://localhost:8000/note/note/update
Content-Type: application/json
Authorization: Bearer {{token}}
{
"id": {{noteId}},
"type": 0,
"imgUris": [
"https://cdn.pixabay.com/photo/2025/10/05/15/06/autumn-9875155_1280.jpg"
],
"title": "",
"content": "",
"topicId": 1
}
###
POST http://localhost:8000/relation/relation/follow
Content-Type: application/json
Authorization: Bearer {{token}}
{
"followUserId": {{userId}}
}
###
POST http://localhost:8000/relation/relation/follow
Content-Type: application/json
Authorization: Bearer {{token}}
{
"followUserId": -1
}
###
POST http://localhost:8000/relation/relation/follow
Content-Type: application/json
Authorization: Bearer {{token}}
{
"followUserId": {{otherUserId}}
}
###
POST http://localhost:8000/relation/relation/unfollow
Content-Type: application/json
Authorization: Bearer {{token}}
{
"unfollowUserId": 2100
}
###
POST http://localhost:8000/user/user/findByIds
Content-Type: application/json
Authorization: Bearer {{token}}
{
"ids": [100,2100,4100]
}
###
POST http://localhost:8000/relation/relation/following/list
Content-Type: application/json
Authorization: Bearer {{token}}
{
"userId": 100,
"pageNo": 1
}
###
POST http://localhost:8000/relation/relation/fans/list
Content-Type: application/json
Authorization: Bearer {{token}}
{
"userId": 100,
"pageNo": 1
}