| | |
| | | @PostMapping("/page") |
| | | @RequiresPermissions("system:user:query") |
| | | public ApiResponse<PageData<SystemUserListVO>> findPage (@RequestBody PageWrap<QuerySystemUserDTO> pageWrap) { |
| | | pageWrap.getModel().setCompanyId(this.getLoginUser().getCompanyId()); |
| | | return ApiResponse.success(systemUserService.findPage(pageWrap)); |
| | | } |
| | | |
| | | |
| | | |
| | | @ApiOperation("分页查询系统用户") |
| | | @PostMapping("/findAllList") |
| | |
| | | public ApiResponse findById(@PathVariable Integer id) { |
| | | return ApiResponse.success(systemUserService.findById(id)); |
| | | } |
| | | |
| | | |
| | | @Trace(withRequestParameters = false) |
| | | @PreventRepeat |
| | |
| | | @RequiresPermissions("system:user:create") |
| | | public ApiResponse companyUpdUser(@Validated(OperaType.Create.class) @RequestBody CreateCompanyUserDTO createCompanyUserDTO) { |
| | | createCompanyUserDTO.setType(Constants.UserType.COMPANY.getKey()); |
| | | systemUserBiz.companyCreateUser(createCompanyUserDTO); |
| | | systemUserBiz.companyUpdUser(createCompanyUserDTO); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("修改用户状态") |
| | | @GetMapping("/updUserStatus") |
| | | // @RequiresPermissions("system:user:create") |
| | | public ApiResponse updUserStatus( @RequestParam Integer id,@RequestParam Integer status) { |
| | | systemUserBiz.updUserStatus(id,status); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | |
| | | @Trace(withRequestParameters = false) |
| | | @PreventRepeat |
| | | @ApiOperation("修改密码") |