| | |
| | | |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.service.CategoryService; |
| | | import com.whyc.service.GroupService; |
| | | import com.whyc.service.PermitGroupService; |
| | | import com.whyc.service.PermitService; |
| | | import io.swagger.annotations.Api; |
| | |
| | | @Autowired |
| | | private CategoryService categoryService; |
| | | |
| | | @ApiOperation(value = "查询所有的分组下的所有权限") |
| | | @Autowired |
| | | private GroupService groupService; |
| | | |
| | | @ApiOperation(value = "查询所有的分组及其下的所有权限") |
| | | @GetMapping("getAllPermit") |
| | | public Response getAllPermit(){ |
| | | return categoryService.getAllPermit(); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询所有的权限组及其下的所有权限和用户信息") |
| | | @GetMapping("getAllGroup") |
| | | public Response getAllGroup(){ |
| | | return groupService.getAllGroup(); |
| | | } |
| | | } |