InternalSendService.java 971 B

123456789101112131415161718192021222324252627282930
  1. package com.pavis.ai.app.crocr.service;
  2. import com.alibaba.fastjson.JSONObject;
  3. import org.springframework.cloud.openfeign.FeignClient;
  4. import org.springframework.http.MediaType;
  5. import org.springframework.web.bind.annotation.PostMapping;
  6. import java.util.Map;
  7. /**
  8. * @author guanhuijuan
  9. * @create 2020-04-17 12:30
  10. * @desc 内部算法调用。
  11. **/
  12. // 测试
  13. @FeignClient(value = "internalSendService",url = "http://192.168.1.60:9955")
  14. // 线上
  15. // @FeignClient(value = "internalSendService",url = "http://alg:9955")
  16. public interface InternalSendService {
  17. @PostMapping(value = "/handel",
  18. consumes = MediaType.MULTIPART_FORM_DATA_VALUE,
  19. produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
  20. String cr(Map<String, ?> params);
  21. // @PostMapping(value = "/handel_v",
  22. // consumes = MediaType.MULTIPART_FORM_DATA_VALUE,
  23. // produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
  24. // String cr(Map<String, ?> params);
  25. }