AiptServiceHystrix.java 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. package com.diagbot.client.hystrix;
  2. import com.diagbot.client.AiptServiceClient;
  3. import com.diagbot.client.bean.CalculateData;
  4. import com.diagbot.client.bean.GdbResponse;
  5. import com.diagbot.client.bean.ResponseData;
  6. import com.diagbot.client.bean.SearchData;
  7. import com.diagbot.dto.ConceptBaseDTO;
  8. import com.diagbot.dto.ConceptIntroduceDTO;
  9. import com.diagbot.dto.DeptInfoDTO;
  10. import com.diagbot.dto.DisScaleDTO;
  11. import com.diagbot.dto.DisTypeDTO;
  12. import com.diagbot.dto.DiseaseIcdDTO;
  13. import com.diagbot.dto.RespDTO;
  14. import com.diagbot.entity.ScaleContent;
  15. import com.diagbot.vo.ConceptIntroduceVO;
  16. import com.diagbot.vo.ConceptUsualVO;
  17. import com.diagbot.vo.DeptInfoVO;
  18. import com.diagbot.vo.DisScaleVO;
  19. import com.diagbot.vo.GetDiseaseIcdVO;
  20. import lombok.extern.slf4j.Slf4j;
  21. import org.springframework.stereotype.Component;
  22. import org.springframework.web.bind.annotation.PostMapping;
  23. import org.springframework.web.bind.annotation.RequestBody;
  24. import org.springframework.web.bind.annotation.RequestParam;
  25. import javax.validation.Valid;
  26. import java.util.List;
  27. import java.util.Map;
  28. /**
  29. * @Description:调用中间层服务
  30. * @Author: Mark Huang
  31. * @time: 2019/03/25 19:15
  32. */
  33. @Component
  34. @Slf4j
  35. public class AiptServiceHystrix implements AiptServiceClient {
  36. @Override
  37. public RespDTO<ResponseData> aiptData(SearchData searchData) {
  38. log.error("【hystrix】调用{}异常", "aiptData");
  39. return null;
  40. }
  41. @Override
  42. public RespDTO<Map<String, Object>> scale(@RequestBody SearchData searchData) {
  43. log.error("【hystrix】调用{}异常", "scale");
  44. return null;
  45. }
  46. @Override
  47. public RespDTO<List<Map<String, Object>>> symptomFeaturePageData(@RequestParam("text") String text) {
  48. log.error("【hystrix】调用{}异常", "symptomFeaturePageData");
  49. return null;
  50. }
  51. @Override
  52. public RespDTO<GdbResponse> highRisk(@RequestBody SearchData searchData) {
  53. log.error("【hystrix】调用{}异常", "highRisk");
  54. return null;
  55. }
  56. @Override
  57. public RespDTO<Map<String, Object>> scaleCalc(@RequestBody CalculateData calculateData) {
  58. log.error("【hystrix】调用{}异常", "scaleCalc");
  59. return null;
  60. }
  61. @Override
  62. public RespDTO<List<DisScaleDTO>> getList(DisScaleVO scaleVO) {
  63. log.error("【hystrix】调用{}异常", "getList");
  64. return null;
  65. }
  66. @Override
  67. public RespDTO<DisTypeDTO> getDisType() {
  68. log.error("【hystrix】调用{}异常", "getDisType");
  69. return null;
  70. }
  71. @Override
  72. public RespDTO<List<ScaleContent>> getScale(SearchData searchData) {
  73. log.error("【hystrix】调用{}异常", "getScale");
  74. return null;
  75. }
  76. @Override
  77. public RespDTO<ConceptIntroduceDTO> getConceptDetail(@Valid @RequestBody ConceptIntroduceVO conceptIntroduceVO) {
  78. log.error("【hystrix】调用{}异常", "getConceptDetail");
  79. return null;
  80. }
  81. @Override
  82. public RespDTO<List<ConceptBaseDTO>> getConceptUsual(@RequestBody @Valid ConceptUsualVO conceptUsualVO) {
  83. log.error("【hystrix】调用{}异常", "getConceptUsual");
  84. return null;
  85. }
  86. @Override
  87. public RespDTO<DeptInfoDTO> getDeptInfo(@Valid @RequestBody DeptInfoVO deptInfoVO) {
  88. log.error("【hystrix】调用{}异常", "getDeptInfo");
  89. return null;
  90. }
  91. /**
  92. * 根据医院编号疾病概念名称获取各医院对应的诊断icd
  93. *
  94. * @param getDiseaseIcdVO
  95. * @return
  96. */
  97. @Override
  98. public RespDTO<List<DiseaseIcdDTO>> getDiseaseIcds(@RequestBody GetDiseaseIcdVO getDiseaseIcdVO) {
  99. log.error("【hystrix】调用{}异常", "getDiseaseIcds");
  100. return null;
  101. }
  102. }