package feignClient;
|
|
|
import com.ruoyi.common.core.constant.ServiceNameConstants;
|
import com.ruoyi.common.core.domain.R;
|
import factory.RemoteOrderGoodsFallbackFactory;
|
import model.OrderGood;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
import java.util.List;
|
|
@FeignClient(contextId = "RemoteOrderGoodsClient", value = ServiceNameConstants.ORDER_SERVICE, fallbackFactory = RemoteOrderGoodsFallbackFactory.class)
|
public interface RemoteOrderGoodsClient {
|
|
/**
|
* 查询指定商品订单
|
*/
|
@PostMapping("/order-good/selectGoodsOrder")
|
public R<List<OrderGood>> goodsOrder(@RequestBody List<Long> goodsIds);
|
}
|