小程序商品返回相关推荐
This commit is contained in:
@@ -9,7 +9,6 @@ import com.czg.product.vo.ShopProductSkuInfoVo;
|
||||
import com.czg.product.vo.ShopProductVo;
|
||||
import com.czg.resp.CzgResult;
|
||||
import com.czg.sa.StpKit;
|
||||
import com.czg.service.RedisService;
|
||||
import com.czg.utils.AssertUtil;
|
||||
import com.czg.validator.ValidatorUtil;
|
||||
import com.czg.validator.group.DefaultGroup;
|
||||
@@ -34,7 +33,6 @@ import java.util.Map;
|
||||
@RequestMapping("/user/product")
|
||||
public class UProductController {
|
||||
private final UProductService uProductService;
|
||||
private final RedisService redisService;
|
||||
|
||||
/**
|
||||
* 小程序点餐-热销商品列表
|
||||
@@ -72,15 +70,6 @@ public class UProductController {
|
||||
return CzgResult.success(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取相关推荐商品
|
||||
*/
|
||||
@GetMapping("/related/{id}")
|
||||
public CzgResult<List<ShopProductVo>> getRelatedProduct(@PathVariable("id") Long id) {
|
||||
AssertUtil.isNull(id, "商品id不能为空");
|
||||
return CzgResult.success(uProductService.queryProductRelatedList(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 小程序点餐-商品详情
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user