From f68189bc3a040bb80bacb0aa486d3bae2e244a13 Mon Sep 17 00:00:00 2001 From: liyj <1617420630@qq.com> Date: Sat, 10 Jan 2026 17:00:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=8A=9F=E8=83=BD=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=EF=BC=9A=E6=89=B9=E9=87=8F=E4=BB=8E=E5=95=86=E5=93=81=E8=A1=A8?= =?UTF-8?q?=E5=AF=BC=E5=9B=BE=E7=89=87=E5=88=B0=E5=9B=BE=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/LibraryProductController.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/mall-shop/src/main/java/com/suisung/mall/shop/library/controller/LibraryProductController.java b/mall-shop/src/main/java/com/suisung/mall/shop/library/controller/LibraryProductController.java index cfb356c9..75acb0fd 100644 --- a/mall-shop/src/main/java/com/suisung/mall/shop/library/controller/LibraryProductController.java +++ b/mall-shop/src/main/java/com/suisung/mall/shop/library/controller/LibraryProductController.java @@ -49,4 +49,20 @@ public class LibraryProductController { List libraryProducts= gson.fromJson(json,new TypeToken>(){}.getType()); return libraryProductService.updateBatchLibraryProductDTO(libraryProducts); } + + + /** + * 批量从商品表导上架的图片到图库 + * @param + * @return + */ + @ApiOperation(value = "批量从商品表导图片到图库", notes = "批量从商品表导图片到图库") + @RequestMapping(value = "/shopImportToLib", method = RequestMethod.POST) + public CommonResult shopImportToLib(@RequestParam("storeId") Integer storeId) { + if(storeId==null){ + CommonResult.failed("店铺id不能为空"); + } + return libraryProductService.shopImportToLib(storeId); + } + }