TestInfoFeignService.java 738 B

1234567891011121314151617181920
  1. package com.zhongshu.secretKey.client.service;
  2. import com.github.microservice.auth.client.content.ResultContent;
  3. import com.zhongshu.opengateway.client.model.param.AddApiParam;
  4. import org.springframework.cloud.openfeign.FeignClient;
  5. import org.springframework.http.MediaType;
  6. import org.springframework.web.bind.annotation.RequestBody;
  7. import org.springframework.web.bind.annotation.RequestMapping;
  8. import org.springframework.web.bind.annotation.RequestMethod;
  9. @FeignClient("secretkeyserver/manager/test")
  10. public interface TestInfoFeignService {
  11. /**
  12. *
  13. */
  14. @RequestMapping(value = "saveInfo", method = RequestMethod.POST, consumes = {MediaType.ALL_VALUE})
  15. ResultContent saveInfo(@RequestBody AddApiParam param);
  16. }