Init SifCap

Signed-off-by: Yuan Si <do4suki@gmail.com>
This commit is contained in:
2023-03-20 23:24:08 +08:00
parent 7f2cd4d7fe
commit b8ef91ecd4
6 changed files with 667 additions and 17 deletions
+8
View File
@@ -18,6 +18,7 @@ type AppConfigs struct {
Server ServerConfigs `yaml:"server"`
Log LogConfigs `yaml:"log"`
Redis RedisConfigs `yaml:"redis"`
SifCap SifCapConfigs `yaml:"sifcap"`
}
type ServerConfigs struct {
@@ -40,6 +41,10 @@ type RedisConfigs struct {
Db int `yaml:"db"`
}
type SifCapConfigs struct {
Enabled bool `yaml:"enabled"`
}
func DefaultConfigs() *AppConfigs {
return &AppConfigs{
AppName: "LL! SIF Private Server",
@@ -60,6 +65,9 @@ func DefaultConfigs() *AppConfigs {
Pass: "",
Db: 0,
},
SifCap: SifCapConfigs{
Enabled: false,
},
}
}