@DeleteMapping("/batch")
    @RequiresPermissions(value = {"system:resource:deleteMenu", "system:resource:deleteButton"}, logical = Logical.OR)
    public ShenyuAdminResult deleteResource(@RequestBody @NotEmpty final List<@NotBlank String> ids) {
        return ShenyuAdminResult.success(ShenyuResultMessage.DELETE_SUCCESS, resourceService.delete(ids));
    }
@Test
    public void testDeleteResource() throws Exception {
        final List<String> mockParameter = newArrayList("mock-id");
        given(resourceService.delete(mockParameter)).willReturn(1);

        this.mockMvc.perform(MockMvcRequestBuilders.delete("/resource/batch")
                .contentType(MediaType.APPLICATION_JSON)
                .content(GsonUtils.getInstance().toJson(mockParameter)))
                .andExpect(content().json(GsonUtils.getInstance().toJson(ShenyuAdminResult.success(ShenyuResultMessage.DELETE_SUCCESS, 1))))
                .andReturn();
    }