From 2d27b24029adafdbfc5703b38a519d65beda6a68 Mon Sep 17 00:00:00 2001
From: heheng <heheng@123456>
Date: 星期三, 20 十一月 2024 16:23:23 +0800
Subject: [PATCH] 更改

---
 expert-admin/src/main/java/com/gkhy/web/controller/bussiness/ExpertClassifyController.java |   38 +++++++++++++++++++++-----------------
 1 files changed, 21 insertions(+), 17 deletions(-)

diff --git a/expert-admin/src/main/java/com/gkhy/web/controller/bussiness/ExpertClassifyController.java b/expert-admin/src/main/java/com/gkhy/web/controller/bussiness/ExpertClassifyController.java
index 0291b85..8c669c7 100644
--- a/expert-admin/src/main/java/com/gkhy/web/controller/bussiness/ExpertClassifyController.java
+++ b/expert-admin/src/main/java/com/gkhy/web/controller/bussiness/ExpertClassifyController.java
@@ -1,13 +1,15 @@
-package com.gkhy.assess.admin.controller.web;
+package com.gkhy.web.controller.bussiness;
 
-import com.gkhy.assess.common.annotation.RepeatSubmit;
-import com.gkhy.assess.common.api.CommonResult;
-import com.gkhy.assess.system.domain.SysExpertClassify;
-import com.gkhy.assess.system.service.SysExpertClassifyService;
+
+import com.gkhy.common.annotation.Anonymous;
+import com.gkhy.common.annotation.RepeatSubmit;
+import com.gkhy.common.core.domain.AjaxResult;
+import com.gkhy.system.domain.SysExpertClassify;
+import com.gkhy.system.service.SysExpertClassifyService;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
-import org.apache.shiro.authz.annotation.RequiresPermissions;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.web.bind.annotation.*;
 
 @Api(tags = "专家库-专家分类前端控制器")
@@ -19,33 +21,35 @@
 
     @ApiOperation(value = "专家分类列表(树形)")
     @GetMapping("/tree")
-    public CommonResult classifyTree(SysExpertClassify expertClassify){
-        return CommonResult.success(expertClassifyService.classifyTree(expertClassify));
+    @Anonymous
+    @RepeatSubmit
+    public AjaxResult classifyTree(SysExpertClassify expertClassify){
+        return AjaxResult.success(expertClassifyService.classifyTree(expertClassify));
     }
 
-    @RequiresPermissions("system:assess:monitor")
+    @PreAuthorize("@ss.hasPermi('system:assess:monitor')")
     @RepeatSubmit
     @ApiOperation(value = "修改专家分类")
     @PutMapping("/mod")
-    public CommonResult modClassify(@RequestBody SysExpertClassify expertClassify){
-        return CommonResult.success(expertClassifyService.modClassify(expertClassify));
+    public AjaxResult modClassify(@RequestBody SysExpertClassify expertClassify){
+        return AjaxResult.success(expertClassifyService.modClassify(expertClassify));
     }
 
-    @RequiresPermissions("system:assess:monitor")
+    @PreAuthorize("@ss.hasPermi('system:assess:monitor')")
     @RepeatSubmit
     @ApiOperation(value = "删除专家分类")
     @DeleteMapping("/del/{classifyId}")
-    public CommonResult delClassify(@PathVariable(value = "classifyId") Long classifyId){
-        return CommonResult.success(expertClassifyService.delClassify(classifyId));
+    public AjaxResult delClassify(@PathVariable(value = "classifyId") Long classifyId){
+        return AjaxResult.success(expertClassifyService.delClassify(classifyId));
     }
 
 
-    @RequiresPermissions("system:assess:monitor")
+    @PreAuthorize("@ss.hasPermi('system:assess:monitor')")
     @RepeatSubmit
     @ApiOperation(value = "新增专家分类")
     @PostMapping("/add")
-    public CommonResult addClassify(@RequestBody SysExpertClassify expertClassify){
-        return CommonResult.success(expertClassifyService.addClassify(expertClassify));
+    public AjaxResult addClassify(@RequestBody SysExpertClassify expertClassify){
+        return AjaxResult.success(expertClassifyService.addClassify(expertClassify));
     }
 
 }

--
Gitblit v1.9.2