| | |
| | | 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 |
| | | type: object |
| | | request.AddTextReq: |
| | | properties: |
| | | content: |
| | | description: 音频名称 |
| | | type: string |
| | | locomotiveNumber: |
| | | description: 机车号 |
| | | type: string |
| | | required: |
| | | - content |
| | | - locomotiveNumber |
| | | type: object |
| | | request.BatchProcessAudio: |
| | | properties: |
| | | ids: |
| | |
| | | contact: {} |
| | | paths: |
| | | /api-sa/v1/audio/batchDelete: |
| | | post: |
| | | delete: |
| | | parameters: |
| | | - description: 参数 |
| | | in: body |
| | |
| | | tags: |
| | | - 音频 |
| | | /api-sa/v1/audio/delete: |
| | | post: |
| | | delete: |
| | | parameters: |
| | | - description: 参数 |
| | | in: body |
| | |
| | | summary: 上传音频 |
| | | tags: |
| | | - 音频 |
| | | /api-sa/v1/text/add: |
| | | post: |
| | | parameters: |
| | | - description: 参数 |
| | | in: body |
| | | name: object |
| | | required: true |
| | | schema: |
| | | $ref: '#/definitions/request.AddTextReq' |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | $ref: '#/definitions/util.Response' |
| | | summary: 新增文字 |
| | | tags: |
| | | - 文字库 |
| | | /api-sa/v1/text/list: |
| | | get: |
| | | parameters: |
| | | - description: 关键字 |
| | | in: query |
| | | name: keyword |
| | | type: string |
| | | - description: 页码 |
| | | in: query |
| | | name: page |
| | | type: integer |
| | | - description: 每页大小 |
| | | in: query |
| | | name: pageSize |
| | | type: integer |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | allOf: |
| | | - $ref: '#/definitions/util.ResponseList' |
| | | - properties: |
| | | data: |
| | | items: |
| | | $ref: '#/definitions/models.Text' |
| | | type: array |
| | | type: object |
| | | summary: 文字库列表 |
| | | tags: |
| | | - 文字库 |
| | | swagger: "2.0" |