🎨 为桌面端添加 同步模式 选择 https://github.com/siyuan-note/siyuan/issues/5089

This commit is contained in:
Liang Ding 2022-06-03 17:02:18 +08:00
parent 9635154e45
commit b108480450
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
8 changed files with 61 additions and 0 deletions

View file

@ -25,6 +25,7 @@ import (
type Sync struct {
CloudName string `json:"cloudName"` // 云端同步目录名称
Enabled bool `json:"enabled"` // 是否开启同步
Mode int `json:"mode"` // 同步模式0未设置为兼容已有配置initConf 函数中会转换为 11自动2手动 https://github.com/siyuan-note/siyuan/issues/5089
Uploaded int64 `json:"uploaded"` // 最近上传时间
Downloaded int64 `json:"downloaded"` // 最近下载时间
Synced int64 `json:"synced"` // 最近同步时间
@ -35,6 +36,7 @@ func NewSync() *Sync {
return &Sync{
CloudName: "main",
Enabled: true,
Mode: 1,
}
}