From 0a6e8be485f41fcbf6c362663138ce86ccdd02f1 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期三, 22 五月 2024 19:47:19 +0800 Subject: [PATCH] 音频正在处理或者处理完成,不可删除 --- docs/docs.go | 178 ++++++++++++++++++++++++++++++++++++++++++++++++++--------- 1 files changed, 151 insertions(+), 27 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 64c129c..59ee610 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" }, { @@ -432,7 +540,7 @@ "data": { "type": "array", "items": { - "$ref": "#/definitions/models.Text" + "$ref": "#/definitions/models.Word" } } } @@ -525,6 +633,10 @@ } ] }, + "audioText": { + "description": "瑙f瀽鍑虹殑鏂囨湰", + "type": "string" + }, "createdAt": { "type": "string" }, @@ -575,31 +687,13 @@ }, "updatedAt": { "type": "string" - } - } - }, - "models.Text": { - "type": "object", - "properties": { - "content": { - "description": "闊抽鍚嶇О", - "type": "string" }, - "createdAt": { - "type": "string" - }, - "deletedAt": { - "$ref": "#/definitions/gorm.DeletedAt" - }, - "id": { - "type": "integer" - }, - "locomotiveNumber": { - "description": "鏈鸿溅鍙�", - "type": "string" - }, - "updatedAt": { - "type": "string" + "words": { + "description": "鍖归厤鍒扮殑鏂囧瓧鏁扮粍", + "type": "array", + "items": { + "type": "string" + } } } }, @@ -607,7 +701,7 @@ "type": "object", "properties": { "class": { - "description": "鍒嗙被", + "description": "鍒嗙被 1 鏈鸿溅 2杞︽ 3 杞︾珯", "allOf": [ { "$ref": "#/definitions/constvar.Class" @@ -630,6 +724,31 @@ "parentID": { "description": "涓婄骇id", "type": "integer" + }, + "updatedAt": { + "type": "string" + } + } + }, + "models.Word": { + "type": "object", + "properties": { + "content": { + "description": "鏂囧瓧", + "type": "string" + }, + "createdAt": { + "type": "string" + }, + "deletedAt": { + "$ref": "#/definitions/gorm.DeletedAt" + }, + "id": { + "type": "integer" + }, + "locomotiveNumber": { + "description": "鏈鸿溅鍙�", + "type": "string" }, "updatedAt": { "type": "string" @@ -693,7 +812,12 @@ "type": "object", "properties": { "followStatus": { - "$ref": "#/definitions/constvar.BoolType" + "description": "1 宸插叧娉� 2鏈叧娉�", + "allOf": [ + { + "$ref": "#/definitions/constvar.BoolType" + } + ] } } }, -- Gitblit v1.8.0