新功能新增:批量从商品表导图片到图库
This commit is contained in:
parent
a8c940dce1
commit
1ee065188f
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user