From 907641e56c2085aaa81f267946dc3e3e9fca73e7 Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期三, 18 九月 2024 09:39:02 +0800 Subject: [PATCH] 代码提交 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysDictTypeController.java | 24 ++++++++++++------------ 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysDictTypeController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysDictTypeController.java index d5ead57..67c2ba9 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysDictTypeController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysDictTypeController.java @@ -25,7 +25,7 @@ /** * 鏁版嵁瀛楀吀淇℃伅 - * + * * @author ruoyi */ @RestController @@ -35,7 +35,7 @@ @Autowired private ISysDictTypeService dictTypeService; - @PreAuthorize("@ss.hasPermi('system:dict:list')") + //@PreAuthorize("@ss.hasPermi('system:dict:list')") @GetMapping("/list") public TableDataInfo list(SysDictType dictType) { @@ -45,7 +45,7 @@ } @Log(title = "瀛楀吀绫诲瀷", businessType = BusinessType.EXPORT) - @PreAuthorize("@ss.hasPermi('system:dict:export')") + //@PreAuthorize("@ss.hasPermi('system:dict:export')") @PostMapping("/export") public void export(HttpServletResponse response, SysDictType dictType) { @@ -57,7 +57,7 @@ /** * 鏌ヨ瀛楀吀绫诲瀷璇︾粏 */ - @PreAuthorize("@ss.hasPermi('system:dict:query')") + //@PreAuthorize("@ss.hasPermi('system:dict:query')") @GetMapping(value = "/{dictId}") public AjaxResult getInfo(@PathVariable Long dictId) { @@ -67,9 +67,9 @@ /** * 鏂板瀛楀吀绫诲瀷 */ - @PreAuthorize("@ss.hasPermi('system:dict:add')") + //@PreAuthorize("@ss.hasPermi('system:dict:add')") @Log(title = "瀛楀吀绫诲瀷", businessType = BusinessType.INSERT) - @PostMapping + @PostMapping("/add") public AjaxResult add(@Validated @RequestBody SysDictType dict) { if (UserConstants.NOT_UNIQUE.equals(dictTypeService.checkDictTypeUnique(dict))) @@ -83,9 +83,9 @@ /** * 淇敼瀛楀吀绫诲瀷 */ - @PreAuthorize("@ss.hasPermi('system:dict:edit')") + //@PreAuthorize("@ss.hasPermi('system:dict:edit')") @Log(title = "瀛楀吀绫诲瀷", businessType = BusinessType.UPDATE) - @PutMapping + @PostMapping("/edit") public AjaxResult edit(@Validated @RequestBody SysDictType dict) { if (UserConstants.NOT_UNIQUE.equals(dictTypeService.checkDictTypeUnique(dict))) @@ -99,9 +99,9 @@ /** * 鍒犻櫎瀛楀吀绫诲瀷 */ - @PreAuthorize("@ss.hasPermi('system:dict:remove')") + //@PreAuthorize("@ss.hasPermi('system:dict:remove')") @Log(title = "瀛楀吀绫诲瀷", businessType = BusinessType.DELETE) - @DeleteMapping("/{dictIds}") + @GetMapping("/remove/{dictIds}") public AjaxResult remove(@PathVariable Long[] dictIds) { dictTypeService.deleteDictTypeByIds(dictIds); @@ -111,9 +111,9 @@ /** * 鍒锋柊瀛楀吀缂撳瓨 */ - @PreAuthorize("@ss.hasPermi('system:dict:remove')") + //@PreAuthorize("@ss.hasPermi('system:dict:remove')") @Log(title = "瀛楀吀绫诲瀷", businessType = BusinessType.CLEAN) - @DeleteMapping("/refreshCache") + @GetMapping("/refreshCache") public AjaxResult refreshCache() { dictTypeService.resetDictCache(); -- Gitblit v1.9.3