Skip to content

Commit 77484a1

Browse files
Kauid323QianLin-Jiaxi
authored andcommitted
add:个人资料修改
1 parent 5cd8046 commit 77484a1

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

src/api/v1/user.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,3 +783,36 @@ POST /v1/user/forget-password
783783
"msg": "success" // 返回消息
784784
}
785785
```
786+
787+
## 修改个人资料
788+
789+
POST /v1/user/save-user-data
790+
791+
请求头:
792+
793+
|名称|必须|备注|
794+
|-----|-----|-----|
795+
|token|||
796+
797+
请求体:
798+
799+
```JSONC
800+
{
801+
"introduction": "111", // 个人简介
802+
"gender": 3, // 性别,1-男,2-女,3-其他
803+
"birthday": 1762876800, // 生日时间戳
804+
"province": "北京市", // 所在地省份
805+
"city": "北京城区", // 所在地城市
806+
"district": "东城区", // 所在地城区
807+
"locationCode": "110101" // 所在地邮政编码
808+
}
809+
```
810+
811+
响应体:
812+
813+
```JSONC
814+
{
815+
"code": 1, // 请求状态码,1为正常
816+
"msg": "success" // 返回消息
817+
}
818+
```

0 commit comments

Comments
 (0)