From db7e3c55cef94793dcc0b651c90e5c8b21b8bcc9 Mon Sep 17 00:00:00 2001 From: yinbangzhong <zhongbangyin@126.com> Date: 星期一, 17 六月 2024 19:28:13 +0800 Subject: [PATCH] watch preloads file to autoload --- docs/docs.go | 419 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 407 insertions(+), 12 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 0decc75..b9de7a5 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -1,5 +1,4 @@ -// Code generated by swaggo/swag. DO NOT EDIT. - +// Package docs Code generated by swaggo/swag. DO NOT EDIT package docs import "github.com/swaggo/swag" @@ -17,7 +16,7 @@ "basePath": "{{.BasePath}}", "paths": { "/api-sa/v1/audio/batchDelete": { - "post": { + "delete": { "produces": [ "application/json" ], @@ -77,7 +76,7 @@ } }, "/api-sa/v1/audio/delete": { - "post": { + "delete": { "produces": [ "application/json" ], @@ -101,6 +100,45 @@ "description": "鎴愬姛", "schema": { "$ref": "#/definitions/util.Response" + } + } + } + } + }, + "/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" + } + } + } + ] } } } @@ -148,6 +186,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 +237,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" }, { @@ -192,6 +299,23 @@ "type": "string", "description": "杞︾珯鍙�", "name": "stationNumber", + "in": "query" + }, + { + "type": "array", + "items": { + "enum": [ + 0, + 1, + 2, + 3, + 4 + ], + "type": "integer" + }, + "collectionFormat": "csv", + "description": "闊抽鐘舵�佹暟缁�", + "name": "statusList", "in": "query" }, { @@ -256,6 +380,81 @@ } } }, + "/api-sa/v1/audio/trainInfoList": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "闊抽" + ], + "summary": "鑾峰彇鐏溅淇℃伅", + "parameters": [ + { + "enum": [ + 1, + 2, + 3 + ], + "type": "integer", + "x-enum-comments": { + "ClassLocomotive": "鏈鸿溅", + "ClassStation": "杞︾珯", + "ClassTrain": "杞︽" + }, + "x-enum-varnames": [ + "ClassLocomotive", + "ClassTrain", + "ClassStation" + ], + "description": "淇℃伅鍒嗙被 1鏈鸿溅2杞︽3杞︾珯", + "name": "class", + "in": "query" + }, + { + "type": "integer", + "description": "椤电爜", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "姣忛〉澶у皬", + "name": "pageSize", + "in": "query" + }, + { + "type": "integer", + "description": "涓婄骇id", + "name": "parentID", + "in": "query" + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/util.ResponseList" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/models.TrainInfo" + } + } + } + } + ] + } + } + } + } + }, "/api-sa/v1/audio/upload": { "post": { "produces": [ @@ -267,11 +466,14 @@ "summary": "涓婁紶闊抽", "parameters": [ { - "type": "file", - "description": "闊抽鏂囦欢", - "name": "file", - "in": "formData", - "required": true + "type": "array", + "items": { + "type": "file" + }, + "collectionFormat": "csv", + "description": "澶氭枃浠朵笂浼�", + "name": "files", + "in": "formData" } ], "responses": { @@ -279,6 +481,90 @@ "description": "鎴愬姛", "schema": { "$ref": "#/definitions/util.Response" + } + } + } + } + }, + "/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.Word" + } + } + } + } + ] } } } @@ -325,6 +611,24 @@ "BoolTypeFalse" ] }, + "constvar.Class": { + "type": "integer", + "enum": [ + 1, + 2, + 3 + ], + "x-enum-comments": { + "ClassLocomotive": "鏈鸿溅", + "ClassStation": "杞︾珯", + "ClassTrain": "杞︽" + }, + "x-enum-varnames": [ + "ClassLocomotive", + "ClassTrain", + "ClassStation" + ] + }, "gorm.DeletedAt": { "type": "object", "properties": { @@ -347,6 +651,10 @@ "$ref": "#/definitions/constvar.AudioStatus" } ] + }, + "audioText": { + "description": "瑙f瀽鍑虹殑鏂囨湰", + "type": "string" }, "createdAt": { "type": "string" @@ -388,8 +696,8 @@ "description": "闊抽澶у皬", "type": "integer" }, - "stationNumber": { - "description": "杞︾珯鍙�", + "station": { + "description": "杞︾珯", "type": "string" }, "trainNumber": { @@ -397,6 +705,88 @@ "type": "string" }, "updatedAt": { + "type": "string" + }, + "words": { + "description": "鍖归厤鍒扮殑鏂囧瓧鏁扮粍", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "models.TrainInfo": { + "type": "object", + "properties": { + "class": { + "description": "鍒嗙被 1 鏈鸿溅 2杞︽ 3 杞︾珯", + "allOf": [ + { + "$ref": "#/definitions/constvar.Class" + } + ] + }, + "createdAt": { + "type": "string" + }, + "deletedAt": { + "$ref": "#/definitions/gorm.DeletedAt" + }, + "id": { + "type": "integer" + }, + "name": { + "description": "鍚嶇О", + "type": "string" + }, + "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" + } + } + }, + "request.AddTextReq": { + "type": "object", + "required": [ + "content", + "locomotiveNumber" + ], + "properties": { + "content": { + "description": "闊抽鍚嶇О", + "type": "string" + }, + "locomotiveNumber": { + "description": "鏈鸿溅鍙�", "type": "string" } } @@ -441,7 +831,12 @@ "type": "object", "properties": { "followStatus": { - "$ref": "#/definitions/constvar.BoolType" + "description": "1 宸插叧娉� 2鏈叧娉�", + "allOf": [ + { + "$ref": "#/definitions/constvar.BoolType" + } + ] } } }, -- Gitblit v1.8.0