mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
🎨 支持浏览卡包内的闪卡 https://github.com/siyuan-note/siyuan/issues/6943
This commit is contained in:
parent
7d450f88eb
commit
38570cb27f
2 changed files with 7 additions and 3 deletions
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue