Skip to content

Commit 8535a47

Browse files
Update user.md
添加头像更改API文档
1 parent 97f637b commit 8535a47

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

src/api/v1/user.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,3 +263,43 @@ message medal {
263263
}
264264
```
265265
:::
266+
267+
## 更改用户头像
268+
269+
POST /v1/user/edit-avatar
270+
271+
请求头:
272+
273+
|名称|必须|备注|
274+
|-----|-----|-----|
275+
|token|||
276+
277+
请求体:
278+
```ProtoBuf
279+
url: "用户头像url"
280+
```
281+
::: details ProtoBuf数据结构
282+
```proto
283+
message edit_nickname_send {
284+
string url = 2;
285+
}
286+
```
287+
:::
288+
289+
响应体:
290+
```ProtoBuf
291+
status {
292+
number: 114514
293+
code: 1
294+
msg: "success"
295+
}
296+
```
297+
298+
::: details ProtoBuf数据结构
299+
```proto
300+
// 更改名称状态信息
301+
message medal {
302+
Status status = 1; // 状态信息
303+
}
304+
```
305+
:::

0 commit comments

Comments
 (0)