| | |
| | | import lombok.RequiredArgsConstructor; |
| | | import me.zhengjie.annotation.Log; |
| | | import me.zhengjie.config.RsaProperties; |
| | | import me.zhengjie.modules.project.service.dto.ProjectQueryCriteria; |
| | | import me.zhengjie.modules.system.domain.Dept; |
| | | import me.zhengjie.modules.system.service.DataService; |
| | | import me.zhengjie.modules.system.domain.User; |
| | |
| | | userService.download(userService.queryAll(criteria), response); |
| | | } |
| | | |
| | | @GetMapping(value = "/all") |
| | | @Log("查询用户") |
| | | @ApiOperation("查询用户") |
| | | @PreAuthorize("@el.check('user:list')") |
| | | public ResponseEntity<Object> queryUserAll(UserQueryCriteria criteria){ |
| | | return new ResponseEntity<>(userService.queryAll(criteria),HttpStatus.OK); |
| | | } |
| | | |
| | | @ApiOperation("查询用户") |
| | | @GetMapping |
| | | @PreAuthorize("@el.check('user:list')") |
| | |
| | | return new ResponseEntity<>(userService.queryAll(criteria,pageable),HttpStatus.OK); |
| | | } |
| | | return new ResponseEntity<>(PageUtil.toPage(null,0),HttpStatus.OK); |
| | | } |
| | | |
| | | @GetMapping(value = "/getUsers") |
| | | @Log("查询在职的员工") |
| | | @ApiOperation("查询在职的员工") |
| | | public ResponseEntity<Object> getUsers() { |
| | | return new ResponseEntity<>(userService.getUsers(), HttpStatus.OK); |
| | | } |
| | | |
| | | @Log("新增用户") |