| | |
| | | |
| | | import com.kidgrow.common.model.ResultBody; |
| | | import com.kidgrow.oprationcenter.feign.ProductOrderService; |
| | | import com.kidgrow.oprationcenter.model.ProductOrder; |
| | | import feign.hystrix.FallbackFactory; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.Map; |
| | | |
| | | @Slf4j |
| | | @Component |
| | | public class ProductOrderFallbackFactory implements FallbackFactory<ProductOrderService> { |
| | | @Override |
| | | public ProductOrderService create(Throwable throwable) { |
| | |
| | | public ResultBody saveProductDetail(Map<String, Object> params) { |
| | | return ResultBody.failed().msg("saveProductDetail的FeignClient调用失败"); |
| | | } |
| | | |
| | | @Override |
| | | public ResultBody getStatus(ProductOrder productOrder) { |
| | | return ResultBody.failed().msg("获取正式和试用的的FeignClient接口失败"); |
| | | } |
| | | }; |
| | | } |
| | | } |