OCR-上传,校核

This commit is contained in:
liyawei
2022-02-18 14:05:33 +08:00
parent 7e784c280c
commit 86852c92d7
18 changed files with 1241 additions and 1 deletions
@@ -0,0 +1,29 @@
package com.jero.modules.oss.test;
import com.jero.LawNioApplication;
import com.jero.modules.oss.entity.OSSFile;
import com.jero.modules.oss.service.IOSSFileService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
/**
* @Author: liyawei
* @Description:
* @Date: Created in 13:49 2022/2/17
*/
@RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,classes = LawNioApplication.class)
public class OCRTest {
@Autowired
private IOSSFileService ossFileService;
@Test
public void testOssFileDelete() {
OSSFile file = ossFileService.getById("92931b26153e986c3335adfb465dbc5e");
boolean ok = ossFileService.delete(file);
System.out.println(ok);
}
}