| | |
| | | package com.ycl.controller.user; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ycl.annotation.LogSave; |
| | | import com.ycl.api.CommonPage; |
| | |
| | | return CommonResult.success(roleList); |
| | | } |
| | | |
| | | @ApiOperation("获取未被禁用角色") |
| | | @RequestMapping(value = "/allow_list", method = RequestMethod.GET) |
| | | @ResponseBody |
| | | public CommonResult<List<UmsRole>> allowList() { |
| | | List<UmsRole> roleList = roleService.list(new LambdaQueryWrapper<UmsRole>().eq(UmsRole::getStatus,1)); |
| | | return CommonResult.success(roleList); |
| | | } |
| | | |
| | | @ApiOperation("根据角色名称分页获取角色列表") |
| | | @RequestMapping(value = "/list", method = RequestMethod.GET) |
| | | @ResponseBody |