|
@@ -6,7 +6,6 @@ import cn.hfln.framework.dto.ApiResult;
|
|
import com.hfln.portal.common.dto.data.menu.MenuListDTO;
|
|
import com.hfln.portal.common.dto.data.menu.MenuListDTO;
|
|
import com.hfln.portal.common.dto.data.menu.MenuTreeDTO;
|
|
import com.hfln.portal.common.dto.data.menu.MenuTreeDTO;
|
|
import com.hfln.portal.common.dto.data.parameter.ParameterDTO;
|
|
import com.hfln.portal.common.dto.data.parameter.ParameterDTO;
|
|
-import com.hfln.portal.common.dto.data.role.RoleListDTO;
|
|
|
|
import com.hfln.portal.common.dto.data.rolemenu.RoleMenuTreeDTO;
|
|
import com.hfln.portal.common.dto.data.rolemenu.RoleMenuTreeDTO;
|
|
import com.hfln.portal.common.request.web.*;
|
|
import com.hfln.portal.common.request.web.*;
|
|
import com.hfln.portal.domain.gateway.WebGateway;
|
|
import com.hfln.portal.domain.gateway.WebGateway;
|
|
@@ -32,28 +31,6 @@ public class WebSystemController {
|
|
@Autowired
|
|
@Autowired
|
|
private WebGateway webGateway;
|
|
private WebGateway webGateway;
|
|
|
|
|
|
- @PostMapping("/addRole")
|
|
|
|
- @Operation(summary = "新增角色")
|
|
|
|
- public ApiResult<Void> addRole(@RequestBody @Valid AddRoleParam params) {
|
|
|
|
-
|
|
|
|
- webGateway.addRole(params);
|
|
|
|
- return ApiResult.success();
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- @PostMapping("/disable")
|
|
|
|
- @Operation(summary = "禁用角色")
|
|
|
|
- public ApiResult<Void> disableRole(@RequestParam @Parameter(description = "角色编码") String roleCode) {
|
|
|
|
-
|
|
|
|
- webGateway.disableRole(roleCode);
|
|
|
|
- return ApiResult.success();
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- @GetMapping("/roleList")
|
|
|
|
- @Operation(summary = "获取角色列表")
|
|
|
|
- public ApiResult<List<RoleListDTO>> roleList() {
|
|
|
|
- List<RoleListDTO> roleList = webGateway.roleList();
|
|
|
|
- return ApiResult.success(roleList);
|
|
|
|
- }
|
|
|
|
|
|
|
|
@PostMapping("/addMenu")
|
|
@PostMapping("/addMenu")
|
|
@Operation(summary = "添加菜单")
|
|
@Operation(summary = "添加菜单")
|