From c40d07e760598c0aae4353f7a1e2d6b01747e83f Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期三, 12 六月 2024 11:54:54 +0800 Subject: [PATCH] 文件下载&状态筛选 --- docs/docs.go | 279 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 273 insertions(+), 6 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index c21ad56..e0e5b79 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -106,6 +106,45 @@ } } }, + "/api-sa/v1/audio/download": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "闊抽" + ], + "summary": "闊抽涓嬭浇", + "parameters": [ + { + "type": "integer", + "name": "id", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/util.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/models.Audio" + } + } + } + ] + } + } + } + } + }, "/api-sa/v1/audio/follow": { "post": { "produces": [ @@ -148,6 +187,45 @@ } } }, + "/api-sa/v1/audio/info": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "闊抽" + ], + "summary": "闊抽璇︽儏锛屽惈瑙f瀽缁撴灉", + "parameters": [ + { + "type": "integer", + "name": "id", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/util.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/models.Audio" + } + } + } + ] + } + } + } + } + }, "/api-sa/v1/audio/list": { "get": { "produces": [ @@ -160,8 +238,38 @@ "parameters": [ { "type": "string", + "description": "寮�濮嬫椂闂�", + "name": "beginTime", + "in": "query" + }, + { + "type": "string", "description": "鍙告満鍙�", "name": "driverNumber", + "in": "query" + }, + { + "type": "string", + "description": "缁撴潫鏃堕棿", + "name": "endTime", + "in": "query" + }, + { + "enum": [ + 1, + 2 + ], + "type": "integer", + "x-enum-comments": { + "BoolTypeFalse": "false", + "BoolTypeTrue": "true" + }, + "x-enum-varnames": [ + "BoolTypeTrue", + "BoolTypeFalse" + ], + "description": "鏄惁鍏虫敞 1鍏虫敞 2鏈叧娉�", + "name": "isFollowed", "in": "query" }, { @@ -192,6 +300,23 @@ "type": "string", "description": "杞︾珯鍙�", "name": "stationNumber", + "in": "query" + }, + { + "type": "array", + "items": { + "enum": [ + 0, + 1, + 2, + 3, + 4 + ], + "type": "integer" + }, + "collectionFormat": "csv", + "description": "闊抽鐘舵�佹暟缁�", + "name": "statusList", "in": "query" }, { @@ -251,6 +376,81 @@ "description": "鎴愬姛", "schema": { "$ref": "#/definitions/util.Response" + } + } + } + } + }, + "/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" + } + } + } + } + ] } } } @@ -357,7 +557,7 @@ "data": { "type": "array", "items": { - "$ref": "#/definitions/models.Text" + "$ref": "#/definitions/models.Word" } } } @@ -409,6 +609,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": { @@ -431,6 +649,10 @@ "$ref": "#/definitions/constvar.AudioStatus" } ] + }, + "audioText": { + "description": "瑙f瀽鍑虹殑鏂囨湰", + "type": "string" }, "createdAt": { "type": "string" @@ -472,8 +694,8 @@ "description": "闊抽澶у皬", "type": "integer" }, - "stationNumber": { - "description": "杞︾珯鍙�", + "station": { + "description": "杞︾珯", "type": "string" }, "trainNumber": { @@ -482,14 +704,54 @@ }, "updatedAt": { "type": "string" + }, + "words": { + "description": "鍖归厤鍒扮殑鏂囧瓧鏁扮粍", + "type": "array", + "items": { + "type": "string" + } } } }, - "models.Text": { + "models.TrainInfo": { + "type": "object", + "properties": { + "class": { + "description": "鍒嗙被 1 鏈鸿溅 2杞︽ 3 杞︾珯", + "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" + } + } + }, + "models.Word": { "type": "object", "properties": { "content": { - "description": "闊抽鍚嶇О", + "description": "鏂囧瓧", "type": "string" }, "createdAt": { @@ -567,7 +829,12 @@ "type": "object", "properties": { "followStatus": { - "$ref": "#/definitions/constvar.BoolType" + "description": "1 宸插叧娉� 2鏈叧娉�", + "allOf": [ + { + "$ref": "#/definitions/constvar.BoolType" + } + ] } } }, -- Gitblit v1.8.0