| | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import factory.RemoteOrderFallbackFactory; |
| | | import model.Order; |
| | | 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 = "RemoteOrderClient", value = ServiceNameConstants.ORDER_SERVICE, fallbackFactory = RemoteOrderFallbackFactory.class) |
| | | public interface RemoteOrderClient { |
| | | |
| | | /** |
| | | * 查询指定商品订单 |
| | | */ |
| | | @PostMapping("/order/getOrderListByIds") |
| | | public R<List<Order>> goodsOrder(@RequestBody List<Long> orderIds); |
| | | } |