🎨 Support downloading cloud data snapshots to local on demand https://github.com/siyuan-note/siyuan/issues/8057

This commit is contained in:
Liang Ding 2023-04-21 20:50:24 +08:00
parent bec5fbc9cb
commit f3de2e9292
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
4 changed files with 11 additions and 8 deletions

View file

@ -186,9 +186,9 @@ func getCloudRepoSnapshots(c *gin.Context) {
return
}
marker := arg["marker"].(string)
page := int(arg["page"].(float64))
snapshots, nextMarker, err := model.GetCloudRepoSnapshots(marker)
snapshots, pageCount, totalCount, err := model.GetCloudRepoSnapshots(page)
if nil != err {
ret.Code = -1
ret.Msg = err.Error()
@ -197,7 +197,8 @@ func getCloudRepoSnapshots(c *gin.Context) {
ret.Data = map[string]interface{}{
"snapshots": snapshots,
"nextMarker": nextMarker,
"pageCount": pageCount,
"totalCount": totalCount,
}
}