Skip to content

Commit 5f7311e

Browse files
committed
Update user.md
1 parent b4de4c5 commit 5f7311e

1 file changed

Lines changed: 19 additions & 3 deletions

File tree

src/api/web/v1/user.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ GET /v1/user/info
2727
"goldCoinAmount": 114.51 // 金币数
2828
}
2929
},
30-
"msg": "success"
30+
"msg": "success" // 返回消息
3131
}
3232
```
3333

3434
## 获取用户主页信息
3535

36-
GET /v1/user/homepage?userId=你要查询的用户ID(例如7058262)
36+
GET /v1/user/homepage?userId={你要查询的用户ID(例如1231230)}
3737

3838
::: tip
3939
如果用户不存在/已注销仍然会返回数据,特点就是无头像,名称,注册时间戳为0等.
@@ -66,6 +66,22 @@ GET /v1/user/homepage?userId=你要查询的用户ID(例如7058262)
6666
"isVip": 1 // 是否为 VIP, 1为是VIP
6767
}
6868
},
69-
"msg": "success"
69+
"msg": "success" // 返回消息
70+
}
71+
```
72+
73+
## 复制用户token
74+
75+
GET /v1/user/get-token?token={需要复制的用户token}
76+
77+
响应体:
78+
79+
```JSONC
80+
{
81+
"code": 1, // 响应码,1表示正常
82+
"data": {
83+
"token": "19d7k3js-****-****-****-************"
84+
},
85+
"msg": "success" // 返回消息
7086
}
7187
```

0 commit comments

Comments
 (0)