# 企微文件下载

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/qw/doApi:
    post:
      summary: 企微文件下载
      deprecated: false
      description: 下载响应的地址为临时云资源，非官方CDN地址，并且会定期清理，请自行及时下载
      tags:
        - 云存储CDN模块
      parameters:
        - name: Content-Type
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
        - name: X-QIWEI-TOKEN
          in: header
          description: ''
          example: '{{tokenId}}'
          schema:
            type: string
            default: '{{tokenId}}'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  title: /cloud/wxWorkDownload
                params:
                  type: object
                  properties:
                    guid:
                      type: string
                    fileAeskey:
                      type: string
                    fileId:
                      type: string
                    fileSize:
                      type: integer
                    fileType:
                      type: integer
                      description: >-
                        1: 大图. 如果【接收图片消息】中的字段 image_has_hd=1,
                        则可以使用这个type下载         2: 小图. 如果image_has_hd=0,
                        则应该用这个type下载         3: 视频/图片缩略图，对应thumb这个字段         4:
                        视频         5: 文件/语音文件
                  required:
                    - guid
                    - fileAeskey
                    - fileId
                    - fileSize
                    - fileType
                  x-apifox-orders:
                    - guid
                    - fileAeskey
                    - fileId
                    - fileSize
                    - fileType
              required:
                - method
                - params
              x-apifox-orders:
                - method
                - params
            example:
              method: /cloud/wxWorkDownload
              params:
                guid: '{{guid}}'
                fileAeskey: 4fe9c203406149e79c2ab8917da9befc
                fileId: >-
                  30690201020462306002010002044c9aff3e02030f42410204157a5875020468bfa27b042432663162613961612d316564372d343566642d393933342d38623931653064346136656502010002030080100410d889b75ac62fec2b3b23988deeb2d7050201050201000400
                fileSize: 32768
                fileType: 5
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  data:
                    type: object
                    properties:
                      cloudUrl:
                        type: string
                    required:
                      - cloudUrl
                    x-apifox-orders:
                      - cloudUrl
                  msg:
                    type: string
                required:
                  - code
                  - data
                  - msg
                x-apifox-orders:
                  - code
                  - data
                  - msg
              example:
                code: 0
                data:
                  cloudUrl: https://wework.qpic.cn/w**********p2RNQHmdDjh_1709274772/0
                msg: 成功
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: 云存储CDN模块
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/7051713/apis/api-344613901-run
components:
  schemas: {}
  securitySchemes: {}
servers: []
security: []

```