xiejun
2023-09-21 52ffefd06e59cbd56c1a919972866592379cfed2
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
56
57
58
59
60
61
62
63
64
65
package com.vci.ubcs.code.controller;
 
 
import com.vci.ubcs.code.dto.CodeClassifyTemplateAttrDTO;
import com.vci.ubcs.code.entity.SystemClassifyRole;
import com.vci.ubcs.code.service.ICodeApplyWebManagementService;
import com.vci.ubcs.code.service.ICodeClassifyService;
import com.vci.ubcs.starter.web.pagemodel.Tree;
import lombok.AllArgsConstructor;
import org.springblade.core.tool.api.R;
import org.springframework.web.bind.annotation.*;
 
import java.util.List;
 
/**
 * 主题库定义表 控制器
 *
 * @author xiejun
 * @since 2023-07-24
 */
@RestController
@AllArgsConstructor
@RequestMapping("/codeApplyWebManagementController")
public class CodeApplyWebManagementController {
    /***
     * 分类服务对象
     */
    private final ICodeClassifyService codeClassifyService;
 
    private final ICodeApplyWebManagementService codeApplyWebManagementService;
 
    /***
     * 根据前端选择的分类权限授权授权
     * @return
     */
    private R saveClassifyRoleBySystemId(){
 
 
 
        return R.success("成功");
    }
 
 
 
 
    /***
     * 根据系统集成标识查询具备权限的分类数据
     * @return
     */
    public R selectCodeClassifyVOByParentId(String systemId){
 
        return R.success("查询成功");
    }
 
    @PostMapping( "/batchAddSave")
    public R batchAddSave(@RequestBody List<SystemClassifyRole> list,String systemOid,String systemId){
        return codeApplyWebManagementService.batchAddSave(list,systemOid,systemId);
    }
 
    @GetMapping("/getSystemClassifyRoleTree")
    public List<Tree> getSystemClassifyRoleTree(String systemOid,String systemId){
        return codeApplyWebManagementService.getSystemClassifyRoleTree(systemOid,systemId);
    }
 
}