From 3eb829393c22b975b9ca7e0e022150d4cafa9bd1 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期四, 16 五月 2024 15:29:32 +0800
Subject: [PATCH] 增加音频详情接口,返回解析的文字

---
 docs/swagger.yaml |   72 ++++++++++++++++++++++++++----------
 1 files changed, 52 insertions(+), 20 deletions(-)

diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index fc611f7..e16406b 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -58,6 +58,9 @@
         allOf:
         - $ref: '#/definitions/constvar.AudioStatus'
         description: 闊抽鐘舵��
+      audioText:
+        description: 瑙f瀽鍑虹殑鏂囨湰
+        type: string
       createdAt:
         type: string
       deletedAt:
@@ -93,30 +96,18 @@
         type: string
       updatedAt:
         type: string
-    type: object
-  models.Text:
-    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: 鍖归厤鍒扮殑鏂囧瓧鏁扮粍
+        items:
+          type: string
+        type: array
     type: object
   models.TrainInfo:
     properties:
       class:
         allOf:
         - $ref: '#/definitions/constvar.Class'
-        description: 鍒嗙被
+        description: 鍒嗙被  1 鏈鸿溅 2杞︽ 3 杞︾珯
       createdAt:
         type: string
       deletedAt:
@@ -129,6 +120,23 @@
       parentID:
         description: 涓婄骇id
         type: integer
+      updatedAt:
+        type: string
+    type: object
+  models.Word:
+    properties:
+      content:
+        description: 鏂囧瓧
+        type: string
+      createdAt:
+        type: string
+      deletedAt:
+        $ref: '#/definitions/gorm.DeletedAt'
+      id:
+        type: integer
+      locomotiveNumber:
+        description: 鏈鸿溅鍙�
+        type: string
       updatedAt:
         type: string
     type: object
@@ -170,7 +178,9 @@
   response.FollowResp:
     properties:
       followStatus:
-        $ref: '#/definitions/constvar.BoolType'
+        allOf:
+        - $ref: '#/definitions/constvar.BoolType'
+        description: 1 宸插叧娉� 2鏈叧娉�
     type: object
   util.Response:
     properties:
@@ -276,6 +286,28 @@
                   $ref: '#/definitions/response.FollowResp'
               type: object
       summary: 鍏虫敞/鍙栨秷鍏虫敞
+      tags:
+      - 闊抽
+  /api-sa/v1/audio/info:
+    get:
+      parameters:
+      - in: query
+        name: id
+        required: true
+        type: integer
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            allOf:
+            - $ref: '#/definitions/util.Response'
+            - properties:
+                data:
+                  $ref: '#/definitions/models.Audio'
+              type: object
+      summary: 闊抽璇︽儏锛屽惈瑙f瀽缁撴灉
       tags:
       - 闊抽
   /api-sa/v1/audio/list:
@@ -456,7 +488,7 @@
             - properties:
                 data:
                   items:
-                    $ref: '#/definitions/models.Text'
+                    $ref: '#/definitions/models.Word'
                   type: array
               type: object
       summary: 鏂囧瓧搴撳垪琛�

--
Gitblit v1.8.0