| | |
| | | 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; |
| | | |
| | |
| | | */ |
| | | @FeignClient(contextId = "GoodsShopClient", value = ServiceNameConstants.OTHER_SERVICE, fallbackFactory = GoodsShopClientFallbackFactory.class) |
| | | public interface GoodsShopClient { |
| | | |
| | | /** |
| | | * 获取商品门店关系数据 |
| | | * @param goodsShop |
| | | * @return |
| | | */ |
| | | @PostMapping("/goods-shop/getGoodsShop") |
| | | R<GoodsShop> getGoodsShop(@RequestBody GoodsShop goodsShop); |
| | | |
| | | |
| | | /** |
| | | * 根据商品id集合和门店id查询数据 |
| | | * @param goodsIds |
| | | * @return |
| | | */ |
| | | @PostMapping("/goods-shop/getGoodsShopByGoodsIds") |
| | | @GetMapping("/goods-shop/getGoodsShopByGoodsIds") |
| | | R<List<GoodsShop>> getGoodsShopByGoodsIds(@RequestBody GetGoodsShopByGoodsIds goodsIds); |
| | | /** |
| | | * 根据id获取门店信息 |
| | | */ |
| | | @GetMapping ("/goods-shop/getGoodsShop/{goodsId}") |
| | | R<GoodsShop> getGoodsShop(@PathVariable("goodsId") Integer goodsId); |
| | | } |