| | |
| | | allOf: |
| | | - $ref: '#/definitions/constvar.AudioStatus' |
| | | description: 音频状态 |
| | | audioText: |
| | | description: 解析出的文本 |
| | | type: string |
| | | createdAt: |
| | | type: string |
| | | deletedAt: |
| | |
| | | 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: |
| | |
| | | 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 |
| | |
| | | response.FollowResp: |
| | | properties: |
| | | followStatus: |
| | | $ref: '#/definitions/constvar.BoolType' |
| | | allOf: |
| | | - $ref: '#/definitions/constvar.BoolType' |
| | | description: 1 已关注 2未关注 |
| | | type: object |
| | | util.Response: |
| | | properties: |
| | |
| | | $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: |
| | |
| | | - properties: |
| | | data: |
| | | items: |
| | | $ref: '#/definitions/models.Text' |
| | | $ref: '#/definitions/models.Word' |
| | | type: array |
| | | type: object |
| | | summary: 文字库列表 |