From fd9c3d5901354076b9abe59dcccd26bf7a1083bd Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期一, 13 五月 2024 10:39:53 +0800 Subject: [PATCH] 代码提交 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysClassController.java | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysClassController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysClassController.java index c4624de..d235e34 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysClassController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysClassController.java @@ -38,7 +38,7 @@ /** * 鏌ヨ鐝骇淇℃伅鍒楄〃 */ - @PreAuthorize("@ss.hasPermi('system:class:list')") + // @PreAuthorize("@ss.hasPermi('system:class:list')") @GetMapping("/list") public TableDataInfo list(SysClass sysClass) { @@ -50,7 +50,7 @@ /** * 瀵煎嚭鐝骇淇℃伅鍒楄〃 */ - @PreAuthorize("@ss.hasPermi('system:class:export')") + // @PreAuthorize("@ss.hasPermi('system:class:export')") @Log(title = "鐝骇淇℃伅", businessType = BusinessType.EXPORT) @GetMapping("/export") public AjaxResult export(SysClass sysClass) @@ -63,7 +63,7 @@ /** * 鑾峰彇鐝骇淇℃伅璇︾粏淇℃伅 */ - @PreAuthorize("@ss.hasPermi('system:class:query')") + // @PreAuthorize("@ss.hasPermi('system:class:query')") @GetMapping(value = "/{classId}") public AjaxResult getInfo(@PathVariable("classId") Long classId) { @@ -73,7 +73,7 @@ /** * 鏂板鐝骇淇℃伅 */ - @PreAuthorize("@ss.hasPermi('system:class:add')") + // @PreAuthorize("@ss.hasPermi('system:class:add')") @Log(title = "鐝骇淇℃伅", businessType = BusinessType.INSERT) @PostMapping @RepeatSubmit @@ -85,9 +85,9 @@ /** * 淇敼鐝骇淇℃伅 */ - @PreAuthorize("@ss.hasPermi('system:class:edit')") + // @PreAuthorize("@ss.hasPermi('system:class:edit')") @Log(title = "鐝骇淇℃伅", businessType = BusinessType.UPDATE) - @PutMapping + @PostMapping("/edit") @RepeatSubmit public AjaxResult edit(@RequestBody SysClass sysClass) { @@ -97,9 +97,9 @@ /** * 鍒犻櫎鐝骇淇℃伅 */ - @PreAuthorize("@ss.hasPermi('system:class:remove')") + // @PreAuthorize("@ss.hasPermi('system:class:remove')") @Log(title = "鐝骇淇℃伅", businessType = BusinessType.DELETE) - @DeleteMapping("/{classIds}") + @GetMapping("/remove/{classIds}") public AjaxResult remove(@PathVariable Long[] classIds) { return toAjax(sysClassService.removeByIds(Arrays.asList(classIds))); -- Gitblit v1.9.3