From 9ea8edde96272e14b0deacb81996a65c4fcb5285 Mon Sep 17 00:00:00 2001 From: lige <bestlige@outlook.com> Date: 星期三, 13 九月 2023 16:49:18 +0800 Subject: [PATCH] 修改接口权限 --- ltkj-admin/src/main/java/com/ltkj/web/controller/system/SysConfigController.java | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ltkj-admin/src/main/java/com/ltkj/web/controller/system/SysConfigController.java b/ltkj-admin/src/main/java/com/ltkj/web/controller/system/SysConfigController.java index df2b55f..b945dfd 100644 --- a/ltkj-admin/src/main/java/com/ltkj/web/controller/system/SysConfigController.java +++ b/ltkj-admin/src/main/java/com/ltkj/web/controller/system/SysConfigController.java @@ -45,7 +45,7 @@ /** * 鑾峰彇鍙傛暟閰嶇疆鍒楄〃 */ - @PreAuthorize("@ss.hasPermi('system:config:list')") +// @PreAuthorize("@ss.hasPermi('system:config:list')") @GetMapping("/list") @ApiOperation(value = "鑾峰彇鍙傛暟閰嶇疆鍒楄〃") public TableDataInfo list(SysConfig config) { @@ -55,7 +55,7 @@ } @Log(title = "鍙傛暟绠$悊", businessType = BusinessType.EXPORT) - @PreAuthorize("@ss.hasPermi('system:config:export')") +// @PreAuthorize("@ss.hasPermi('system:config:export')") @PostMapping("/export") public void export(HttpServletResponse response, SysConfig config) { List<SysConfig> list = configService.selectConfigList(config); @@ -66,7 +66,7 @@ /** * 鏍规嵁鍙傛暟缂栧彿鑾峰彇璇︾粏淇℃伅 */ - @PreAuthorize("@ss.hasPermi('system:config:query')") +// @PreAuthorize("@ss.hasPermi('system:config:query')") @GetMapping(value = "/{configId}") public AjaxResult getInfo(@PathVariable Long configId) { return success(configService.selectConfigById(configId)); @@ -84,7 +84,7 @@ /** * 鏂板鍙傛暟閰嶇疆 */ - @PreAuthorize("@ss.hasPermi('system:config:add')") +// @PreAuthorize("@ss.hasPermi('system:config:add')") @Log(title = "鍙傛暟绠$悊", businessType = BusinessType.INSERT) @PostMapping public AjaxResult add(@Validated @RequestBody SysConfig config) { @@ -102,7 +102,7 @@ /** * 淇敼鍙傛暟閰嶇疆 */ - @PreAuthorize("@ss.hasPermi('system:config:edit')") +// @PreAuthorize("@ss.hasPermi('system:config:edit')") @Log(title = "鍙傛暟绠$悊", businessType = BusinessType.UPDATE) @PutMapping public AjaxResult edit(@Validated @RequestBody SysConfig config) { @@ -133,7 +133,7 @@ /** * 鍒犻櫎鍙傛暟閰嶇疆 */ - @PreAuthorize("@ss.hasPermi('system:config:remove')") +// @PreAuthorize("@ss.hasPermi('system:config:remove')") @Log(title = "鍙傛暟绠$悊", businessType = BusinessType.DELETE) @DeleteMapping("/{configIds}") public AjaxResult remove(@PathVariable Long[] configIds) { @@ -144,7 +144,7 @@ /** * 鍒锋柊鍙傛暟缂撳瓨 */ - @PreAuthorize("@ss.hasPermi('system:config:remove')") +// @PreAuthorize("@ss.hasPermi('system:config:remove')") @Log(title = "鍙傛暟绠$悊", businessType = BusinessType.CLEAN) @DeleteMapping("/refreshCache") public AjaxResult refreshCache() { -- Gitblit v1.8.0