feat: 增加用户状态相关接口

This commit is contained in:
overwriter
2024-10-19 22:15:26 +08:00
parent 9032a2e504
commit a09c519cc2
6 changed files with 75 additions and 0 deletions
+34
View File
@@ -308,6 +308,10 @@
290. 用户是否互相关注
291. 歌曲动态封面
292. 用户徽章
293. 用户状态
294. 用户状态 - 支持设置的状态
295. 用户状态 - 相同状态的用户
296. 用户状态 - 编辑
## 安装
@@ -4829,6 +4833,36 @@ bitrate = Math.floor(br / 1000)
**调用例子 :** `/user/medal?uid=32953014`
### 用户状态
说明 : 登录后调用此接口, 传入用户id, 获取用户状态
**必选参数 :**
`uid`: 用户 id
**接口地址 :** `/user/social/status`
**调用例子 :** `/user/social/status?uid=32953014`
### 用户状态 - 支持设置的状态
说明 : 登录后调用此接口, 获取支持设置的状态
**接口地址 :** `/user/social/status/support`
### 用户状态 - 相同状态的用户
说明 : 登录后调用此接口, 获取相同状态的用户
**接口地址 :** `/user/social/status/rcmd`
### 用户状态 - 编辑
说明 : 登录后调用此接口, 编辑当前用户状态, 所需参数可在接口`/user/social/status/support`获取
**接口地址 :** `/user/social/status/edit`
## 离线访问此文档
此文档同时也是 Progressive Web Apps(PWA), 加入了 serviceWorker, 可离线访问