@Operation(summary = "updateUser", description = "UPDATE_USER_NOTES")
    @Parameters({
            @Parameter(name = "id", description = "USER_ID", required = true, schema = @Schema(implementation = int.class, example = "100")),
            @Parameter(name = "userName", description = "USER_NAME", required = true, schema = @Schema(implementation = String.class)),
            @Parameter(name = "userPassword", description = "USER_PASSWORD", required = true, schema = @Schema(implementation = String.class)),
            @Parameter(name = "tenantId", description = "TENANT_ID", required = true, schema = @Schema(implementation = int.class, example = "100")),
            @Parameter(name = "queue", description = "QUEUE", schema = @Schema(implementation = String.class)),
            @Parameter(name = "email", description = "EMAIL", required = true, schema = @Schema(implementation = String.class)),
            @Parameter(name = "phone", description = "PHONE", schema = @Schema(implementation = String.class)),
            @Parameter(name = "state", description = "STATE", schema = @Schema(implementation = int.class, example = "1"))
    })
    @PostMapping(value = "/update")
    @ResponseStatus(HttpStatus.OK)
    @ApiException(UPDATE_USER_ERROR)
    public Result<User> updateUser(@Parameter(hidden = true) @RequestAttribute(value = Constants.SESSION_USER) User loginUser,
                                   @RequestParam(value = "id") int id,
                                   @RequestParam(value = "userName") String userName,
                                   @RequestParam(value = "userPassword") String userPassword,
                                   @RequestParam(value = "queue", required = false, defaultValue = "") String queue,
                                   @RequestParam(value = "email") String email,
                                   @RequestParam(value = "tenantId") int tenantId,
                                   @RequestParam(value = "phone", required = false) String phone,
                                   @RequestParam(value = "state", required = false) int state,
                                   @RequestParam(value = "timeZone", required = false) String timeZone) throws Exception {
        User user = usersService.updateUser(loginUser,
                id,
                userName,
                userPassword,
                email,
                tenantId,
                phone,
                queue,
                state,
                timeZone);
        return Result.success(user);
    }
@Test
    public void testUpdateUser() throws Exception {
        MultiValueMap<String, String> paramsMap = new LinkedMultiValueMap<>();
        paramsMap.add("id", "32");
        paramsMap.add("userName", "user_test");
        paramsMap.add("userPassword", "123456qwe?");
        paramsMap.add("tenantId", "9");
        paramsMap.add("queue", "1");
        paramsMap.add("email", "12343534@qq.com");
        paramsMap.add("phone", "15800000000");

        MvcResult mvcResult = mockMvc.perform(post("/users/update")
                .header(SESSION_ID, sessionId)
                .params(paramsMap))
                .andExpect(status().isOk())
                .andExpect(content().contentType(MediaType.APPLICATION_JSON))
                .andReturn();

        Result result = JSONUtils.parseObject(mvcResult.getResponse().getContentAsString(), Result.class);
        Assertions.assertEquals(Status.UPDATE_USER_ERROR.getCode(), result.getCode().intValue());
    }