活动优惠编写完成
This commit is contained in:
		@@ -5,6 +5,7 @@ import com.atguigu.ssyx.model.product.SkuInfo;
 | 
			
		||||
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;
 | 
			
		||||
 | 
			
		||||
import java.util.List;
 | 
			
		||||
@@ -18,10 +19,22 @@ import java.util.List;
 | 
			
		||||
 */
 | 
			
		||||
@FeignClient(value = "service-product")
 | 
			
		||||
public interface ProductFeignClient {
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 根据分类id获取分类信息
 | 
			
		||||
     * \
 | 
			
		||||
     *
 | 
			
		||||
     * @param categoryId
 | 
			
		||||
     * @return
 | 
			
		||||
     */
 | 
			
		||||
    @GetMapping("/api/product/inner/getCategory/{categoryId}")
 | 
			
		||||
    Category getCategory(@PathVariable("categoryId") Long categoryId);
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 根据skuId获取sku信息
 | 
			
		||||
     *
 | 
			
		||||
     * @param skuId
 | 
			
		||||
     * @return
 | 
			
		||||
     */
 | 
			
		||||
    @GetMapping("/api/product/inner/getSkuInfo/{skuId}")
 | 
			
		||||
    SkuInfo getSkuInfo(@PathVariable("skuId") Long skuId);
 | 
			
		||||
 | 
			
		||||
@@ -43,4 +56,12 @@ public interface ProductFeignClient {
 | 
			
		||||
    @GetMapping("/api/product/inner/findSkuInfoList")
 | 
			
		||||
    List<SkuInfo> findSkuInfoList(@RequestBody List<Long> skuIdList);
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 批量获取分类信息
 | 
			
		||||
     *
 | 
			
		||||
     * @param categoryIdList
 | 
			
		||||
     * @return
 | 
			
		||||
     */
 | 
			
		||||
    @PostMapping("/api/product/inner/findCategoryList")
 | 
			
		||||
    List<Category> findCategoryList(@RequestBody List<Long> categoryIdList);
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user