type AppInfo struct {
Name string `toml:"name"`
Url string `toml:"url"`
Port string `toml:"port"`
Debug bool `toml:"debug"`
Version string `toml:"version"`
}
type MysqlConf struct {
Host string `toml:"db_host"`
Port string `toml:"db_port"`
DB string `toml:"db_database"`
User string `toml:"db_user"`
Password string `toml:"db_password"`
}
type RedisConf struct {
Host string `toml:"cache_host"`
Port string `toml:"cache_port"`
DB int `toml:"cache_database"`
Password string `toml:"cache_password"`
}
type TomlConfig struct {
App AppInfo `toml:"app"`
OA OA `toml:"oa"`
Redis RedisConf `toml:"redis"`
Mysql MysqlConf `toml:"mysql"`
Log LogConf `toml:"log"`
}