This commit is contained in:
Liang Ding 2023-03-18 17:10:14 +08:00
parent e984082d42
commit 29577de910
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 69 additions and 7 deletions

View file

@ -104,6 +104,25 @@ func reviewRiffCard(c *gin.Context) {
}
}
func skipReviewRiffCard(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)
arg, ok := util.JsonArg(c, ret)
if !ok {
return
}
deckID := arg["deckID"].(string)
cardID := arg["cardID"].(string)
err := model.SkipReviewFlashcard(deckID, cardID)
if nil != err {
ret.Code = -1
ret.Msg = err.Error()
return
}
}
func getNotebookRiffDueCards(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)