feat: 细化配置文件,不兼容性更新
This commit is contained in:
@@ -1,10 +1,20 @@
|
||||
package models
|
||||
|
||||
type Daemon struct {
|
||||
Enable bool `json:"enable"`
|
||||
Path string `json:"path"`
|
||||
}
|
||||
|
||||
type Guardian struct {
|
||||
Enable bool `json:"enable"`
|
||||
Duration uint `json:"duration"`
|
||||
}
|
||||
|
||||
type Settings struct {
|
||||
Timeout uint `json:"timeout"`
|
||||
DemoMode bool `json:"demo_mode"`
|
||||
Guardian uint `json:"guardian"`
|
||||
Daemon bool `json:"daemon"`
|
||||
Guardian Guardian
|
||||
Daemon Daemon
|
||||
}
|
||||
|
||||
type Config struct {
|
||||
|
||||
Reference in New Issue
Block a user