123456789101112131415161718192021222324252627282930 |
- package com.pavis.ai.app.crocr.service;
- import com.alibaba.fastjson.JSONObject;
- import org.springframework.cloud.openfeign.FeignClient;
- import org.springframework.http.MediaType;
- import org.springframework.web.bind.annotation.PostMapping;
- import java.util.Map;
- /**
- * @author guanhuijuan
- * @create 2020-04-17 12:30
- * @desc 内部算法调用。
- **/
- // 测试
- @FeignClient(value = "internalSendService",url = "http://192.168.1.60:9955")
- // 线上
- // @FeignClient(value = "internalSendService",url = "http://alg:9955")
- public interface InternalSendService {
- @PostMapping(value = "/handel",
- consumes = MediaType.MULTIPART_FORM_DATA_VALUE,
- produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
- String cr(Map<String, ?> params);
- // @PostMapping(value = "/handel_v",
- // consumes = MediaType.MULTIPART_FORM_DATA_VALUE,
- // produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
- // String cr(Map<String, ?> params);
- }
|