New file |
| | |
| | | package com.ruoyi.goods.api.service; |
| | | |
| | | import com.ruoyi.common.core.constant.ServiceNameConstants; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.goods.api.domain.LotteryEvent; |
| | | import com.ruoyi.goods.api.factory.LotteryEventFallbackFactory; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author zhibing.pu |
| | | * @Date 2025/5/8 18:11 |
| | | */ |
| | | @FeignClient(contextId = "LotteryEventClient", value = ServiceNameConstants.GOODS_SERVICE, fallbackFactory = LotteryEventFallbackFactory.class) |
| | | public interface LotteryEventClient { |
| | | |
| | | |
| | | /** |
| | | * 根据开启方式获取活动列表 |
| | | * @param activityType |
| | | * @return |
| | | */ |
| | | @PostMapping("/lotteryEvent/getLotteryEventList") |
| | | R<List<LotteryEvent>> getLotteryEventList(@RequestParam("activityType") Integer activityType); |
| | | } |