|
|
|
|
@ -24,7 +24,7 @@ import javax.validation.Valid; |
|
|
|
|
public class OcrProcessController { |
|
|
|
|
@Autowired |
|
|
|
|
private OcrProcessingService ocrProcessingService; |
|
|
|
|
@PostMapping("/analyze") |
|
|
|
|
@PostMapping("/admin-api/analyze") |
|
|
|
|
@PermitAll |
|
|
|
|
public CommonResult<OcrResVO> processOcrResult(@Valid @RequestBody OcrReqVO request) { |
|
|
|
|
return CommonResult.success(ocrProcessingService.process(request.getFilePath())); |
|
|
|
|
|