mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 08:30:42 +02:00
🎨 支持笔记本级闪卡复习 https://github.com/siyuan-note/siyuan/issues/7496
This commit is contained in:
parent
990b31dc00
commit
73ec3714cc
3 changed files with 96 additions and 33 deletions
|
@ -85,6 +85,26 @@ func reviewRiffCard(c *gin.Context) {
|
|||
}
|
||||
}
|
||||
|
||||
func getNotebookRiffDueCards(c *gin.Context) {
|
||||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(http.StatusOK, ret)
|
||||
|
||||
arg, ok := util.JsonArg(c, ret)
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
|
||||
notebookID := arg["notebook"].(string)
|
||||
cards, err := model.GetNotebookDueFlashcards(notebookID)
|
||||
if nil != err {
|
||||
ret.Code = -1
|
||||
ret.Msg = err.Error()
|
||||
return
|
||||
}
|
||||
|
||||
ret.Data = cards
|
||||
}
|
||||
|
||||
func getTreeRiffDueCards(c *gin.Context) {
|
||||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(http.StatusOK, ret)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue