获取 PPT 数据结构
开发环境
开发环境
POST
/api/generate/data
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/api/generate/data' \
--header 'x-api-key: {{apiKey}}' \
--header 'x-channel;' \
--header 'x-token: {{token}}' \
--data-urlencode 'task_id={{taskID}}'
响应示例响应示例
{
"code": 0,
"data": {
"children": [
{
"children": [
{
"children": [],
"depth": 3,
"direction": 1,
"expanded": true,
"id": 3,
"parentId": 2,
"showTip": false,
"sort": 0,
"type": "title",
"value": "协议公示"
}
],
"depth": 2,
"direction": 1,
"expanded": true,
"id": 2,
"pageIndex": 2,
"parentId": 1,
"showTip": false,
"sort": 0,
"type": "catalog",
"value": "目录"
},
{
"children": [
{
"children": [],
"depth": 3,
"direction": 1,
"expanded": true,
"id": 5,
"index": 0,
"lastLevel": true,
"pageIndex": 4,
"parentId": 4,
"showTip": false,
"sort": 0,
"type": "title",
"value": ""
},
{
"children": [
{
"children": [],
"depth": 4,
"direction": 1,
"expanded": true,
"id": 7,
"index": 0,
"lastLevel": true,
"parentId": 6,
"showTip": false,
"sort": 0,
"type": "title",
"value": "默认标题“天鹅到家协议公示"
}
],
"depth": 3,
"direction": 1,
"expanded": true,
"id": 6,
"index": 0,
"pageIndex": 5,
"parentId": 4,
"showTip": false,
"sort": 1,
"type": "title",
"value": "标题"
},
{
"children": [
{
"children": [],
"depth": 4,
"direction": 1,
"expanded": true,
"id": 9,
"index": 0,
"lastLevel": true,
"parentId": 8,
"showTip": false,
"sort": 0,
"type": "title",
"value": "展示所有协议,数据来源单独配置数据,不读取已有的协议管理后台数据"
},
{
"children": [],
"depth": 4,
"direction": 1,
"expanded": true,
"id": 10,
"index": 0,
"lastLevel": true,
"parentId": 8,
"showTip": false,
"sort": 1,
"type": "title",
"value": "元素:标题、顺序来源于配置;"
},
{
"children": [],
"depth": 4,
"direction": 1,
"expanded": true,
"id": 11,
"index": 0,
"lastLevel": true,
"parentId": 8,
"showTip": false,
"sort": 2,
"type": "title",
"value": "点击互相切换协议目录,右侧子目录切换对应数据;"
},
{
"children": [],
"depth": 4,
"direction": 1,
"expanded": true,
"id": 12,
"index": 0,
"lastLevel": true,
"parentId": 8,
"showTip": false,
"sort": 3,
"type": "title",
"value": "样式:默认颜色、选中颜色+小图标"
}
],
"depth": 3,
"direction": 1,
"expanded": true,
"id": 8,
"index": 0,
"pageIndex": 6,
"parentId": 4,
"showTip": false,
"sort": 2,
"type": "title",
"value": "公示协议tab"
},
{
"children": [
{
"children": [],
"depth": 4,
"direction": 1,
"expanded": true,
"id": 14,
"index": 0,
"lastLevel": true,
"parentId": 13,
"showTip": false,
"sort": 0,
"type": "title",
"value": "元素:标题、跳转地址、顺序来源于配置;"
},
{
"children": [],
"depth": 4,
"direction": 1,
"expanded": true,
"id": 15,
"index": 0,
"lastLevel": true,
"parentId": 13,
"showTip": false,
"sort": 1,
"type": "title",
"value": "点击跳转协议详情页:样式同PC隐私协议、只展示协议内容、不展示撤销入口、不展示公示信息等;"
},
{
"children": [],
"depth": 4,
"direction": 1,
"expanded": true,
"id": 16,
"index": 0,
"lastLevel": true,
"parentId": 13,
"showTip": false,
"sort": 2,
"type": "title",
"value": "样式:默认颜色、鼠标指针浮动标红、最大折行,最多3行;"
},
{
"children": [],
"depth": 4,
"direction": 1,
"expanded": true,
"id": 17,
"index": 0,
"lastLevel": true,
"parentId": 13,
"showTip": false,
"sort": 3,
"type": "title",
"value": "全部展示"
}
],
"depth": 3,
"direction": 1,
"expanded": true,
"id": 13,
"index": 0,
"pageIndex": 7,
"parentId": 4,
"showTip": false,
"sort": 3,
"type": "title",
"value": "内容"
},
{
"children": [
{
"children": [],
"depth": 4,
"direction": 1,
"expanded": true,
"id": 19,
"index": 0,
"lastLevel": true,
"parentId": 18,
"showTip": false,
"sort": 0,
"type": "title",
"value": ""
},
{
"children": [],
"depth": 4,
"direction": 1,
"expanded": true,
"id": 20,
"index": 0,
"lastLevel": true,
"parentId": 18,
"showTip": false,
"sort": 1,
"type": "title",
"value": ""
}
],
"depth": 3,
"direction": 1,
"expanded": true,
"id": 18,
"index": 0,
"pageIndex": 8,
"parentId": 4,
"showTip": false,
"sort": 4,
"type": "title",
"value": "空态样式"
},
{
"children": [],
"depth": 3,
"direction": 1,
"expanded": true,
"id": 21,
"index": 0,
"lastLevel": true,
"pageIndex": 9,
"parentId": 4,
"showTip": false,
"sort": 5,
"type": "title",
"value": "底部复用底部导航"
}
],
"depth": 2,
"direction": 1,
"expanded": true,
"id": 4,
"index": 0,
"pageIndex": 3,
"parentId": 1,
"showTip": false,
"sort": 1,
"type": "title",
"value": "协议公示"
},
{
"children": [],
"depth": 2,
"direction": 1,
"expanded": true,
"id": 22,
"pageIndex": 10,
"parentId": 1,
"showTip": false,
"sort": 2,
"type": "ending",
"value": "结语"
}
],
"depth": 1,
"direction": 1,
"expanded": true,
"id": 1,
"index": 0,
"pageIndex": 1,
"parentId": 0,
"showTip": false,
"sort": 0,
"type": "title",
"value": "官网"
},
"msg": "获取成功"
}
请求参数
Header 参数
x-api-key
string
必需
示例值:
{{apiKey}}
x-channel
string
必需
x-token
string
必需
示例值:
{{token}}
Body 参数application/x-www-form-urlencoded
task_id
string
任务ID
示例值:
{{taskID}}
返回响应
修改于 2024-04-17 06:05:26