# 视频流

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /video/feed/:
    get:
      summary: 视频流
      deprecated: false
      description: 获取首页视频流
      tags:
        - 视频
      parameters:
        - name: latest_time
          in: query
          description: 可空，13 位 timestamp，若存在则返回此时间之后的视频流
          required: false
          example: ''
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  base: &ref_0
                    $ref: '#/components/schemas/%E5%93%8D%E5%BA%94%E7%8A%B6%E6%80%81'
                  data:
                    type: object
                    properties:
                      items:
                        type: array
                        items:
                          $ref: '#/components/schemas/%E8%A7%86%E9%A2%91'
                    x-apifox-orders:
                      - items
                    required:
                      - items
                    x-apifox-ignore-properties: []
                x-apifox-orders:
                  - base
                  - data
                required:
                  - base
                  - data
                x-apifox-ignore-properties: []
              example:
                base:
                  code: 10000
                  msg: success
                data:
                  items:
                    - id: '483675103821824000'
                      user_id: '483675103821824000'
                      video_url: https://west2.online/video-example.mp4
                      cover_url: https://west2.online/video-example.jpeg
                      title: west2-online
                      description: west2-online
                      visit_count: 0
                      like_count: 0
                      comment_count: 0
                      created_at: '1970-01-01 08:00:00'
                      updated_at: '1970-01-01 08:00:00'
                      deleted_at: '1970-01-01 08:00:00'
          headers: {}
          x-apifox-name: 成功
        x-200:失败:
          description: ''
          content:
            application/json:
              schema:
                title: ''
                type: object
                properties:
                  base: *ref_0
                x-apifox-orders:
                  - base
                required:
                  - base
                x-apifox-ignore-properties: []
              example:
                base:
                  code: -1
                  msg: 密码错误
          headers: {}
          x-apifox-name: 失败
      security: []
      x-apifox-folder: 视频
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/3905938/apis/api-141535771-run
components:
  schemas:
    视频:
      type: object
      properties:
        id:
          type: string
          title: 视频id
          description: 唯一标识符，可选自增/雪花/UUID/其他
          x-apifox-mock: '@increment'
        user_id:
          type: string
          title: 视频作者
          description: 发表视频的用户唯一标识符
          x-apifox-mock: '@id'
        video_url:
          type: string
          title: 视频
          description: 视频文件链接
          x-apifox-mock: '@image'
        cover_url:
          type: string
          title: 封面
          description: 封面链接
          x-apifox-mock: '@image'
        title:
          type: string
          title: 视频标题
          description: 视频标题
          x-apifox-mock: '@title'
        description:
          type: string
          title: 视频描述
          description: 视频描述
          x-apifox-mock: '@csentence'
        visit_count:
          type: integer
          title: 访问量
          description: 视频访问量
          x-apifox-mock: '@integer'
        like_count:
          type: integer
          title: 点赞数
          description: 点赞数量
          x-apifox-mock: '@integer'
        comment_count:
          type: integer
          title: 评论数
          description: 评论数量
          x-apifox-mock: '@integer'
        created_at:
          type: string
          title: 创建时间
          x-apifox-mock: '@datetime'
        updated_at:
          type: string
          title: 更新时间
          x-apifox-mock: '@datetime'
        deleted_at:
          type: string
          title: 删除时间
          x-apifox-mock: '@datetime'
      x-apifox-orders:
        - id
        - user_id
        - video_url
        - cover_url
        - title
        - description
        - visit_count
        - like_count
        - comment_count
        - 01HM15HVMN5CG6G4D198Y910E1
      x-apifox-refs:
        01HM15HVMN5CG6G4D198Y910E1:
          $ref: '#/components/schemas/%E6%97%B6%E9%97%B4%E6%88%B3'
      required:
        - id
        - user_id
        - video_url
        - cover_url
        - title
        - description
        - visit_count
        - like_count
        - comment_count
        - created_at
        - updated_at
        - deleted_at
      x-apifox-ignore-properties:
        - created_at
        - updated_at
        - deleted_at
      x-apifox-folder: ''
    时间戳:
      type: object
      properties:
        created_at:
          type: string
          title: 创建时间
          x-apifox-mock: '@datetime'
        updated_at:
          type: string
          title: 更新时间
          x-apifox-mock: '@datetime'
        deleted_at:
          type: string
          title: 删除时间
          x-apifox-mock: '@datetime'
      x-apifox-orders:
        - created_at
        - updated_at
        - deleted_at
      required:
        - created_at
        - updated_at
        - deleted_at
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
    响应状态:
      type: object
      properties:
        code:
          type: integer
        msg:
          type: string
      x-apifox-orders:
        - code
        - msg
      required:
        - code
        - msg
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
  securitySchemes: {}
servers:
  - url: http://localhost:10001
    description: 开发环境
  - url: localhost:8888
    description: 测试环境
  - url: https://14efdb6874148af54dd6c98f749a9412-app.1024paas.com/douyin
    description: 正式环境
security: []

```
