@PostMapping(value = "/switch/lookup")
    @Secured(resource = Commons.NACOS_CORE_CONTEXT + "/cluster", action = ActionTypes.WRITE, signType = SignType.CONSOLE)
    public RestResult<String> switchLookup(@RequestParam(name = "type") String type) {
        try {
            memberManager.switchLookup(type);
            return RestResultUtils.success();
        } catch (Throwable ex) {
            return RestResultUtils.failed(ex.getMessage());
        }
    }
@Test
    void testSwitchLookup() {
        RestResult<String> result = nacosClusterController.switchLookup("test");
        assertTrue(result.ok());
    }