zhangqian
2024-05-16 3eb829393c22b975b9ca7e0e022150d4cafa9bd1
docs/swagger.yaml
@@ -58,6 +58,9 @@
        allOf:
        - $ref: '#/definitions/constvar.AudioStatus'
        description: 音频状态
      audioText:
        description: 解析出的文本
        type: string
      createdAt:
        type: string
      deletedAt:
@@ -93,30 +96,18 @@
        type: string
      updatedAt:
        type: string
    type: object
  models.Text:
    properties:
      content:
        description: 音频名称
        type: string
      createdAt:
        type: string
      deletedAt:
        $ref: '#/definitions/gorm.DeletedAt'
      id:
        type: integer
      locomotiveNumber:
        description: 机车号
        type: string
      updatedAt:
        type: string
      words:
        description: 匹配到的文字数组
        items:
          type: string
        type: array
    type: object
  models.TrainInfo:
    properties:
      class:
        allOf:
        - $ref: '#/definitions/constvar.Class'
        description: 分类
        description: 分类  1 机车 2车次 3 车站
      createdAt:
        type: string
      deletedAt:
@@ -129,6 +120,23 @@
      parentID:
        description: 上级id
        type: integer
      updatedAt:
        type: string
    type: object
  models.Word:
    properties:
      content:
        description: 文字
        type: string
      createdAt:
        type: string
      deletedAt:
        $ref: '#/definitions/gorm.DeletedAt'
      id:
        type: integer
      locomotiveNumber:
        description: 机车号
        type: string
      updatedAt:
        type: string
    type: object
@@ -170,7 +178,9 @@
  response.FollowResp:
    properties:
      followStatus:
        $ref: '#/definitions/constvar.BoolType'
        allOf:
        - $ref: '#/definitions/constvar.BoolType'
        description: 1 已关注 2未关注
    type: object
  util.Response:
    properties:
@@ -276,6 +286,28 @@
                  $ref: '#/definitions/response.FollowResp'
              type: object
      summary: 关注/取消关注
      tags:
      - 音频
  /api-sa/v1/audio/info:
    get:
      parameters:
      - in: query
        name: id
        required: true
        type: integer
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            allOf:
            - $ref: '#/definitions/util.Response'
            - properties:
                data:
                  $ref: '#/definitions/models.Audio'
              type: object
      summary: 音频详情,含解析结果
      tags:
      - 音频
  /api-sa/v1/audio/list:
@@ -456,7 +488,7 @@
            - properties:
                data:
                  items:
                    $ref: '#/definitions/models.Text'
                    $ref: '#/definitions/models.Word'
                  type: array
              type: object
      summary: 文字库列表