From 8adde93b8f2af29fb8a6405efaa49a41a1c22f8d Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期三, 15 五月 2024 20:15:31 +0800 Subject: [PATCH] 上传音频时保存车站号,车次,车站到火车信息表,提供火车信息查询接口 --- docs/docs.go | 130 ++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 128 insertions(+), 2 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index c21ad56..64c129c 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -256,6 +256,81 @@ } } }, + "/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": [ @@ -409,6 +484,24 @@ "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": { @@ -472,8 +565,8 @@ "description": "闊抽澶у皬", "type": "integer" }, - "stationNumber": { - "description": "杞︾珯鍙�", + "station": { + "description": "杞︾珯", "type": "string" }, "trainNumber": { @@ -510,6 +603,39 @@ } } }, + "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": [ -- Gitblit v1.8.0