mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 支持浏览卡包内的闪卡 https://github.com/siyuan-note/siyuan/issues/6943
This commit is contained in:
parent
c4ba046898
commit
7d450f88eb
3 changed files with 26 additions and 4 deletions
|
|
@ -27,7 +27,7 @@ import (
|
|||
"github.com/siyuan-note/siyuan/kernel/util"
|
||||
)
|
||||
|
||||
func searchRiffCards(c *gin.Context) {
|
||||
func getRiffCards(c *gin.Context) {
|
||||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(http.StatusOK, ret)
|
||||
|
||||
|
|
@ -37,7 +37,8 @@ func searchRiffCards(c *gin.Context) {
|
|||
}
|
||||
|
||||
deckID := arg["deckID"].(string)
|
||||
blockIDs := model.SearchFlashcard(deckID)
|
||||
page := int(arg["page"].(float64))
|
||||
blockIDs := model.GetFlashcards(deckID, page)
|
||||
ret.Data = map[string]interface{}{
|
||||
"blockIDs": blockIDs,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue