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

---
 docs/docs.go |  130 ++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 128 insertions(+), 2 deletions(-)

diff --git a/docs/docs.go b/docs/docs.go
index 0decc75..c21ad56 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -17,7 +17,7 @@
     "basePath": "{{.BasePath}}",
     "paths": {
         "/api-sa/v1/audio/batchDelete": {
-            "post": {
+            "delete": {
                 "produces": [
                     "application/json"
                 ],
@@ -77,7 +77,7 @@
             }
         },
         "/api-sa/v1/audio/delete": {
-            "post": {
+            "delete": {
                 "produces": [
                     "application/json"
                 ],
@@ -283,6 +283,90 @@
                     }
                 }
             }
+        },
+        "/api-sa/v1/text/add": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "鏂囧瓧搴�"
+                ],
+                "summary": "鏂板鏂囧瓧",
+                "parameters": [
+                    {
+                        "description": "鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.AddTextReq"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "$ref": "#/definitions/util.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api-sa/v1/text/list": {
+            "get": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "鏂囧瓧搴�"
+                ],
+                "summary": "鏂囧瓧搴撳垪琛�",
+                "parameters": [
+                    {
+                        "type": "string",
+                        "description": "鍏抽敭瀛�",
+                        "name": "keyword",
+                        "in": "query"
+                    },
+                    {
+                        "type": "integer",
+                        "description": "椤电爜",
+                        "name": "page",
+                        "in": "query"
+                    },
+                    {
+                        "type": "integer",
+                        "description": "姣忛〉澶у皬",
+                        "name": "pageSize",
+                        "in": "query"
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "allOf": [
+                                {
+                                    "$ref": "#/definitions/util.ResponseList"
+                                },
+                                {
+                                    "type": "object",
+                                    "properties": {
+                                        "data": {
+                                            "type": "array",
+                                            "items": {
+                                                "$ref": "#/definitions/models.Text"
+                                            }
+                                        }
+                                    }
+                                }
+                            ]
+                        }
+                    }
+                }
+            }
         }
     },
     "definitions": {
@@ -401,6 +485,48 @@
                 }
             }
         },
+        "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"
+                }
+            }
+        },
+        "request.AddTextReq": {
+            "type": "object",
+            "required": [
+                "content",
+                "locomotiveNumber"
+            ],
+            "properties": {
+                "content": {
+                    "description": "闊抽鍚嶇О",
+                    "type": "string"
+                },
+                "locomotiveNumber": {
+                    "description": "鏈鸿溅鍙�",
+                    "type": "string"
+                }
+            }
+        },
         "request.BatchProcessAudio": {
             "type": "object",
             "required": [

--
Gitblit v1.8.0