TranServiceHystrix.java 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package com.diagbot.client.hystrix;
  2. import com.diagbot.client.TranServiceClient;
  3. import com.diagbot.dto.RespDTO;
  4. import com.diagbot.dto.SysSetInfoDTO;
  5. import com.diagbot.vo.HospitalSetVO;
  6. import com.diagbot.vo.MrVO;
  7. import com.diagbot.vo.PushJoinVO;
  8. import lombok.extern.slf4j.Slf4j;
  9. import org.springframework.stereotype.Component;
  10. import org.springframework.web.bind.annotation.RequestBody;
  11. import javax.validation.Valid;
  12. import java.util.List;
  13. /**
  14. * @Description: 调用信息对接层服务
  15. * @author: gaodm
  16. * @time: 2019/2/1 17:00
  17. */
  18. @Component
  19. @Slf4j
  20. public class TranServiceHystrix implements TranServiceClient {
  21. @Override
  22. public RespDTO<List<SysSetInfoDTO>> getSysSetInfoDatas(@Valid HospitalSetVO hospitalSetVO) {
  23. log.error("【hystrix】调用{}异常", "getSysSetInfoDatas");
  24. return null;
  25. }
  26. @Override
  27. public RespDTO<String> createMr(@RequestBody PushJoinVO pushJoinVO){
  28. log.error("【hystrix】调用{}异常", "createMr");
  29. return null;
  30. }
  31. @Override
  32. public RespDTO<PushJoinVO> getMr(@RequestBody @Valid MrVO mrVO){
  33. log.error("【hystrix】调用{}异常", "getMr");
  34. return null;
  35. }
  36. }