商品详情展示

This commit is contained in:
2023-10-08 22:07:41 +08:00
parent cfeefe2dc6
commit bf4e5a807d
23 changed files with 390 additions and 18 deletions

View File

@@ -1,6 +1,9 @@
package com.atguigu.ssyx.client.activity;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
@@ -19,4 +22,8 @@ public interface ActivityFeignClient {
@PostMapping("/api/activity/inner/findActivity")
Map<Long, List<String>> findActivity(@RequestBody List<Long> skuIdList);
@ApiOperation("根据skuID获取营销数据和优惠卷")
@GetMapping("/api/activity/inner/findActivityAndCoupon/{skuId}/{userId}")
Map<String, Object> findActivityAndCoupon(@PathVariable("skuId") Long skuId, @PathVariable("userId") Long userId);
}

View File

@@ -2,6 +2,7 @@ package com.atguigu.ssyx.client.product;
import com.atguigu.ssyx.model.product.Category;
import com.atguigu.ssyx.model.product.SkuInfo;
import com.atguigu.ssyx.vo.product.SkuInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
@@ -70,7 +71,7 @@ public interface ProductFeignClient {
* @return
*/
@GetMapping("/api/product/inner/findAllCategoryList")
public List<Category> findAllCategoryList();
List<Category> findAllCategoryList();
/**
* 获取新人优惠
@@ -78,5 +79,14 @@ public interface ProductFeignClient {
* @return
*/
@GetMapping("/api/product/inner/findNewPersonSkuInfoList")
public List<SkuInfo> findNewPersonSkuInfoList();
List<SkuInfo> findNewPersonSkuInfoList();
/**
* 根据skuId获取sku信息
*
* @param skuId
* @return
*/
@GetMapping("/api/product/inner/getSkuInfoVo/{skuId}")
SkuInfoVo getSkuInfoVo(@PathVariable Long skuId);
}

View File

@@ -1,8 +1,10 @@
package com.atguigu.ssyx.client.search;
import com.atguigu.ssyx.model.search.SkuEs;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import java.util.List;
@@ -17,5 +19,9 @@ import java.util.List;
public interface SkuFeignClient {
@GetMapping("/api/search/sku/inner/findHotSkuList")
public List<SkuEs> findHotSkuList();
List<SkuEs> findHotSkuList();
@ApiOperation(value = "更新商品热度")
@GetMapping("/api/search/sku/inner/incrHotScore/{skuId}")
Boolean incrHotScore(@PathVariable("skuId") Long skuId);
}