mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 支持浏览卡包内的闪卡 https://github.com/siyuan-note/siyuan/issues/6943
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user