商品详情展示

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);
}