AIPPT
    AIPPT
    • 简介
    • 接入指引
    • 智能生成
      • 内容生成
        • 默认AI生成:标题生成大纲
        • 默认AI生成:大纲生成内容
        • 百度AI生成:标题生成大纲
        • 百度AI生成:大纲生成内容
        • 导入Word生成(默认AI)
      • 创建任务
        POST
    • 模板
      • 模板套装列表筛选项
        GET
      • 模板套装列表
        GET
    • 作品
      • 作品生成
        POST
      • 作品列表
        GET
      • 作品导出
        POST
      • 作品导出结果
        POST
      • 作品重命名
        POST
      • 作品删除
        POST
    • 回收站
      • 已删除列表
        GET
      • 作品还原
        POST
      • 彻底删除
        POST
    • 预置词
      • 预置词列表
        GET
      • 预置词详情
        GET
    • 文件内容解析
      GET
    • 获取 PPT 数据结构
      POST
    • 导出大纲、完整内容
      POST
    • 编辑大纲
      POST

      获取 PPT 数据结构

      开发环境
      http://dev-cn.your-api-server.com
      开发环境
      http://dev-cn.your-api-server.com
      POST
      /api/generate/data
      此接口是获取任务的大纲内容对应的PPT树形结构。
      请求示例请求示例
      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}}

      返回响应

      🟢200成功
      application/json
      Body
      code
      integer 
      必需
      返回码,0表示成功,非0表示异常
      data
      object 
      必需
      根据Markdown文本生成的PPT树形结构
      children
      array [object {12}] 
      必需
      depth
      integer 
      必需
      direction
      integer 
      必需
      expanded
      boolean 
      必需
      id
      integer 
      必需
      index
      integer 
      必需
      pageIndex
      integer 
      必需
      parentId
      integer 
      必需
      showTip
      boolean 
      必需
      sort
      integer 
      必需
      type
      string 
      必需
      value
      string 
      必需
      msg
      string 
      返回提示信息
      必需
      上一页
      文件内容解析
      下一页
      导出大纲、完整内容
      Built with