feat(opus/features.md): MODULE_TYPE_CONTENT
This commit is contained in:
parent
45ecbeda36
commit
316c556bb5
@ -23,6 +23,10 @@
|
||||
| commentsNewVersion | | | |
|
||||
| decorationCard | 是否以卡片形式显示装扮 | | 566950981753221664 |
|
||||
| editable | 是否在右上角三点菜单中显示 `编辑` | 必须是自己发送的动态才有效果 | 1065142062572109830 |
|
||||
| opusPrivateVisible | | | |
|
||||
| tribeeEdit | | | |
|
||||
| avatarAutoTheme | | | |
|
||||
| avatarTypeOpus | | | |
|
||||
|
||||
## modules
|
||||
|
||||
@ -640,3 +644,94 @@
|
||||
</details>
|
||||
|
||||
<!-- Generated by json-apidoc-gen @ 2025-05-17T12:14:24.470143481Z -->
|
||||
|
||||
### MODULE_TYPE_CONTENT
|
||||
|
||||
根对象:
|
||||
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| ---- | ---- | ---- | ---- |
|
||||
| module_content | object | 内容模块 | |
|
||||
| module_type | string | 模块类型 | `MODULE_TYPE_CONTENT` |
|
||||
|
||||
`module_content` 对象:
|
||||
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| ---- | ---- | ---- | ---- |
|
||||
| paragraphs | object[] | | |
|
||||
|
||||
`module_content.paragraphs[]` 对象:
|
||||
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| ---- | ---- | ---- | ---- |
|
||||
| align | number | | |
|
||||
| para_type | number | | |
|
||||
| text | object | | |
|
||||
|
||||
`module_content.paragraphs[].text` 对象:
|
||||
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| ---- | ---- | ---- | ---- |
|
||||
| nodes | object[] | | |
|
||||
|
||||
`module_content.paragraphs[].text.nodes[]` 对象:
|
||||
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| ---- | ---- | ---- | ---- |
|
||||
| type | string | | |
|
||||
| word | object | | |
|
||||
|
||||
`module_content.paragraphs[].text.nodes[].word` 对象:
|
||||
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| ---- | ---- | ---- | ---- |
|
||||
| font_size | number | | |
|
||||
| style | object | | |
|
||||
| words | string | | |
|
||||
|
||||
`module_content.paragraphs[].text.nodes[].word.style` 对象:
|
||||
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| ---- | ---- | ---- | ---- |
|
||||
|
||||
**示例:**
|
||||
|
||||
<details>
|
||||
<summary>查看示例:</summary>
|
||||
|
||||
```json
|
||||
{
|
||||
"module_content": {
|
||||
"paragraphs": [
|
||||
{
|
||||
"align": 0,
|
||||
"para_type": 1,
|
||||
"text": {
|
||||
"nodes": [
|
||||
{
|
||||
"type": "TEXT_NODE_TYPE_WORD",
|
||||
"word": {
|
||||
"font_size": 17,
|
||||
"style": {},
|
||||
"words": "欢迎使用咱开发的 TG 机器人, 自由开源, 目前支持很多功能, 如 天气查询, IP 查询, 甚至可以执行 Shell 命令\nSINO Is Not Object! "
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "TEXT_NODE_TYPE_WORD",
|
||||
"word": {
|
||||
"font_size": 17,
|
||||
"style": {},
|
||||
"words": "https://t.me/SessX6cfBot"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"module_type": "MODULE_TYPE_CONTENT"
|
||||
}
|
||||
```
|
||||
</details>
|
||||
|
||||
<!-- Generated by json-apidoc-gen @ 2025-07-08T01:49:39.052079251Z -->
|
||||
|
||||
Loading…
Reference in New Issue
Block a user