Files
workspace/code/allapp/allapp-go-v3/internal/config/config.go
T
2026-04-02 17:24:43 +08:00

22 lines
552 B
Go

package config
type Config struct {
App AppConfig `mapstructure:"app"`
Postgres PostgresConfig `mapstructure:"postgres"`
}
type AppConfig struct {
Name string `mapstructure:"name"`
Port int `mapstructure:"port"`
}
type PostgresConfig struct {
Host string `mapstructure:"host"`
Port int `mapstructure:"port"`
User string `mapstructure:"user"`
Password string `mapstructure:"password"`
Dbname string `mapstructure:"dbname"`
SslMode bool `mapstructure:"ssl_mode"`
TimeZone string `mapstructure:"timezone"`
}