OrgFeignService.java 681 B

1234567891011121314151617181920212223242526
  1. package com.chinaitop.depot.feign;
  2. import org.springframework.cloud.openfeign.FeignClient;
  3. import org.springframework.http.MediaType;
  4. import org.springframework.web.bind.annotation.RequestMapping;
  5. import org.springframework.web.bind.annotation.RequestMethod;
  6. import org.springframework.web.bind.annotation.RequestParam;
  7. import java.util.Map;
  8. @FeignClient(value = "depot-system")
  9. public interface OrgFeignService {
  10. /**
  11. * 获取orgName
  12. * @param username
  13. * @param password
  14. * @return
  15. */
  16. @RequestMapping(value = "/orgInfo/getOrgName", produces = MediaType.APPLICATION_JSON_VALUE, method=RequestMethod.GET)
  17. String getOrgName(@RequestParam("state") Integer state);
  18. }