# 评论列表

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /comment/list:
    get:
      summary: 评论列表
      deprecated: false
      description: ''
      tags:
        - 互动
      parameters:
        - name: video_id
          in: query
          description: 可选，video_id 和 comment_id 必须存在其中一个
          required: false
          example: ''
          schema:
            type: string
        - name: comment_id
          in: query
          description: 可选，video_id 和 comment_id 必须存在其中一个
          required: false
          example: ''
          schema:
            type: string
        - name: page_size
          in: query
          description: 一页有多少个数据
          required: false
          example: 20
          schema:
            type: integer
        - name: page_num
          in: query
          description: 第几页
          required: false
          example: 2
          schema:
            type: integer
        - name: Access-Token
          in: header
          description: ''
          required: false
          example: ''
          schema:
            type: string
        - name: Refresh-Token
          in: header
          description: ''
          required: false
          example: ''
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  base:
                    type: object
                    properties:
                      code:
                        type: integer
                      msg:
                        type: string
                    x-apifox-orders:
                      - 01HM1AD2YVD1DKPEJR2ERV6V5K
                    required:
                      - code
                      - msg
                    x-apifox-refs:
                      01HM1AD2YVD1DKPEJR2ERV6V5K: &ref_0
                        $ref: >-
                          #/components/schemas/%E5%93%8D%E5%BA%94%E7%8A%B6%E6%80%81
                    x-apifox-ignore-properties:
                      - code
                      - msg
                  data:
                    type: object
                    properties:
                      items:
                        type: array
                        items:
                          $ref: '#/components/schemas/%E8%AF%84%E8%AE%BA'
                    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: '820000201009032177'
                      user_id: '330000198910053439'
                      video_id: '370000201804261922'
                      parent_id: '210000202301182026'
                      like_count: 89
                      child_count: 89
                      content: 这视频真好看。
                      created_at: '2020-07-26 23:32:44'
                      updated_at: '2023-03-12 00:36:37'
                      deleted_at: '2024-01-06 00:28:04'
          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-141535777-run
components:
  schemas:
    评论:
      type: object
      properties:
        id:
          type: string
          title: 评论 ID
          description: 唯一标识符，可选自增/雪花/UUID/其他
          x-apifox-mock: '@id'
        user_id:
          type: string
          title: 发表者 ID
          description: 发表评论的用户唯一标识符
          x-apifox-mock: '@id'
        video_id:
          type: string
          title: 视频 ID
          description: 视频的唯一标识符
          x-apifox-mock: '@id'
        parent_id:
          type: string
          description: 父评论的唯一标识符
          title: 父评论 ID
          x-apifox-mock: '@id'
        like_count:
          type: integer
          title: 点赞数
          description: 评论点赞的数量
          x-apifox-mock: '@integer(60, 100)'
        child_count:
          type: integer
          title: 子评论数
          description: 子评论的数量
          x-apifox-mock: '@integer(60, 100)'
        content:
          type: string
          title: 评论文本
          description: 建议进行一定的文本处理
          x-apifox-mock: '@csentence'
        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_id
        - parent_id
        - like_count
        - child_count
        - content
        - 01HM15DHJ7A64E0T9MY7K5K9N2
      required:
        - id
        - user_id
        - video_id
        - parent_id
        - like_count
        - child_count
        - content
        - created_at
        - updated_at
        - deleted_at
      x-apifox-refs:
        01HM15DHJ7A64E0T9MY7K5K9N2:
          $ref: '#/components/schemas/%E6%97%B6%E9%97%B4%E6%88%B3'
      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: []

```
