Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: 支持基于文档复习闪卡 https://github.com/siyuan-note/siyuan/issues/7057

Liang Ding58a7f35228be
diff --git a/kernel/api/riff.go b/kernel/api/riff.go
index 575e348605..7a3cb31a27 100644
--- a/kernel/api/riff.go
+++ b/kernel/api/riff.go
@@ -36,7 +36,7 @@ func getTreeRiffCards(c *gin.Context) {
return
}
- rootID := arg["rootID"].(string)
+ rootID := arg["id"].(string)
page := int(arg["page"].(float64))
blockIDs, total, pageCount := model.GetTreeFlashcards(rootID, page)
ret.Data = map[string]interface{}{
@@ -55,7 +55,7 @@ func getRiffCards(c *gin.Context) {
return
}
- deckID := arg["deckID"].(string)
+ deckID := arg["id"].(string)
page := int(arg["page"].(float64))
blockIDs, total, pageCount := model.GetFlashcards(deckID, page)
ret.Data = map[string]interface{}{