# 导出大纲、完整内容

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/generate/file:
    post:
      summary: 导出大纲、完整内容
      deprecated: false
      description: |
        此接口用于导出大纲或完整内容。
      tags: []
      parameters:
        - name: x-api-key
          in: header
          description: ''
          required: true
          example: '{{apiKey}}'
          schema:
            type: string
        - name: x-channel
          in: header
          description: ''
          required: true
          example: ''
          schema:
            type: string
        - name: x-token
          in: header
          description: ''
          required: true
          example: '{{token}}'
          schema:
            type: string
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                task_id:
                  description: |
                    任务ID
                  example: '{{taskID}}'
                  type: string
                type:
                  description: "\t\n1=导出markdown文件\n2=导出思维导图图片(格式png)"
                  example: '1'
                  type: string
              required:
                - task_id
                - type
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    description: 返回码，0表示成功，非0表示异常
                  data:
                    type: string
                    description: 导出的文件地址(链接时效5分钟)
                  msg:
                    type: string
                    description: 返回提示信息
                required:
                  - code
                  - data
                  - msg
                x-apifox-orders:
                  - code
                  - data
                  - msg
              example:
                code: 0
                data: >-
                  https://aippt-domestic.aippt.com/aippt-api-server/chat/20240129/202401292149336cde4f09a8d24821be38f2296040ad64.md?Expires=1706536473&OSSAccessKeyId=LTAI5tEC4LwH9eYcd5ANuTnS&Signature=KUunmcXyd9r%2FM8VsLNB3B1cJV6I%3D&response-content-disposition=attachment%3Bfilename%2A%3DUTF-8%27%27%25E5%25AE%2598%25E7%25BD%2591-20220221.md
                msg: 获取成功
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: ''
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/4285308/apis/api-165844492-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: http://dev-cn.your-api-server.com
    description: 开发环境
  - url: http://test-cn.your-api-server.com
    description: 测试环境
  - url: https://co.aippt.cn
    description: 正式环境
security: []

```
