package com.ruoyi.system.api.feignClient; import com.ruoyi.common.core.constant.ServiceNameConstants; import com.ruoyi.common.core.domain.R; import com.ruoyi.system.api.domain.GoodsSeckill; import com.ruoyi.system.api.domain.GoodsSku; import com.ruoyi.system.api.factory.GoodsSkuFactory; import java.util.List; 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; ; @FeignClient(contextId = "GoodsSkuClient", value = ServiceNameConstants.RUOYI_GOODS, fallbackFactory = GoodsSkuFactory.class) public interface GoodsSkuClient { @PostMapping("/goods-sku/getGoodsSkuOne") R getGoodsSkuOne(@RequestBody Long goodsSkuId); @PostMapping("/goods-seckill/getGoodsSeckillOne") R getGoodsSeckillOne(@RequestBody Long goodsSkuId); @PostMapping("/goods-sku/updateGoodsSkuOne") R updateGoodsSkuOne(@RequestBody GoodsSku goodsSku); @GetMapping("/goods-seckill/start/{seckillId}") R startSeckill(@PathVariable("seckillId") Long seckillId); @GetMapping("/goods-seckill/end/{seckillId}") R endSeckill(@PathVariable("seckillId") Long seckillId); @GetMapping("/goods-group-purchase/start/{groupPurchaseId}") R startGroupPurchase(@PathVariable("groupPurchaseId") Long groupPurchaseId); @GetMapping("/goods-group-purchase/end/{groupPurchaseId}") R endGroupPurchase(@PathVariable("groupPurchaseId") Long groupPurchaseId); @GetMapping("/goods-sku/name/{goodsSkuName}") R> getGoodsByName(@PathVariable("goodsSkuName") String goodsSkuName); }