| | |
| | | @AllArgsConstructor |
| | | @RequestMapping(AppConstant.APPLICATION_SYSTEM_NAME + "/role") |
| | | @Api(value = "角色", tags = "角色") |
| | | @PreAuth(RoleConstant.HAS_ROLE_ADMIN) |
| | | //@PreAuth(RoleConstant.HAS_ROLE_ADMIN) |
| | | public class RoleController extends BladeController { |
| | | |
| | | private final IRoleService roleService; |
| | |
| | | return R.data(list); |
| | | } |
| | | |
| | | /** |
| | | * 获取角色列表 |
| | | */ |
| | | @GetMapping("/getRoleListByIds") |
| | | @ApiOperation(value = "获取角色列表", notes = "传入id集合") |
| | | public R<List<Role>> getRoleListByIds(String roleIds) { |
| | | |
| | | List<Role> list = roleService.getRoleListByIds(roleIds); |
| | | return R.data(list); |
| | | } |
| | | |
| | | |
| | | } |