| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得用户分页列表") |
| | | @PreAuthorize("@ss.hasPermission('system:user:query')") |
| | | public CommonResult<PageResult<UserRespVO>> getUserPage(@Valid UserPageReqVO pageReqVO) { |
| | | // 获得用户分页列表 |
| | | PageResult<AdminUserDO> pageResult = userService.getUserPage(pageReqVO); |
| | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "获得用户详情列表") |
| | | @Parameter(name = "ids", description = "编号列表", required = true, example = "[1024]") |
| | | @PreAuthorize("@ss.hasPermission('system:user:query')") |
| | | public CommonResult<List<UserRespVO>> getUserList(@RequestParam("ids") List<Long> ids) { |
| | | List<AdminUserDO> list = userService.getUserList(ids); |
| | | if (CollUtil.isEmpty(list)) { |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得用户详情") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('system:user:query')") |
| | | public CommonResult<UserRespVO> getUser(@RequestParam("id") Long id) { |
| | | AdminUserDO user = userService.getUser(id); |
| | | if (user == null) { |