Skip to content

Commit b825ed2

Browse files
committed
更新 user.md
1 parent 36fb7c7 commit b825ed2

1 file changed

Lines changed: 36 additions & 2 deletions

File tree

src/api/v1/user.md

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ POST /v1/user/forget-password
784784
}
785785
```
786786

787-
## 修改个人资料
787+
## 修改自身个人资料
788788

789789
POST /v1/user/save-user-data
790790

@@ -800,7 +800,7 @@ POST /v1/user/save-user-data
800800
{
801801
"introduction": "111", // 个人简介
802802
"gender": 3, // 性别,1-男,2-女,3-其他
803-
"birthday": 1762876800, // 生日时间戳
803+
"birthday": 1231231230, // 生日时间戳
804804
"province": "北京市", // 所在地省份
805805
"city": "北京城区", // 所在地城市
806806
"district": "东城区", // 所在地城区
@@ -816,3 +816,37 @@ POST /v1/user/save-user-data
816816
"msg": "success" // 返回消息
817817
}
818818
```
819+
820+
## 获取自身个人资料
821+
822+
POST /v1/user/get-user-data
823+
824+
请求头:
825+
826+
|名称|必须|备注|
827+
|-----|-----|-----|
828+
|token|||
829+
830+
响应体:
831+
832+
```JSONC
833+
{
834+
"code": 1, // 请求状态码,1为正常
835+
"data": {
836+
"data": {
837+
"id": 123, // 个人简介ID
838+
"userId": "123", // 用户ID
839+
"lastLoginTime": 1231231230, // 最后登录时间戳
840+
"update_time": 1231231230, // 个人简介最后更新时间戳
841+
"introduction": "测试个人简介", // 个人简介
842+
"gender": 3, // 性别,1-男,2-女,3-其他
843+
"birthday": 1231231230, // 生日时间戳
844+
"province": "北京市", // 所在地省份
845+
"city": "北京城区", // 所在地城市
846+
"district": "东城区", // 所在地城区
847+
"locationCode": "110101" // 所在地邮政编码
848+
}
849+
},
850+
"msg": "success" // 返回消息
851+
}
852+
```

0 commit comments

Comments
 (0)