From 417d6f739ce71df6b6276d48c4addab601789ee6 Mon Sep 17 00:00:00 2001 From: 龚焕茏 <2842157468@qq.com> Date: 星期四, 18 四月 2024 16:25:15 +0800 Subject: [PATCH] 接口权限精确到按钮 --- ycl-server/src/main/java/com/ycl/platform/controller/CheckTemplateController.java | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ycl-server/src/main/java/com/ycl/platform/controller/CheckTemplateController.java b/ycl-server/src/main/java/com/ycl/platform/controller/CheckTemplateController.java index 18f3e66..f386eac 100644 --- a/ycl-server/src/main/java/com/ycl/platform/controller/CheckTemplateController.java +++ b/ycl-server/src/main/java/com/ycl/platform/controller/CheckTemplateController.java @@ -34,7 +34,7 @@ /** * 鏌ヨ鑰冩牳妯℃澘鍒楄〃 */ -// @PreAuthorize("@ss.hasPermi('system:template:list')") + @PreAuthorize("@ss.hasPermi('system:template:list')") @GetMapping("/list") public TableDataInfo list(CheckTemplateQuery checkTemplateDTO) { @@ -46,7 +46,7 @@ /** * 瀵煎嚭鑰冩牳妯℃澘鍒楄〃 */ -// @PreAuthorize("@ss.hasPermi('system:template:export')") + @PreAuthorize("@ss.hasPermi('system:template:export')") @Log(title = "鑰冩牳妯℃澘", businessType = BusinessType.EXPORT) @PostMapping("/export") public void export(HttpServletResponse response, CheckTemplateQuery checkTemplateDTO) @@ -59,7 +59,7 @@ /** * 鑾峰彇鑰冩牳妯℃澘璇︾粏淇℃伅 */ -// @PreAuthorize("@ss.hasPermi('system:template:query')") + @PreAuthorize("@ss.hasPermi('system:template:query')") @GetMapping(value = "/{id}") public AjaxResult getInfo(@PathVariable("id") Long id) { @@ -69,7 +69,7 @@ /** * 鏂板鑰冩牳妯℃澘 */ -// @PreAuthorize("@ss.hasPermi('system:template:add')") + @PreAuthorize("@ss.hasPermi('system:template:add')") @Log(title = "鑰冩牳妯℃澘", businessType = BusinessType.INSERT) @PostMapping public AjaxResult add(@RequestBody CheckTemplateQuery checkTemplateDTO) -- Gitblit v1.8.0