文件内容解析
接入前提
获取调用API所需的TOKEN
请参考鉴权
说明
接口描述 | 此接口是获取任务的大纲内容对应的PPT树形结构。 | ||
接口地址 | /api/generate/data | 请求方式 | POST |
权限校验 | 是 | 请求参数 | json |
请求参数
请求示例
ts
curl --location --request POST 'https://co.aippt.cn/api/generate/data' \
--header 'x-api-key: {{apiKey}}' \
--header 'x-channel;' \
--header 'x-token: {{token}}' \
--data-urlencode 'task_id={{taskID}}'
响应内容
响应示例
ts
{
"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": "获取成功"
}