feat: opus MODULE_TYPE_STAT

This commit is contained in:
SessionHu
2025-05-19 21:32:18 +08:00
parent 429bd83bd9
commit f9ab296c2d
2 changed files with 70 additions and 36 deletions

View File

@@ -34,8 +34,8 @@
| 字段 | 类型 | 内容 | 备注 |
| ---- | ---- | ---- | ---- |
| module_author | object | | |
| module_type | string | | |
| module_author | object | 作者模块 | |
| module_type | string | 模块类型 | |
`module_author` 对象:
@@ -470,7 +470,7 @@
| 字段 | 类型 | 内容 | 备注 |
| ---- | ---- | ---- | ---- |
| module_more | object | 数据本体 | |
| module_more | object | 三点更多模块 | |
`module_more` 对象:
@@ -545,3 +545,68 @@
```
</details>
### MODULE_TYPE_STAT
根对象:
| 字段 | 类型 | 内容 | 备注 |
| ---- | ---- | ---- | ---- |
| module_stat | object | 统计模块 | |
| module_type | string | 模块类型 | |
`module_stat` 对象:
| 字段 | 类型 | 内容 | 备注 |
| ---- | ---- | ---- | ---- |
| coin | object | 硬币数据 | 仅图文接口 |
| comment | object | 评论数据 | |
| favorite | object | 收藏数据 | 仅图文接口 |
| forward | object | 转发数据 | |
| like | object | 点赞数据 | |
`module_stat` 中的对象:
| 字段 | 类型 | 内容 | 备注 |
| ---- | ---- | ---- | ---- |
| count | number | 数量 | |
| forbidden | boolean | 是否屏蔽 | |
| hidden | boolean | 是否隐藏 | |
| status | boolean | 当前状态 | 是否已进行该操作 |
<details>
<summary>查看示例:</summary>
```json
{
"module_stat": {
"coin": {
"count": 0,
"forbidden": false,
"hidden": true
},
"comment": {
"count": 42,
"forbidden": false
},
"favorite": {
"count": 0,
"forbidden": false,
"status": false
},
"forward": {
"count": 0,
"forbidden": false
},
"like": {
"count": 56,
"forbidden": false,
"status": true
}
},
"module_type": "MODULE_TYPE_STAT"
}
```
</details>
<!-- Generated by json-apidoc-gen @ 2025-05-17T12:14:24.470143481Z -->