feat: statistics: finish dev
This commit is contained in:
@@ -4,9 +4,11 @@ type ServerConfig struct {
|
||||
Listen string `yaml:"listen"`
|
||||
Port int `yaml:"port"`
|
||||
Name string `yaml:"name"`
|
||||
Env string `yaml:"env"`
|
||||
UrlPrefix string `yaml:"urlPrefix"`
|
||||
LogPath string `yaml:"logPath"`
|
||||
MySQL MySQLConfig `yaml:"mysql"`
|
||||
Redis RedisConfig `yaml:"redis"`
|
||||
}
|
||||
|
||||
type MySQLConfig struct {
|
||||
@@ -16,3 +18,9 @@ type MySQLConfig struct {
|
||||
Password string `yaml:"password"`
|
||||
Database string `yaml:"database"`
|
||||
}
|
||||
|
||||
type RedisConfig struct {
|
||||
Host string `yaml:"host"`
|
||||
Port int `yaml:"port"`
|
||||
Password string `yaml:"password"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user