From 89ff3763c7eaa2db032b965596566a870dcb5030 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期二, 14 五月 2024 11:14:25 +0800
Subject: [PATCH] 添加文字和文字列表接口

---
 docs/swagger.yaml |   84 +++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 82 insertions(+), 2 deletions(-)

diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 92dd451..53b00ca 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -80,6 +80,35 @@
       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
+    type: object
+  request.AddTextReq:
+    properties:
+      content:
+        description: 闊抽鍚嶇О
+        type: string
+      locomotiveNumber:
+        description: 鏈鸿溅鍙�
+        type: string
+    required:
+    - content
+    - locomotiveNumber
+    type: object
   request.BatchProcessAudio:
     properties:
       ids:
@@ -134,7 +163,7 @@
   contact: {}
 paths:
   /api-sa/v1/audio/batchDelete:
-    post:
+    delete:
       parameters:
       - description: 鍙傛暟
         in: body
@@ -172,7 +201,7 @@
       tags:
       - 闊抽
   /api-sa/v1/audio/delete:
-    post:
+    delete:
       parameters:
       - description: 鍙傛暟
         in: body
@@ -299,4 +328,55 @@
       summary: 涓婁紶闊抽
       tags:
       - 闊抽
+  /api-sa/v1/text/add:
+    post:
+      parameters:
+      - description: 鍙傛暟
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/request.AddTextReq'
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            $ref: '#/definitions/util.Response'
+      summary: 鏂板鏂囧瓧
+      tags:
+      - 鏂囧瓧搴�
+  /api-sa/v1/text/list:
+    get:
+      parameters:
+      - description: 鍏抽敭瀛�
+        in: query
+        name: keyword
+        type: string
+      - description: 椤电爜
+        in: query
+        name: page
+        type: integer
+      - description: 姣忛〉澶у皬
+        in: query
+        name: pageSize
+        type: integer
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            allOf:
+            - $ref: '#/definitions/util.ResponseList'
+            - properties:
+                data:
+                  items:
+                    $ref: '#/definitions/models.Text'
+                  type: array
+              type: object
+      summary: 鏂囧瓧搴撳垪琛�
+      tags:
+      - 鏂囧瓧搴�
 swagger: "2.0"

--
Gitblit v1.8.0