mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
✨ 数据仓库支持云端备份 https://github.com/siyuan-note/siyuan/issues/5336
This commit is contained in:
parent
84bf22dd15
commit
a3c3ec7b83
2 changed files with 3 additions and 3 deletions
|
|
@ -53,14 +53,14 @@ func getRepoSnapshots(c *gin.Context) {
|
|||
}
|
||||
|
||||
page := arg["page"].(float64)
|
||||
logs, pageCount, totalCount, err := model.GetRepoIndexLogs(int(page))
|
||||
snapshots, pageCount, totalCount, err := model.GetRepoSnapshots(int(page))
|
||||
if nil != err {
|
||||
ret.Code = -1
|
||||
ret.Msg = err.Error()
|
||||
return
|
||||
}
|
||||
ret.Data = map[string]interface{}{
|
||||
"logs": logs,
|
||||
"snapshots": snapshots,
|
||||
"pageCount": pageCount,
|
||||
"totalCount": totalCount,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ func init() {
|
|||
subscribeEvents()
|
||||
}
|
||||
|
||||
func GetRepoIndexLogs(page int) (logs []*dejavu.Log, pageCount, totalCount int, err error) {
|
||||
func GetRepoSnapshots(page int) (logs []*dejavu.Log, pageCount, totalCount int, err error) {
|
||||
if 1 > len(Conf.Repo.Key) {
|
||||
err = errors.New(Conf.Language(26))
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue