Files
han-note/http-client/gateApi.http
Hanserwei d1f756d5c8 refactor(data-align):优化数据对齐任务与MQ消费逻辑
fix(data-align,note):点赞同一用户发布的两篇不同笔记,无法保存变更记录。点赞笔记的SQL查询错误修复。

- 移除了事务模板,简化数据库操作流程
- 分离笔记ID与用户ID的布隆过滤器处理逻辑- 新增针对笔记作者的点赞/收藏数变更记录
- 重构Redis键命名规范,区分笔记与用户维度
- 优化MQ消息处理流程,增强异常捕获机制
- 更新HTTP客户端测试用例与环境配置
-修复NoteServiceImpl中点赞查询的用户ID条件缺失
- 调整分片计算方式,提升数据分布均匀性
2025-10-24 20:57:21 +08:00

231 lines
4.4 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": "bug2",
"content": "bugbugbug",
"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/note/note/delete
Content-Type: application/json
Authorization: Bearer {{token}}
{
"id": 1981322504056078370
}
###
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": 2100
}
###
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
}
###
POST http://localhost:8000/note/note/like
Content-Type: application/json
Authorization: Bearer {{thirdToken}}
{
"id": 1981698494959714362
}
###
POST http://localhost:8000/note/note/unlike
Content-Type: application/json
Authorization: Bearer {{otherToken}}
{
"id": 1977249693272375330
}
###
POST http://localhost:8000/note/note/collect
Content-Type: application/json
Authorization: Bearer {{thirdToken}}
{
"id": 1981698494959714362
}
###
POST http://localhost:8000/note/note/uncollect
Content-Type: application/json
Authorization: Bearer {{otherToken}}
{
"id": 1977249693272375330
}