| | |
| | | import io.swagger.annotations.Api; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.util.ObjectUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | /** |
| | |
| | | |
| | | @GetMapping("query") |
| | | public ResultMessage query() { |
| | | |
| | | //查询组织admin角色的所有菜单,非父子结构 |
| | | MenuQueryDTO dto = menuService.queryAllMenus(); |
| | | |
| | | //转换为前端所需参数 |
| | | MenuQueryVO vo = MenuQueryVO.convert(dto); |
| | | |
| | | return new ResultMessage(dto.getCode(), dto.getMsg(), vo); |
| | | } |
| | | |
| | | @GetMapping("queryAdmin") |
| | | public ResultMessage queryAdmin(@RequestParam Integer organizationId) { |
| | | |
| | | //执行查询业务 |
| | | MenuQueryDTO dto = menuService.queryAllMenu(); |
| | | MenuQueryDTO dto = menuService.queryAdminGroupMenusByOrganizationId(organizationId); |
| | | |
| | | //转换为前端所需参数 |
| | | MenuQueryVO vo = MenuQueryVO.convert(dto); |