Files
han-note/http-client/gateApi.http
Hanserwei 2b2cd2be70 refactor(search):重构搜索服务模块结构
- 将 han-note-search 模块拆分为 han-note-search-api 和 han-note-search-biz
- 调整包路径,统一添加 biz 子包以区分业务实现
- 更新相关类的导入路径以适配新的包结构
- 修改 Maven 模块配置,设置父模块打包方式为 pom- 添加新的 API 模块用于 RPC 接口定义
- 更新依赖配置,确保模块间正确引用
- 调整 IDEA 编译器配置以识别新模块
- 更新 HTTP 客户端测试数据和请求示例
- 添加 Feign 客户端支持以实现服务间通信
- 实现笔记文档重建功能并提供对外接口
- 增加数据对齐服务中远程调用搜索服务的能力
- 更新全局异常处理器和枚举类的包路径
- 调整应用启动类的 Mapper 扫描路径
- 更新 Elasticsearch 配置类和索引相关类路径
- 修改控制器和服务接口以支持新架构
- 更新测试类路径以匹配新的项目结构
2025-11-03 16:00:22 +08:00

293 lines
5.7 KiB
HTTP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

###
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": [
"http://116.62.199.48:9000/weblog/c58c6db953d24922803a65ca4f79a0a9.png",
"http://116.62.199.48:9000/weblog/04c7312e0b4b41be996004517c247e2b.jpg"
],
"title": "",
"content": "",
"topicId": 2
}
###
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
}
###
PUT http://localhost:9200/note
Content-Type: application/json
###
PUT http://localhost:9200/note/_doc/1
Content-Type: application/json
{
"title": "",
"content": "",
"create_time": "2024-08-16 16:49:35"
}
###
PUT http://localhost:9200/note/_doc/2
Content-Type: application/json
{
"title": "",
"content": "",
"create_time": "2024-11-02 17:00:36"
}
###
PUT http://localhost:9200/note/_doc/3
Content-Type: application/json
{
"title": "穿",
"content": "",
"create_time": "2024-11-03 16:59:58"
}
###
GET http://localhost:9200/note/_search
Content-Type: application/json
{
"query": {
"multi_match": {
"query": "",
"fields": [
"title",
"content"
]
}
}
}
###
POST http://localhost:8092/search/user
Content-Type: application/json
{
"keyword": "",
"pageNo": 1
}