ArchivesFeign.java 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package com.yihu.jw.feign.archives;
  2. import com.yihu.jw.feign.fallbackfactory.archives.ArchivesFallbackFactory;
  3. import com.yihu.jw.feign.fallbackfactory.iot.company.IotCompanyFallbackFactory;
  4. import com.yihu.jw.restmodel.CommonContants;
  5. import com.yihu.jw.restmodel.archives.PatientArchivesInfoVO;
  6. import com.yihu.jw.restmodel.archives.PatientArchivesVO;
  7. import com.yihu.jw.restmodel.common.Envelop;
  8. import com.yihu.jw.rm.archives.PatientArchivesMapping;
  9. import io.swagger.annotations.ApiOperation;
  10. import io.swagger.annotations.ApiParam;
  11. import org.springframework.cloud.netflix.feign.FeignClient;
  12. import org.springframework.web.bind.annotation.*;
  13. /**
  14. * Created by Trick on 2018/2/12.
  15. */
  16. @FeignClient(
  17. name = CommonContants.svr_archives // name值是eurika的实例名字
  18. ,fallbackFactory = ArchivesFallbackFactory.class
  19. )
  20. @RequestMapping(PatientArchivesMapping.api_archives_common)
  21. public interface ArchivesFeign {
  22. @GetMapping(value = PatientArchivesMapping.Archives.findPatientArchives)
  23. public Envelop<PatientArchivesVO> findPatientArchives(@RequestParam(value = "name", required = false)String name,
  24. @RequestParam(value = "status", required = false)String status,
  25. @RequestParam(value = "cancelReseanType", required = false)String cancelReseanType,
  26. @RequestParam(value = "page", required = false)Integer page,
  27. @RequestParam(value = "size", required = false )Integer size);
  28. @GetMapping(value = PatientArchivesMapping.Archives.findPatientArchivesInfos)
  29. public Envelop<PatientArchivesInfoVO> queryPatientArchivesInfoPage(@RequestParam(value = "code", required = false)String code);
  30. @PostMapping(value = PatientArchivesMapping.Archives.createPatientArchives)
  31. public Envelop<Boolean> createPatientArchives(@RequestParam(value = "patientArchives", required = true)String patientArchives,
  32. @RequestParam(value = "list", required = true)String list);
  33. @PutMapping(value = PatientArchivesMapping.Archives.updatePatientArchives)
  34. public Envelop<Boolean> updatePatientArchives(@RequestParam(value = "patientArchives", required = true)String patientArchives,
  35. @RequestParam(value = "list", required = true)String list);
  36. }