This commit is contained in:
oneao committed 2026-04-02 17:24:43 +08:00
1 parent 9e00adf2fe
commit ae0d245605
34 files changed
+1460 -162

No files matched your search

@@ -0,0 +1,21 @@
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"`
}