wiki接口

This commit is contained in:
暮光:城中城
2019-02-27 21:38:25 +08:00
parent b930103058
commit b14e2c5989
9 changed files with 225 additions and 31 deletions

View File

@@ -41,6 +41,8 @@ public class WikiPageController {
UpdateWrapper<WikiPage> wrapper = new UpdateWrapper<>();
wrapper.eq("del_flag", 0);
wrapper.eq("space_id", wikiPage.getSpaceId());
wrapper.isNull(wikiPage.getParentId() == null, "parent_id");
wrapper.eq(wikiPage.getParentId() != null, "parent_id", wikiPage.getParentId());
List<WikiPage> authList = wikiPageService.list(wrapper);
return DocResponseJson.ok(authList);
}