mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 17:40:13 +01:00
🎨 Support downloading cloud data snapshots to local on demand https://github.com/siyuan-note/siyuan/issues/8057
This commit is contained in:
parent
bec5fbc9cb
commit
f3de2e9292
4 changed files with 11 additions and 8 deletions
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue