Skip to content

Commit 826dcb7

Browse files
Update user.md
1 parent 058526e commit 826dcb7

1 file changed

Lines changed: 41 additions & 1 deletion

File tree

src/api/v1/user.md

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,4 +222,44 @@ message Medal_info {
222222
uint64 id = 5; // 勋章ID? 不确定
223223
}
224224
```
225-
:::
225+
:::
226+
227+
## 更改用户名称
228+
229+
POST /v1/user/edit-nickname
230+
231+
请求头:
232+
233+
|名称|必须|备注|
234+
|-----|-----|-----|
235+
|token|||
236+
237+
请求体:
238+
```ProtoBuf
239+
name: "用户名称"
240+
```
241+
::: details ProtoBuf数据结构
242+
```proto
243+
message edit_nickname_send {
244+
string name = 3;
245+
}
246+
```
247+
:::
248+
249+
响应体:
250+
```ProtoBuf
251+
status {
252+
number: 114514
253+
code: 1
254+
msg: "success"
255+
}
256+
```
257+
258+
::: details ProtoBuf数据结构
259+
```proto
260+
// 更改名称状态信息
261+
message medal {
262+
Status status = 1; // 状态信息
263+
}
264+
```
265+
:::

0 commit comments

Comments
 (0)