def Spit_node_id(node_id): # 分解id id = node_id.split('-') # print(id) novel_title = id[0] npt = preview.NovelPreviewTable() novel_id = npt.novel_title_to_id(novel_title) chapter_id = int(id[1]) branch_id = int(id[2]) return novel_id, chapter_id, branch_id
def create_novel(novel_title, novel_creator_id): t = preview.NovelPreviewTable() t.create_novel(novel_title, novel_creator_id)
def NovelHome_NovelInfo(novel_id): # novel_id = Spit_node_id(node_id)[0] npt = preview.NovelPreviewTable() novel_info = npt.get_novel_info(novel_id) return novel_info