From 10e4a29fad93759f69c03b94eec8603070ff765a Mon Sep 17 00:00:00 2001
From: shicf <shi_chongfu@163.com>
Date: 星期四, 28 十一月 2024 11:20:34 +0800
Subject: [PATCH] 移动端文件预览

---
 src/main/java/com/product/file/controller/DocumentDirectoryController.java |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/product/file/controller/DocumentDirectoryController.java b/src/main/java/com/product/file/controller/DocumentDirectoryController.java
index f6c645a..41573e4 100644
--- a/src/main/java/com/product/file/controller/DocumentDirectoryController.java
+++ b/src/main/java/com/product/file/controller/DocumentDirectoryController.java
@@ -336,4 +336,32 @@
 					DocumentCode.DOCUMENT_CATALOG_GET_FAIL.getText());
 		}
 	}
+
+	/**
+	 * 淇濆瓨鏂囨。褰掓。閰嶇疆
+	 * @param request
+	 * @return
+	 */
+	@RequestMapping(value = "/save-file-config/{version}", method = RequestMethod.POST)
+	@ApiVersion(1)
+	public String saveFileConfig(HttpServletRequest request) {
+		try {
+			FieldSetEntity fse = BaseUtil.getFieldSetEntity(request);
+			IDocumentDirectoryService service = (IDocumentDirectoryService) getProxyInstance(documentDirectoryService);
+			if(service.saveFileConfig(fse)) {
+				return OK();
+			}
+			return error(DocumentCode.DOCUMENT_CATALOG_SAVE_FAIL.getValue(),
+					DocumentCode.DOCUMENT_CATALOG_SAVE_FAIL.getText());
+		} catch (BaseException e) {
+			e.printStackTrace();
+			SpringMVCContextHolder.getSystemLogger().error(e);
+			return this.error(e);
+		} catch (Exception e) {
+			e.printStackTrace();
+			SpringMVCContextHolder.getSystemLogger().error(e);
+			return error(DocumentCode.DOCUMENT_CATALOG_SAVE_FAIL.getValue(),
+					DocumentCode.DOCUMENT_CATALOG_SAVE_FAIL.getText());
+		}
+	}
 }

--
Gitblit v1.9.2