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); + } + }