@PutMapping(value = "/lookup")
    @Secured(action = ActionTypes.WRITE, resource = "nacos/admin", signType = SignType.CONSOLE)
    public Result<Boolean> updateLookup(LookupUpdateRequest request) throws NacosException {
        if (request == null || request.getType() == null) {
            throw new NacosApiException(HttpStatus.BAD_REQUEST.value(), ErrorCode.PARAMETER_MISSING,
                    "required parameter 'type' is missing");
        }
        return Result.success(nacosClusterOperationService.updateLookup(request));
    }
@Test
    void testSwitchLookup() throws NacosException {
        LookupUpdateRequest request = new LookupUpdateRequest();
        request.setType("test");
        
        when(nacosClusterOperationService.updateLookup(any())).thenReturn(true);
        Result<Boolean> result = nacosClusterControllerV2.updateLookup(request);
        verify(nacosClusterOperationService).updateLookup(any());
        assertEquals(ErrorCode.SUCCESS.getCode(), result.getCode());
        assertTrue(result.getData());
    }