Skip to content

Commit 2308e36

Browse files
Kauid323yyyytawa
authored andcommitted
小修小补
1 parent a5ff17e commit 2308e36

1 file changed

Lines changed: 48 additions & 12 deletions

File tree

src/api/v1/user.md

Lines changed: 48 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: user
77

88
## 获取人机验证图片
99

10-
POST /v1/user/captcha
10+
POST /v1/user/captcha
1111

1212
响应体:
1313

@@ -531,23 +531,59 @@ POST /v1/user/module-ignore-info
531531

532532
|名称|必须|备注|
533533
|-----|-----|-----|
534-
|token|||
534+
|token||需要vip|
535+
536+
请求体:
537+
538+
```JSONC
539+
{
540+
"deviceId": "1234"
541+
}
542+
```
535543

536544
响应体:
537545

538546
```JSONC
539547
{
540-
"deviceId": "设备id"
548+
"code": 1, // 请求状态码,1为正常
549+
"data": {
550+
"ignore": {
551+
"id": 0, // 可能是模块设置id
552+
"userId": "1234567", // 用户id
553+
"updateTime": 123455660, // 更新时间戳
554+
"deviceId": "1234", // 设备id
555+
"ignore": ",30,20,10" // 模块id,10-隐藏社区页面,20-隐藏发现页面,30-精简我的界面
556+
}
557+
},
558+
"msg": "success" // 返回消息
559+
}
560+
```
561+
562+
## 设置自定义模块
563+
564+
POST /v1/user/module-ignore
565+
566+
请求头:
567+
568+
|名称|必须|备注|
569+
|-----|-----|-----|
570+
|token||需要vip|
571+
572+
请求体:
573+
574+
```JSONC
575+
{
576+
"deviceId": "1234"
577+
"ignore": ",30,20,10" // 模块id,10-隐藏社区页面,20-隐藏发现页面,30-精简我的界面
541578
}
542579
```
543580

544-
(因为没有vip,这里为示例,请实际情况为准)
545581
响应体:
546582

547583
```JSONC
548584
{
549-
"code": -1, // 请求状态码,1为正常
550-
"msg": "此功能仅限VIP用户使用"
585+
"code": 1, // 请求状态码,1为正常
586+
"msg": "success" // 返回消息
551587
}
552588
```
553589

@@ -632,7 +668,7 @@ POST /v1/user/gold-coin-increase-decrease-record
632668
|-----|-----|-----|
633669
|token|||
634670

635-
响应体
671+
请求体
636672

637673
```JSONC
638674
{
@@ -677,7 +713,7 @@ POST /v1/user/bing-phone
677713
|-----|-----|-----|
678714
|token|||
679715

680-
响应体
716+
请求体
681717

682718
```JSONC
683719
{
@@ -705,7 +741,7 @@ POST /v1/user/bing-email
705741
|-----|-----|-----|
706742
|token|||
707743

708-
响应体
744+
请求体
709745

710746
```JSONC
711747
{
@@ -733,7 +769,7 @@ POST /v1/user/change-phone-check
733769
|-----|-----|-----|
734770
|token|||
735771

736-
响应体
772+
请求体
737773

738774
```JSONC
739775
{
@@ -761,7 +797,7 @@ POST /v1/user/change-email-check
761797
|-----|-----|-----|
762798
|token|||
763799

764-
响应体
800+
请求体
765801

766802
```JSONC
767803
{
@@ -783,7 +819,7 @@ POST /v1/user/change-email-check
783819

784820
POST /v1/user/forget-password
785821

786-
响应体
822+
请求体
787823

788824
```JSONC
789825
{

0 commit comments

Comments
 (0)