From 6ca4d2757a0489ffd3d32829a763704d83575f30 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期四, 11 七月 2024 21:52:58 +0800 Subject: [PATCH] 从指定路径excel获取产品编码和图片,传到文件服务器并保存的接口,用于嘉联为所有产品上传图片。 --- docs/docs.go | 67 ++++++++++++++++++++++++++++++++- 1 files changed, 64 insertions(+), 3 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index aee23f5..f46a305 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -2625,6 +2625,43 @@ } } }, + "/api-wms/v1/other/saveProductImagesFromExcel": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "鍏朵粬" + ], + "summary": "浠巈xcel涓幏鍙栦骇鍝佸浘鐗囧苟淇濆瓨", + "parameters": [ + { + "description": "灞炴�т俊鎭�", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/controllers.saveProductImagesFromExcelRequest" + } + }, + { + "type": "string", + "description": "token", + "name": "Authorization", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/util.Response" + } + } + } + } + }, "/api-wms/v1/product/addDisuse": { "post": { "produces": [ @@ -4395,6 +4432,27 @@ "WhetherTypeAlways", "ReservationNever" ] + }, + "controllers.saveProductImagesFromExcelRequest": { + "type": "object", + "properties": { + "excelFilePath": { + "description": "excel璺緞 鐢╠ocker cp浼犲埌瀹瑰櫒閲�", + "type": "string" + }, + "imageColumn": { + "description": "鍥剧墖鎵�鍦ㄥ垪鍚�", + "type": "string" + }, + "productIdColumnIndex": { + "description": "浜у搧ID鏄鍑犲垪(浠�0寮�濮�)", + "type": "integer" + }, + "sheetIndex": { + "description": "绗嚑涓猻heet", + "type": "integer" + } + } }, "gorm.DeletedAt": { "type": "object", @@ -6333,9 +6391,9 @@ "description": "姣忛〉澶у皬", "type": "integer" }, - "warehouseCode": { - "description": "浠撳簱缂╁啓", - "type": "string" + "warehouseId": { + "description": "WarehouseCode string ` + "`" + `json:\"warehouseCode\"` + "`" + ` //浠撳簱缂╁啓", + "type": "integer" } } }, @@ -6373,6 +6431,9 @@ "unit": { "description": "鍗曚綅", "type": "string" + }, + "warehouseCode": { + "type": "string" } } }, -- Gitblit v1.8.0