OCR识别-调用外部服务
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
package com.jero.modules.FeignClient;
|
||||
|
||||
import com.jero.modules.system.vo.OcrVO;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
|
||||
/**
|
||||
* @description
|
||||
* @date 2021/12/8 14:53
|
||||
* @auth zhn
|
||||
*/
|
||||
@FeignClient(value = "local-tool")
|
||||
public interface LocalToolFeignClient {
|
||||
|
||||
@RequestMapping(value = "/local-tool/ocr/handleFile",method = RequestMethod.POST,headers = {"content-type=application/json"})
|
||||
ResponseEntity<String> getFile(@RequestBody OcrVO ocrVO);
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
package com.jero.modules.system.vo;
|
||||
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>OCR_RECORD OcrRecordEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2019-03-25 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class OcrVO implements Serializable{
|
||||
private String restHandleFileUrl;
|
||||
private String OcrUserId;
|
||||
private String authCode;
|
||||
private String convertType;
|
||||
private String fileName;
|
||||
private String fileContent;
|
||||
private String taskId;
|
||||
private String RestCallBackUrl;
|
||||
|
||||
public String getRestHandleFileUrl() {
|
||||
return restHandleFileUrl;
|
||||
}
|
||||
|
||||
public void setRestHandleFileUrl(String restHandleFileUrl) {
|
||||
this.restHandleFileUrl = restHandleFileUrl;
|
||||
}
|
||||
|
||||
public String getOcrUserId() {
|
||||
return OcrUserId;
|
||||
}
|
||||
|
||||
public void setOcrUserId(String ocrUserId) {
|
||||
OcrUserId = ocrUserId;
|
||||
}
|
||||
|
||||
public String getAuthCode() {
|
||||
return authCode;
|
||||
}
|
||||
|
||||
public void setAuthCode(String authCode) {
|
||||
this.authCode = authCode;
|
||||
}
|
||||
|
||||
public String getConvertType() {
|
||||
return convertType;
|
||||
}
|
||||
|
||||
public void setConvertType(String convertType) {
|
||||
this.convertType = convertType;
|
||||
}
|
||||
|
||||
public String getFileName() {
|
||||
return fileName;
|
||||
}
|
||||
|
||||
public void setFileName(String fileName) {
|
||||
this.fileName = fileName;
|
||||
}
|
||||
|
||||
public String getFileContent() {
|
||||
return fileContent;
|
||||
}
|
||||
|
||||
public void setFileContent(String fileContent) {
|
||||
this.fileContent = fileContent;
|
||||
}
|
||||
|
||||
public String getTaskId() {
|
||||
return taskId;
|
||||
}
|
||||
|
||||
public void setTaskId(String taskId) {
|
||||
this.taskId = taskId;
|
||||
}
|
||||
|
||||
public String getRestCallBackUrl() {
|
||||
return RestCallBackUrl;
|
||||
}
|
||||
|
||||
public void setRestCallBackUrl(String restCallBackUrl) {
|
||||
RestCallBackUrl = restCallBackUrl;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user