|  |  | 
 |  |  |     @ApiOperation("配置用户角色") | 
 |  |  |     @PostMapping("/createUserRole") | 
 |  |  |     @CloudRequiredPermission("system:user:createUserRole") | 
 |  |  |     public ApiResponse createUserRole (@Validated @RequestBody CreateUserRoleDTO dto) { | 
 |  |  |     public ApiResponse createUserRole (@RequestHeader(Constants.HEADER_USER_TOKEN) String token,@Validated @RequestBody CreateUserRoleDTO dto) { | 
 |  |  |         dto.setCreateUser(this.getLoginUser(token).getId()); | 
 |  |  |         systemUserBiz.createUserRole(dto); | 
 |  |  |         return ApiResponse.success(null); | 
 |  |  |     } | 
 |  |  | 
 |  |  |     @ApiOperation("重置用户密码") | 
 |  |  |     @PostMapping("/resetPwd") | 
 |  |  |     @CloudRequiredPermission("system:user:resetPwd") | 
 |  |  |     public ApiResponse resetPwd (@Validated @RequestBody ResetSystemUserPwdDTO dto) { | 
 |  |  |         dto.setOperaUserId(this.getLoginUser().getId()); | 
 |  |  |     public ApiResponse resetPwd (@RequestHeader(Constants.HEADER_USER_TOKEN) String token,@Validated @RequestBody ResetSystemUserPwdDTO dto) { | 
 |  |  |         dto.setOperaUserId(this.getLoginUser(token).getId()); | 
 |  |  |         systemUserBiz.resetPwd(dto); | 
 |  |  |         return ApiResponse.success(null); | 
 |  |  |     } | 
 |  |  | 
 |  |  |     @ApiOperation("新建") | 
 |  |  |     @PostMapping("/create") | 
 |  |  |     @CloudRequiredPermission("system:user:create") | 
 |  |  |     public ApiResponse create(@Validated(OperaType.Create.class) @RequestBody CreateSystemUserDTO systemUser) { | 
 |  |  |         systemUser.setCreateUser(this.getLoginUser().getId()); | 
 |  |  |     public ApiResponse create(@RequestHeader(Constants.HEADER_USER_TOKEN) String token,@Validated(OperaType.Create.class) @RequestBody CreateSystemUserDTO systemUser) { | 
 |  |  |         systemUser.setCreateUser(this.getLoginUser(token).getId()); | 
 |  |  |         systemUserBiz.create(systemUser); | 
 |  |  |         return ApiResponse.success(null); | 
 |  |  |     } | 
 |  |  | 
 |  |  |     @ApiOperation("修改") | 
 |  |  |     @PostMapping("/updateById") | 
 |  |  |     @CloudRequiredPermission("system:user:update") | 
 |  |  |     public ApiResponse updateById( @RequestBody CreateSystemUserDTO systemUser) { | 
 |  |  |         systemUser.setUpdateUser(this.getLoginUser().getId()); | 
 |  |  |     public ApiResponse updateById(@RequestHeader(Constants.HEADER_USER_TOKEN) String token, @RequestBody CreateSystemUserDTO systemUser) { | 
 |  |  |         systemUser.setUpdateUser(this.getLoginUser(token).getId()); | 
 |  |  |         systemUserBiz.updateById(systemUser); | 
 |  |  |         return ApiResponse.success(null); | 
 |  |  |     } | 
 |  |  | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @ApiOperation("查询所有系统用户") | 
 |  |  |     @PostMapping("/findAllList") | 
 |  |  |     @CloudRequiredPermission("system:user:query") | 
 |  |  | 
 |  |  |         return ApiResponse.success(systemUserService.findAllList(pageWrap)); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @ApiOperation("查询所有内部人员用户") | 
 |  |  |     @PostMapping("/findInternalList") | 
 |  |  |     @CloudRequiredPermission("system:user:query") | 
 |  |  |     public ApiResponse<List<SystemUser>> findInternalList () { | 
 |  |  |         return ApiResponse.success(systemUserService.findInternalList()); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @ApiOperation("根据ID查询") | 
 |  |  |     @GetMapping("/{id}") |