| | |
| | | package feignClient; |
| | | |
| | | import com.ruoyi.common.core.constant.ServiceNameConstants; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import factory.RemoteOrderFallbackFactory; |
| | | import model.Order; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | |
| | | /** |
| | | * 订单远程调用接口 |
| | | * @author luofl |
| | | */ |
| | | @FeignClient(contextId = "RemoteOrderClient", value = ServiceNameConstants.ORDER_SERVICE, fallbackFactory = RemoteOrderFallbackFactory.class) |
| | | public interface RemoteOrderClient { |
| | | |
| | | } |
| | | //package feignClient; |
| | | // |
| | | //import com.ruoyi.common.core.constant.ServiceNameConstants; |
| | | //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; |
| | | // |
| | | ///** |
| | | // * 订单远程调用接口 |
| | | // * @author luofl |
| | | // */ |
| | | //@FeignClient(contextId = "RemoteOrderClient", value = ServiceNameConstants.ORDER_SERVICE, fallbackFactory = RemoteOrderFallbackFactory.class) |
| | | //public interface RemoteOrderClient { |
| | | // |
| | | // |
| | | //} |