🎨 Spaced repetition interface supports review by document selection https://github.com/siyuan-note/siyuan/issues/7954

This commit is contained in:
Liang Ding 2023-04-13 15:47:25 +08:00
parent 6fc15a3b6a
commit 0ebdd49f8a
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 59 additions and 8 deletions

View file

@ -27,6 +27,16 @@ import (
"github.com/siyuan-note/siyuan/kernel/util"
)
func getRiffCardNotebooks(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)
notebooks := model.GetFlashcardNotebooks()
ret.Data = map[string]interface{}{
"notebooks": notebooks,
}
}
func getNotebookRiffCards(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)