safesight/control/internal/storage/paths.go
tian 98e375dc36 chore: 合并 safesight-control 仓库为 control/ 子目录
项目合并为单仓库:设备端(根) + 管理端(control/)。
两端 git 历史完整保留(git subtree 合并)。

git-subtree-dir: control
git-subtree-mainline: 923ab10d5c
git-subtree-split: 70738edb31
2026-08-02 11:13:26 +08:00

18 lines
311 B
Go

package storage
import "path/filepath"
type Paths struct {
DataDir string
DBPath string
LogDir string
}
func NewPaths(dataDir string) Paths {
return Paths{
DataDir: dataDir,
DBPath: filepath.Join(dataDir, "app.db"),
LogDir: filepath.Join(dataDir, "logs"),
}
}