diff --git a/han-note-user-relation/han-note-user-relation-biz/src/main/java/com/hanserwei/hannote/user/relation/biz/domain/HannoteUserRelationBizApplication.java b/han-note-user-relation/han-note-user-relation-biz/src/main/java/com/hanserwei/hannote/user/relation/biz/HannoteUserRelationBizApplication.java similarity index 88% rename from han-note-user-relation/han-note-user-relation-biz/src/main/java/com/hanserwei/hannote/user/relation/biz/domain/HannoteUserRelationBizApplication.java rename to han-note-user-relation/han-note-user-relation-biz/src/main/java/com/hanserwei/hannote/user/relation/biz/HannoteUserRelationBizApplication.java index 8ec07a9..d3b6f91 100644 --- a/han-note-user-relation/han-note-user-relation-biz/src/main/java/com/hanserwei/hannote/user/relation/biz/domain/HannoteUserRelationBizApplication.java +++ b/han-note-user-relation/han-note-user-relation-biz/src/main/java/com/hanserwei/hannote/user/relation/biz/HannoteUserRelationBizApplication.java @@ -1,4 +1,4 @@ -package com.hanserwei.hannote.user.relation.biz.domain; +package com.hanserwei.hannote.user.relation.biz; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; diff --git a/http-client/file/backgroundImg.jpg b/http-client/file/backgroundImg.jpg new file mode 100644 index 0000000..fd15a2c Binary files /dev/null and b/http-client/file/backgroundImg.jpg differ diff --git a/http-client/file/img.png b/http-client/file/img.png new file mode 100644 index 0000000..d91e205 Binary files /dev/null and b/http-client/file/img.png differ diff --git a/http-client/gateApi.http b/http-client/gateApi.http index ada30a4..aeb348d 100644 --- a/http-client/gateApi.http +++ b/http-client/gateApi.http @@ -25,3 +25,97 @@ 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 +} \ No newline at end of file diff --git a/http-client/http-client.private.env.json b/http-client/http-client.private.env.json index 504c96b..975296f 100644 --- a/http-client/http-client.private.env.json +++ b/http-client/http-client.private.env.json @@ -1,5 +1,6 @@ { "dev": { - "token": "4bXpiBbjXEDFE4ZpqjCOHu1rP81qepl2ROOygrxRGb61K536ckLuyAwfyQHSMcyRdUzf8CxntLEMfbU2ynbYx9nJKlx4vpWZrHqv2mI4iMhnShQ4mPBi7OPPgZi22O2f" + "token": "4bXpiBbjXEDFE4ZpqjCOHu1rP81qepl2ROOygrxRGb61K536ckLuyAwfyQHSMcyRdUzf8CxntLEMfbU2ynbYx9nJKlx4vpWZrHqv2mI4iMhnShQ4mPBi7OPPgZi22O2f", + "noteId": "1977249693272375330" } } \ No newline at end of file