Authored by mali

尺码图片增加缓存

... ... @@ -1018,13 +1018,8 @@ public class ProductController {
@Cachable(expire = 300)
public ApiResponse getSizeImage(@RequestParam(value = "product_id") Integer productId,
@RequestParam(value = "brand_id") Integer brandId) {
if (null == productId || null == brandId) {
LOG.info("in method=ufo.product.sizeImage product_id and brand_id is Null or empty");
return new ApiResponse(400, "product_id and brand_id is Null or empty", null);
}
LOG.info("in method=ufo.product.sizeImage product_id is {}", productId);
SizeImageResp result =productService.getSizeImage(productId, brandId);
LOG.info("in method=ufo.product.sizeImage product_id is {}, brandId is {}", productId, brandId);
SizeImageResp result = productService.getSizeImage(productId, brandId);
return new ApiResponse.ApiResponseBuilder().code(200).data(result).message("getSizeImage success").build();
}
}
\ No newline at end of file
... ...