dev change key
Test Workflow / test (push) Successful in 4s

This commit is contained in:
vladp
2026-04-07 14:42:02 +07:00
parent c7c3bbe07a
commit 9e81b45922
@@ -207,6 +207,17 @@ public class ApiController {
private final NoCopyFileService noCopyFileService;
@GetMapping("/check/{fileId}")
public ResponseEntity<BaseResponse> check(@PathVariable String fileId) {
FileEntity fileEntity = fileEntityRepository.findByFileId(fileId);
File file = new File(fileEntity.getFilePath());
NoCopyCheckResult checkResult = noCopyFileService.checkFile(file, FileProtector.Type.IMAGE);
log.info("checkResult: {}", checkResult);
return ResponseEntity.ok(new BaseResponse(1, 1, "1", checkResult));
}
@GetMapping("/v{version}/files/{fileId}/similar")
public ResponseEntity<BaseResponse> findSimilarFiles(
@PathVariable("version") int version,