Files
nixcn-cms/config/types.go
2025-12-23 23:46:00 +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 string `yaml:"debug_mode"`
FileLogger string `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"`
}