@DeleteMapping
    @Secured(resource = AuthConstants.CONSOLE_RESOURCE_NAME_PREFIX + "permissions", action = ActionTypes.WRITE)
    public Object deletePermission(@RequestParam String role, @RequestParam String resource,
            @RequestParam String action) {
        nacosRoleService.deletePermission(role, resource, action);
        return RestResultUtils.success("delete permission ok!");
    }
@Test
    void testDeletePermission() {
        RestResult<String> result = (RestResult<String>) permissionController.deletePermission("admin", "test", "test");
        
        verify(nacosRoleService, times(1)).deletePermission(anyString(), anyString(), anyString());
        assertEquals(200, result.getCode());
    }