KnowledgemanServiceHystrix.java 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. package com.diagbot.client.hystrix;
  2. import com.diagbot.client.KnowledgemanServiceClient;
  3. import com.diagbot.dto.ConceptBaseDTO;
  4. import com.diagbot.dto.RespDTO;
  5. import com.diagbot.vo.ConceptExistVO;
  6. import com.diagbot.vo.ConceptSearchVO;
  7. import com.diagbot.vo.ConceptTypeVO;
  8. import com.diagbot.vo.IndexVO;
  9. import lombok.extern.slf4j.Slf4j;
  10. import org.springframework.stereotype.Component;
  11. import org.springframework.web.bind.annotation.RequestBody;
  12. import java.util.List;
  13. import java.util.Map;
  14. /**
  15. * @Description:调用中间层服务
  16. * @Author: Mark Huang
  17. * @time: 2019/03/25 19:15
  18. */
  19. @Component
  20. @Slf4j
  21. public class KnowledgemanServiceHystrix implements KnowledgemanServiceClient {
  22. @Override
  23. public RespDTO<List<ConceptBaseDTO>> index(IndexVO indexVO) {
  24. log.error("【hystrix】调用{}异常", "index");
  25. return null;
  26. }
  27. @Override
  28. public RespDTO<Map<String, List<Integer>>> getConceptMap(ConceptExistVO conceptExistVO) {
  29. log.error("【hystrix】调用{}异常", "getConceptMap");
  30. return null;
  31. }
  32. /**
  33. * 根据概念Id列表获取概念列表Map
  34. *
  35. * @param conceptSearchVO 搜索参数
  36. * @return 术语id和术语 Map
  37. */
  38. @Override
  39. public RespDTO<Map<Long, String>> getConceptMap(@RequestBody ConceptSearchVO conceptSearchVO) {
  40. log.error("【hystrix】调用{}异常", "getConceptMap");
  41. return null;
  42. }
  43. /**
  44. * 根据类型获取术语列表(科室、辅检、慢病)
  45. *
  46. * @param conceptTypeVO 类型
  47. * @return 术语列表
  48. */
  49. public RespDTO<List<ConceptBaseDTO>> getConceptListByType(@RequestBody ConceptTypeVO conceptTypeVO){
  50. log.error("【hystrix】调用{}异常", "getConceptListByType");
  51. return null;
  52. }
  53. }