# 文件内容解析

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/ai/conver/file:
    get:
      summary: 文件内容解析
      deprecated: false
      description: |
        此接口是将创建任务上传的 markdown、freemind、xmind 文件的内容解析为 markdown 内容。
      tags: []
      parameters:
        - name: task_id
          in: query
          description: |
            任务ID
          required: true
          example: '{{taskID}}'
          schema:
            type: string
        - name: type
          in: query
          description: "\t\n4.XMind导入\n5.FreeMind导入\n6.Markdown导入"
          required: true
          example: '4'
          schema:
            type: string
        - 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
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    description: 返回码，0表示成功，非0表示异常
                  data:
                    type: string
                    description: 解析后的Markdown文本
                  msg:
                    type: string
                    description: 返回提示信息
                required:
                  - code
                  - data
                  - msg
                x-apifox-orders:
                  - code
                  - data
                  - msg
              example:
                code: 0
                data: "# 官网\r\n## 协议公示\r\n### \r\n### 标题\r\n#### 默认标题“天鹅到家协议公示\r\n### 公示协议tab\r\n#### 展示所有协议，数据来源单独配置数据，不读取已有的协议管理后台数据\r\n#### 元素：标题、顺序来源于配置；\r\n#### 点击互相切换协议目录，右侧子目录切换对应数据；\r\n#### 样式：默认颜色、选中颜色+小图标\r\n### 内容\r\n#### 元素：标题、跳转地址、顺序来源于配置；\r\n#### 点击跳转协议详情页：样式同PC隐私协议、只展示协议内容、不展示撤销入口、不展示公示信息等；\r\n#### 样式：默认颜色、鼠标指针浮动标红、最大折行，最多3行；\r\n#### 全部展示\r\n### 空态样式\r\n#### \r\n#### \r\n### 底部复用底部导航"
                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-165842850-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: []

```
