From af7122a81386da90cb04207e6ea83aa550088861 Mon Sep 17 00:00:00 2001 From: ludc Date: 星期五, 18 十月 2024 10:05:52 +0800 Subject: [PATCH] 代码提交 --- Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/UIManagerController.java | 82 +++++++++++++++++++++++++++++++++++++++-- 1 files changed, 78 insertions(+), 4 deletions(-) diff --git a/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/UIManagerController.java b/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/UIManagerController.java index f3707d7..d06887c 100644 --- a/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/UIManagerController.java +++ b/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/UIManagerController.java @@ -9,6 +9,7 @@ import com.vci.pagemodel.PLDefinationVO; import com.vci.pagemodel.PLTabButtonVO; import com.vci.pagemodel.PLUILayoutCloneVO; +import com.vci.pagemodel.UICloneVO; import com.vci.starter.web.annotation.log.VciBusinessLog; import com.vci.starter.web.exception.VciBaseException; import com.vci.starter.web.pagemodel.BaseQueryObject; @@ -517,7 +518,7 @@ * @param tabButtonVO * @return 淇濆瓨缁撴灉 */ - @PostMapping("/addTapButton") + @PostMapping("/addTabButton") public BaseResult addTabButton(@RequestBody PLTabButtonVO tabButtonVO){ try { return uiManagerService.addTabButton(tabButtonVO); @@ -534,7 +535,7 @@ * @param tabButtonVO * @return 淇敼缁撴灉 */ - @PutMapping("/updateTapbutton") + @PutMapping("/updateTabbutton") public BaseResult updateTabButton(@RequestBody PLTabButtonVO tabButtonVO){ try { return uiManagerService.updateTabButton(tabButtonVO); @@ -551,7 +552,7 @@ * @param tabButtonVO * @return */ - @DeleteMapping("/deleteTapButton") + @DeleteMapping("/deleteTabButton") public BaseResult deleteTabButton(@RequestBody PLTabButtonVO tabButtonVO){ try { return uiManagerService.deleteTabButton(tabButtonVO) ? BaseResult.success("鍒犻櫎鍗曚釜鎸夐挳閰嶇疆鎴愬姛锛�"):BaseResult.fail("鍒犻櫎鍗曚釜鎸夐挳閰嶇疆澶辫触锛�"); @@ -606,7 +607,7 @@ @VciBusinessLog(operateName = "UI鎺堟潈锛堟爲褰㈢粨鏋勶級") public BaseResult getUIAuthor(BaseQueryObject baseQueryObject){ try { - return BaseResult.dataList( uiManagerService.getUIAuthor(baseQueryObject)); + return BaseResult.dataList(uiManagerService.getUIAuthor(baseQueryObject)); }catch (Throwable e) { e.printStackTrace(); String exceptionMessage = "UI鎺堟潈鍔犺浇鍑虹幇閿欒锛屽師鍥狅細" + VciBaseUtil.getExceptionMessage(e); @@ -614,6 +615,25 @@ return BaseResult.fail(exceptionMessage); } } + + /** + * 鏍规嵁瑙掕壊涓婚敭鑾峰彇宸叉巿鏉冪殑淇℃伅 + * @param roleId + * @return + * @throws PLException + */ +/* @GetMapping( "/getRightListByRoleId") + @VciBusinessLog(operateName = "鏍规嵁瑙掕壊涓婚敭鑾峰彇宸叉巿鏉冪殑UI涓婚敭闆嗗悎") + public BaseResult getRightListByRoleId(String roleId){ + try { + return BaseResult.success(uiManagerService.getRightListByRoleId(roleId)); + }catch (Throwable e) { + e.printStackTrace(); + String exceptionMessage = "鑾峰彇宸叉巿鏉冧俊鎭椂閿欒锛屽師鍥狅細" + VciBaseUtil.getExceptionMessage(e); + logger.error(exceptionMessage); + return BaseResult.fail(exceptionMessage); + } + }*/ /*** * @param uiAuthorDTO 鍕鹃�夌殑闇�瑕佷繚瀛樼殑鏁版嵁瀵硅薄 @@ -650,4 +670,58 @@ } } + /** + * 鍏嬮殕椤电 + * @param uiCloneVO + * @return + * @throws Throwable + */ + @PostMapping("/clonetabPage") + public BaseResult clonetabPage(@RequestBody UICloneVO uiCloneVO){ + try { + return uiManagerService.clonetabPage(uiCloneVO); + } catch (Throwable e) { + e.printStackTrace(); + String exceptionMessage = "鍏嬮殕椤电鏃跺嚭鐜伴敊璇紝鍘熷洜锛�" + VciBaseUtil.getExceptionMessage(e); + logger.error(exceptionMessage); + return BaseResult.fail(exceptionMessage); + } + } + + /** + * 鍏嬮殕椤甸潰瀹氫箟 + * @param uiCloneVO + * @return + * @throws Throwable + */ + @PostMapping("/clonePageDef") + public BaseResult clonePageDef(@RequestBody UICloneVO uiCloneVO){ + try { + return uiManagerService.clonePageDef(uiCloneVO); + } catch (Throwable e) { + e.printStackTrace(); + String exceptionMessage = "鍏嬮殕椤甸潰瀹氫箟鏃跺嚭鐜伴敊璇紝鍘熷洜锛�" + VciBaseUtil.getExceptionMessage(e); + logger.error(exceptionMessage); + return BaseResult.fail(exceptionMessage); + } + } + + /** + * 鍏嬮殕鎸夐挳 + * @param uiCloneVO + * @return + * @throws Throwable + */ + @PostMapping("/cloneTabButton") + public BaseResult cloneTabButton(@RequestBody UICloneVO uiCloneVO){ + try { + return uiManagerService.cloneTabButton(uiCloneVO); + } catch (Throwable e) { + e.printStackTrace(); + String exceptionMessage = "鍏嬮殕鎸夐挳閰嶇疆鏃跺嚭鐜伴敊璇紝鍘熷洜锛�" + VciBaseUtil.getExceptionMessage(e); + logger.error(exceptionMessage); + return BaseResult.fail(exceptionMessage); + } + } + } -- Gitblit v1.9.3