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