新功能新增:批量从商品表导图片到图库

This commit is contained in:
liyj 2026-01-10 17:00:12 +08:00
parent c1dfffa26e
commit f68189bc3a

View File

@ -49,4 +49,20 @@ public class LibraryProductController {
List<LibraryProductDTO> libraryProducts= gson.fromJson(json,new TypeToken<List<LibraryProductDTO>>(){}.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);
}
}