| | |
| | | x-enum-varnames: |
| | | - BoolTypeTrue |
| | | - BoolTypeFalse |
| | | constvar.Class: |
| | | enum: |
| | | - 1 |
| | | - 2 |
| | | - 3 |
| | | type: integer |
| | | x-enum-comments: |
| | | ClassLocomotive: 机车 |
| | | ClassStation: 车站 |
| | | ClassTrain: 车次 |
| | | x-enum-varnames: |
| | | - ClassLocomotive |
| | | - ClassTrain |
| | | - ClassStation |
| | | gorm.DeletedAt: |
| | | properties: |
| | | time: |
| | |
| | | size: |
| | | description: 音频大小 |
| | | type: integer |
| | | stationNumber: |
| | | description: 车站号 |
| | | station: |
| | | description: 车站 |
| | | type: string |
| | | trainNumber: |
| | | description: 车次 |
| | |
| | | locomotiveNumber: |
| | | description: 机车号 |
| | | type: string |
| | | updatedAt: |
| | | type: string |
| | | type: object |
| | | models.TrainInfo: |
| | | properties: |
| | | class: |
| | | allOf: |
| | | - $ref: '#/definitions/constvar.Class' |
| | | description: 分类 |
| | | createdAt: |
| | | type: string |
| | | deletedAt: |
| | | $ref: '#/definitions/gorm.DeletedAt' |
| | | id: |
| | | type: integer |
| | | name: |
| | | description: 名称 |
| | | type: string |
| | | parentID: |
| | | description: 上级id |
| | | type: integer |
| | | updatedAt: |
| | | type: string |
| | | type: object |
| | |
| | | summary: 处理音频 |
| | | tags: |
| | | - 音频 |
| | | /api-sa/v1/audio/trainInfoList: |
| | | get: |
| | | parameters: |
| | | - description: 信息分类 1机车2车次3车站 |
| | | enum: |
| | | - 1 |
| | | - 2 |
| | | - 3 |
| | | in: query |
| | | name: class |
| | | type: integer |
| | | x-enum-comments: |
| | | ClassLocomotive: 机车 |
| | | ClassStation: 车站 |
| | | ClassTrain: 车次 |
| | | x-enum-varnames: |
| | | - ClassLocomotive |
| | | - ClassTrain |
| | | - ClassStation |
| | | - description: 页码 |
| | | in: query |
| | | name: page |
| | | type: integer |
| | | - description: 每页大小 |
| | | in: query |
| | | name: pageSize |
| | | type: integer |
| | | - description: 上级id |
| | | in: query |
| | | name: parentID |
| | | type: integer |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | allOf: |
| | | - $ref: '#/definitions/util.ResponseList' |
| | | - properties: |
| | | data: |
| | | items: |
| | | $ref: '#/definitions/models.TrainInfo' |
| | | type: array |
| | | type: object |
| | | summary: 获取火车信息 |
| | | tags: |
| | | - 音频 |
| | | /api-sa/v1/audio/upload: |
| | | post: |
| | | parameters: |