| | |
| | | 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.factory.OrderFallbackFactory; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | |
| | | @FeignClient(contextId = "orderClient", value = ServiceNameConstants.RUOYI_ORDER, fallbackFactory = OrderFallbackFactory.class) |
| | | public interface OrderClient { |
| | | |
| | | /** |
| | | * 获取某个商品的已购会员数 |
| | | * |
| | | * @param id 秒杀商品id |
| | | * @return 已购会员数 |
| | | */ |
| | | @GetMapping("/order/seckill-members/{id}") |
| | | R<Integer> getSeckillMembers(@PathVariable("id") Long id); |
| | | } |