| | |
| | | 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; |
| | |
| | | |
| | | @ApiOperation("导出用户数据") |
| | | @GetMapping(value = "/download") |
| | | @PreAuthorize("@el.check('user:list')") |
| | | @PreAuthorize("@el.check('user:download')") |
| | | public void exportUser(HttpServletResponse response, UserQueryCriteria criteria) throws IOException { |
| | | 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("查询用户") |
| | |
| | | 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("新增用户") |
| | | @ApiOperation("新增用户") |
| | | @PostMapping |