heheng
2024-11-26 c9d2e60f7d1a5cfe9e5b2da93af4d9edeecf5577
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package com.gkhy.web.controller.bussiness;
 
 
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.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
 
@Api(tags = "专家库-专家分类前端控制器")
@RestController
@RequestMapping("/system/expert_classify")
public class ExpertClassifyController {
    @Autowired
    private SysExpertClassifyService expertClassifyService;
 
    @ApiOperation(value = "专家分类列表(树形)")
    @GetMapping("/tree")
    @Anonymous
   // @RepeatSubmit
    public AjaxResult classifyTree(SysExpertClassify expertClassify){
        return AjaxResult.success(expertClassifyService.classifyTree(expertClassify));
    }
 
   // @PreAuthorize("@ss.hasPermi('system:assess:monitor')")
    @RepeatSubmit
    @ApiOperation(value = "修改专家分类")
    @PutMapping("/mod")
    public AjaxResult modClassify(@RequestBody SysExpertClassify expertClassify){
        return AjaxResult.success(expertClassifyService.modClassify(expertClassify));
    }
 
    // @PreAuthorize("@ss.hasPermi('system:assess:monitor')")
    @RepeatSubmit
    @ApiOperation(value = "删除专家分类")
    @DeleteMapping("/del/{classifyId}")
    public AjaxResult delClassify(@PathVariable(value = "classifyId") Long classifyId){
        return AjaxResult.success(expertClassifyService.delClassify(classifyId));
    }
 
 
    // @PreAuthorize("@ss.hasPermi('system:assess:monitor')")
    @RepeatSubmit
    @ApiOperation(value = "新增专家分类")
    @PostMapping("/add")
    public AjaxResult addClassify(@RequestBody SysExpertClassify expertClassify){
        return AjaxResult.success(expertClassifyService.addClassify(expertClassify));
    }
 
}