|
@@ -9,7 +9,6 @@ import com.doc.biz.service.IMongoService;
|
|
|
import com.doc.biz.vo.DocumentVO;
|
|
|
import com.doc.common.core.controller.BaseController;
|
|
|
import com.doc.common.core.domain.AjaxResult;
|
|
|
-import com.doc.common.utils.SecurityUtils;
|
|
|
import com.doc.system.service.ISysConfigService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
@@ -49,7 +48,7 @@ public class ApiController extends BaseController {
|
|
|
private IDocInfoService docInfoService;
|
|
|
|
|
|
/**
|
|
|
- * 文件下载
|
|
|
+ * 文件预览
|
|
|
*
|
|
|
* @param docId docId
|
|
|
* @return
|
|
@@ -68,6 +67,18 @@ public class ApiController extends BaseController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * 历史文件预览
|
|
|
+ *
|
|
|
+ * @param fileId fileId
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation("历史文件预览")
|
|
|
+ @GetMapping("/history/{fileId}")
|
|
|
+ public ResponseEntity<Object> access(@PathVariable(name = "fileId") String fileId) {
|
|
|
+ return mongoService.download(fileId, false);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* 文字识别
|
|
|
*
|
|
|
* @param fileId fileId
|