Files
nixcn-cms/config/types.go
2025-12-23 18:11:31 +08:00

22 lines
478 B
Go

package config
type config struct {
Server server `yaml:"server"`
Database database `yaml:"database"`
}
type server struct {
Address string `yaml:"address"`
DebugMode bool `yaml:"debug_mode"`
FileLogger bool `yaml:"file_logger"`
JwtSecret string `yaml:"jwt_secret"`
}
type database struct {
Type string `yaml:"type"`
Host string `yaml:"host"`
Name string `yaml:"name"`
Username string `yaml:"username"`
Password string `yaml:"password"`
}