mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-01 06:18:49 +01:00
🔥 移除冗余代码
This commit is contained in:
parent
8f8f2b6100
commit
5b9f2c3cb1
3 changed files with 2 additions and 61 deletions
|
|
@ -1,34 +0,0 @@
|
|||
// SiYuan - Build Your Eternal Digital Garden
|
||||
// Copyright (c) 2020-present, b3log.org
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Affero General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Affero General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
package conf
|
||||
|
||||
import (
|
||||
"path/filepath"
|
||||
|
||||
"github.com/siyuan-note/siyuan/kernel/util"
|
||||
)
|
||||
|
||||
type Backup struct {
|
||||
}
|
||||
|
||||
func NewBackup() *Backup {
|
||||
return &Backup{}
|
||||
}
|
||||
|
||||
func (b *Backup) GetSaveDir() string {
|
||||
return filepath.Join(util.WorkspaceDir, "backup")
|
||||
}
|
||||
|
|
@ -16,12 +16,6 @@
|
|||
|
||||
package conf
|
||||
|
||||
import (
|
||||
"path/filepath"
|
||||
|
||||
"github.com/siyuan-note/siyuan/kernel/util"
|
||||
)
|
||||
|
||||
type Sync struct {
|
||||
CloudName string `json:"cloudName"` // 云端同步目录名称
|
||||
Enabled bool `json:"enabled"` // 是否开启同步
|
||||
|
|
@ -37,7 +31,3 @@ func NewSync() *Sync {
|
|||
Mode: 1,
|
||||
}
|
||||
}
|
||||
|
||||
func (s *Sync) GetSaveDir() string {
|
||||
return filepath.Join(util.WorkspaceDir, "sync")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue