From 3eb829393c22b975b9ca7e0e022150d4cafa9bd1 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期四, 16 五月 2024 15:29:32 +0800 Subject: [PATCH] 增加音频详情接口,返回解析的文字 --- docs/docs.go | 109 +++++++++++++++++++++++++++++++++++++++++------------- 1 files changed, 82 insertions(+), 27 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 64c129c..c225b57 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -148,6 +148,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": [ @@ -432,7 +471,7 @@ "data": { "type": "array", "items": { - "$ref": "#/definitions/models.Text" + "$ref": "#/definitions/models.Word" } } } @@ -525,6 +564,10 @@ } ] }, + "audioText": { + "description": "瑙f瀽鍑虹殑鏂囨湰", + "type": "string" + }, "createdAt": { "type": "string" }, @@ -575,31 +618,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 +632,7 @@ "type": "object", "properties": { "class": { - "description": "鍒嗙被", + "description": "鍒嗙被 1 鏈鸿溅 2杞︽ 3 杞︾珯", "allOf": [ { "$ref": "#/definitions/constvar.Class" @@ -630,6 +655,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 +743,12 @@ "type": "object", "properties": { "followStatus": { - "$ref": "#/definitions/constvar.BoolType" + "description": "1 宸插叧娉� 2鏈叧娉�", + "allOf": [ + { + "$ref": "#/definitions/constvar.BoolType" + } + ] } } }, -- Gitblit v1.8.0