| | |
| | | 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.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 主题库定义表 控制器 |
| | |
| | | * 分类服务对象 |
| | | */ |
| | | private final ICodeClassifyService codeClassifyService; |
| | | |
| | | private final ICodeApplyWebManagementService codeApplyWebManagementService; |
| | | |
| | | /*** |
| | | * 根据前端选择的分类权限授权授权 |
| | |
| | | return R.success("查询成功"); |
| | | } |
| | | |
| | | /** |
| | | * 接口程序授权管理中分类授权功能 |
| | | * @param list 授权选中的数据 |
| | | * @param systemOid 系统的oid |
| | | * @param systemId 系统的id |
| | | * @return |
| | | */ |
| | | @PostMapping( "/batchAddSave") |
| | | public R batchAddSave(@RequestBody List<SystemClassifyRole> list,String systemOid,String systemId){ |
| | | return codeApplyWebManagementService.batchAddSave(list,systemOid,systemId); |
| | | // return R.success("dddd"); |
| | | } |
| | | |
| | | /** |
| | | * 编码分类树查询接口 |
| | | * @param systemOid 系统的oid |
| | | * @param systemId 系统的id |
| | | * @return |
| | | */ |
| | | @GetMapping("/getSystemClassifyRoleTree") |
| | | public List<Tree> getSystemClassifyRoleTree(String systemOid,String systemId){ |
| | | return codeApplyWebManagementService.getSystemClassifyRoleTree(systemOid,systemId); |
| | | } |
| | | |
| | | /** |
| | | * 编码分类树查询接口 |
| | | * @param paramMap systemOid系统的oid,systemId系统的id |
| | | * @return |
| | | */ |
| | | @GetMapping("/getAuthTree") |
| | | public List<Tree> getAuthTree(@RequestParam HashMap<String,String> paramMap){ |
| | | return codeApplyWebManagementService.getAuthTree(paramMap); |
| | | } |
| | | } |