package com.ruoyi.other.api.feignClient; import com.ruoyi.common.core.constant.ServiceNameConstants; import com.ruoyi.common.core.domain.R; import com.ruoyi.other.api.domain.GoodsShop; import com.ruoyi.other.api.factory.GoodsShopClientFallbackFactory; import com.ruoyi.other.api.vo.GetGoodsShopByGoodsIds; 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; /** * @author zhibing.pu * @Date 2024/11/27 20:28 */ @FeignClient(contextId = "GoodsShopClient", value = ServiceNameConstants.OTHER_SERVICE, fallbackFactory = GoodsShopClientFallbackFactory.class) public interface GoodsShopClient { /** * 根据商品id集合和门店id查询数据 * @param goodsIds * @return */ @GetMapping("/goods-shop/getGoodsShopByGoodsIds") R> getGoodsShopByGoodsIds(@RequestBody GetGoodsShopByGoodsIds goodsIds); /** * 根据id获取门店信息 */ @GetMapping ("/goods-shop/getGoodsShop/{goodsId}") R getGoodsShop(@PathVariable("goodsId") Integer goodsId); }