InternalSendService.java 1.2 KB

123456789101112131415161718192021222324252627282930313233
  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. // @FeignClient(value = "internalSendService",url = "http://192.168.1.202:9955")
  15. // @FeignClient(value = "cr-ocr-server",url = "http://192.168.1.202:9955")
  16. @FeignClient(value = "cr-ocr-server",url = "http://192.168.1.202:9955")
  17. // 线上
  18. // @FeignClient(value = "internalSendService",url = "http://alg:9955")
  19. public interface InternalSendService {
  20. @PostMapping(value = "/handel",
  21. consumes = MediaType.MULTIPART_FORM_DATA_VALUE,
  22. produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
  23. String cr(Map<String, ?> params);
  24. // @PostMapping(value = "/handel_v",
  25. // consumes = MediaType.MULTIPART_FORM_DATA_VALUE,
  26. // produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
  27. // String cr(Map<String, ?> params);
  28. }