This commit is contained in:
Liang Ding 2022-12-29 21:52:36 +08:00
parent 7d450f88eb
commit 38570cb27f
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 7 additions and 3 deletions

View file

@ -38,9 +38,11 @@ func getRiffCards(c *gin.Context) {
deckID := arg["deckID"].(string)
page := int(arg["page"].(float64))
blockIDs := model.GetFlashcards(deckID, page)
blockIDs, total, pageCount := model.GetFlashcards(deckID, page)
ret.Data = map[string]interface{}{
"blockIDs": blockIDs,
"blockIDs": blockIDs,
"total": total,
"pageCount": pageCount,
}
}