StdTransformClient.java 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. package com.yihu.ehr.resource.client;
  2. import com.yihu.ehr.constants.ApiVersion;
  3. import com.yihu.ehr.constants.MicroServices;
  4. import org.springframework.cloud.netflix.feign.FeignClient;
  5. import org.springframework.web.bind.annotation.RequestMapping;
  6. import org.springframework.web.bind.annotation.RequestMethod;
  7. import org.springframework.web.bind.annotation.RequestParam;
  8. import springfox.documentation.annotations.ApiIgnore;
  9. /**
  10. * Created by progr1mmer on 2018/1/24.
  11. */
  12. @ApiIgnore
  13. @FeignClient(name = MicroServices.StdRedis)
  14. @RequestMapping(value = ApiVersion.Version1_0)
  15. public interface StdTransformClient {
  16. @RequestMapping(value = "/redis/stdMetadataCodes", method = RequestMethod.GET)
  17. String stdMetadataCodes(
  18. @RequestParam(value = "version") String version,
  19. @RequestParam(value = "datasetCode") String datasetCode);
  20. @RequestMapping(value = "/redis/adapterMetadataCode", method = RequestMethod.GET)
  21. String adapterMetadataCode(
  22. @RequestParam(value = "version") String version,
  23. @RequestParam(value = "stdDatasetCode") String datasetCode,
  24. @RequestParam(value = "stdMetadataCode") String stdMetadataCode);
  25. @RequestMapping(value = "/redis/stdMetadataName", method = RequestMethod.GET)
  26. String stdMetadataName(
  27. @RequestParam(value = "version") String version,
  28. @RequestParam(value = "datasetCode") String datasetCode,
  29. @RequestParam(value = "metadataCode") String metadataCode);
  30. }