| | |
| | | |
| | | import com.chinaztt.mes.docx.dto.GetFileDto; |
| | | import com.chinaztt.mes.docx.service.DocxService; |
| | | import com.chinaztt.mes.docx.util.R; |
| | | import com.chinaztt.mes.docx.util.Result; |
| | | import net.sourceforge.tess4j.TesseractException; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | private DocxService docxService; |
| | | |
| | | @GetMapping("/getFile") |
| | | public R<?> getFile(GetFileDto getFileDto) throws IOException, SQLException, ClassNotFoundException, InstantiationException, IllegalAccessException, TesseractException { |
| | | public Result<?> getFile(GetFileDto getFileDto) throws IOException, SQLException, ClassNotFoundException, InstantiationException, IllegalAccessException, TesseractException { |
| | | return docxService.getFile(getFileDto); |
| | | } |
| | | |
| | | @GetMapping("/moveFile") |
| | | public R<?> moveFile(String startFilePath, String endFilePath, String fileType) { |
| | | public Result<?> moveFile(String startFilePath, String endFilePath, String fileType) { |
| | | return docxService.moveFile(startFilePath, endFilePath, fileType); |
| | | } |
| | | |
| | | |
| | | @GetMapping("/test") |
| | | public void test() { |
| | | docxService.test(); |
| | | @GetMapping("/readXml") |
| | | public void readXml() { |
| | | docxService.readXml(); |
| | | } |
| | | |
| | | } |