}
@RequiresPermissions("resource:create")
@RequestMapping(value = "/{parentId}/appendChild", method = RequestMethod.GET)
public String showAppendChildForm(@PathVariable("parentId") Long parentId, Model model) {
Resource parent = resourceService.findOne(parentId);
model.addAttribute("parent", parent);
Resource child = new Resource();
child.setParentId(parentId);
child.setParentIds(parent.makeSelfAsParentIds());
model.addAttribute("resource", child);
model.addAttribute("op", "新增子节点");
return "resource/edit";
}