| | |
| | | import com.kidgrow.common.model.ResultBody; |
| | | import com.kidgrow.oprationcenter.feign.DiagnosticService; |
| | | import feign.hystrix.FallbackFactory; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.Map; |
| | | |
| | | @Slf4j |
| | | @Component |
| | | public class DiagnosticServiceFallbackFactory implements FallbackFactory<DiagnosticService> { |
| | | @Override |
| | | public DiagnosticService create(Throwable throwable) { |
| | |
| | | public ResultBody<PageResult> getDiagnosticItemList(Map<String, Object> params) { |
| | | return ResultBody.failed().msg("getDiagnosticItemList的FeignClient调用参数传递测试失败"); |
| | | } |
| | | |
| | | @Override |
| | | public ResultBody getPdfPathForOperation(String diagnosticId, Integer reportType, Long hospitalId, Long departId) { |
| | | return ResultBody.failed().msg("getPdfPathForOperation的FeignClient调用参数传递测试失败"); |
| | | } |
| | | }; |
| | | } |
| | | } |