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.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 {
|
|
/**
|
* 获取商品门店关系数据
|
* @param goodsShop
|
* @return
|
*/
|
@PostMapping("/goods-shop/getGoodsShop")
|
R<GoodsShop> getGoodsShop(@RequestBody GoodsShop goodsShop);
|
|
/**
|
* 根据商品id集合和门店id查询数据
|
* @param goodsIds
|
* @return
|
*/
|
@PostMapping("/goods-shop/getGoodsShopByGoodsIds")
|
R<List<GoodsShop>> getGoodsShopByGoodsIds(@RequestBody GetGoodsShopByGoodsIds goodsIds);
|
}
|