@Operation(summary = "listWorker", description = "WORKER_LIST_NOTES")
    @GetMapping(value = "/workers")
    @ResponseStatus(HttpStatus.OK)
    @ApiException(LIST_WORKERS_ERROR)
    public Result<List<WorkerServerModel>> listWorker(@Parameter(hidden = true) @RequestAttribute(value = Constants.SESSION_USER) User loginUser) {
        List<WorkerServerModel> workerServerModels = monitorService.queryWorker(loginUser);
        return Result.success(workerServerModels);
    }
@Test
    public void testListWorker() throws Exception {

        MvcResult mvcResult = mockMvc.perform(get("/monitor/workers")
                .header(SESSION_ID, sessionId)
        /* .param("type", ResourceType.FILE.name()) */)
                .andExpect(status().isOk())
                .andExpect(content().contentType(MediaType.APPLICATION_JSON))
                .andReturn();

        Result result = JSONUtils.parseObject(mvcResult.getResponse().getContentAsString(), Result.class);
        result.getCode().equals(Status.SUCCESS.getCode());

        Assertions.assertEquals(Status.SUCCESS.getCode(), result.getCode().intValue());
        logger.info(mvcResult.getResponse().getContentAsString());
    }