From a5429b8a83e1b4a48c2a3b9b0b475f08a114837c Mon Sep 17 00:00:00 2001 From: yinbangzhong <zhongbangyin@126.com> Date: 星期四, 20 六月 2024 09:11:57 +0800 Subject: [PATCH] download file by attach model --- docs/docs.go | 128 ++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 127 insertions(+), 1 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index b9de7a5..41fc6df 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -117,6 +117,11 @@ "parameters": [ { "type": "integer", + "name": "fileType", + "in": "query" + }, + { + "type": "integer", "name": "id", "in": "query", "required": true @@ -196,6 +201,11 @@ ], "summary": "闊抽璇︽儏锛屽惈瑙f瀽缁撴灉", "parameters": [ + { + "type": "integer", + "name": "fileType", + "in": "query" + }, { "type": "integer", "name": "id", @@ -350,6 +360,37 @@ } } }, + "/api-sa/v1/audio/preLoadPath": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "闊抽鑷姩鍔犺浇璺緞" + ], + "summary": "闊抽鑷姩鍔犺浇璺緞", + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/util.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/response.PreLoadPathResp" + } + } + } + ] + } + } + } + } + }, "/api-sa/v1/audio/process": { "post": { "produces": [ @@ -457,6 +498,9 @@ }, "/api-sa/v1/audio/upload": { "post": { + "consumes": [ + "multipart/form-data" + ], "produces": [ "application/json" ], @@ -472,7 +516,7 @@ }, "collectionFormat": "csv", "description": "澶氭枃浠朵笂浼�", - "name": "files", + "name": "file", "in": "formData" } ], @@ -495,6 +539,36 @@ "鏂囧瓧搴�" ], "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/delete": { + "delete": { + "produces": [ + "application/json" + ], + "tags": [ + "鏂囧瓧搴�" + ], + "summary": "淇敼鏂囧瓧", "parameters": [ { "description": "鍙傛暟", @@ -565,6 +639,36 @@ } } ] + } + } + } + } + }, + "/api-sa/v1/text/update": { + "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" } } } @@ -677,6 +781,10 @@ } ] }, + "kilometerMarker": { + "description": "鍏噷鏍�", + "type": "string" + }, "locomotiveNumber": { "description": "鏈鸿溅鍙�", "type": "string" @@ -686,6 +794,10 @@ "type": "string" }, "occurrenceTime": { + "type": "string" + }, + "routeNumber": { + "description": "浜よ矾鍙�", "type": "string" }, "score": { @@ -785,6 +897,9 @@ "description": "闊抽鍚嶇О", "type": "string" }, + "id": { + "type": "integer" + }, "locomotiveNumber": { "description": "鏈鸿溅鍙�", "type": "string" @@ -822,6 +937,9 @@ "id" ], "properties": { + "fileType": { + "type": "integer" + }, "id": { "type": "integer" } @@ -840,6 +958,14 @@ } } }, + "response.PreLoadPathResp": { + "type": "object", + "properties": { + "preLoadPath": { + "type": "string" + } + } + }, "util.Response": { "type": "object", "properties": { -- Gitblit v1.8.0