feat: statistics: finish dev

This commit is contained in:
fallen-angle
2022-01-23 18:28:01 +08:00
parent 582807ae10
commit d844711191
29 changed files with 1670 additions and 51 deletions

View File

@@ -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"`
}