package com.chinaztt.mes.docx.controller; import com.chinaztt.mes.docx.dto.GetFileDto; import com.chinaztt.mes.docx.service.DocxService; import com.chinaztt.mes.docx.util.R; import net.sourceforge.tess4j.TesseractException; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import java.io.IOException; import java.sql.SQLException; @RestController @RequestMapping("/lims") public class DocxController { @Autowired private DocxService docxService; @GetMapping("/getFile") public R 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) { return docxService.moveFile(startFilePath, endFilePath, fileType); } }