feat: 读取不同环境配置文件
This commit is contained in:
+3
-2
@@ -1,5 +1,6 @@
|
||||
package config
|
||||
|
||||
type Config struct {
|
||||
DB DB `mapstructure:"db" json:"db" yaml:"db"`
|
||||
type Server struct {
|
||||
Mysql Mysql `mapstructure:"mysql" json:"mysql" yaml:"mysql"`
|
||||
Redis Redis `mapstructure:"redis" json:"redis" yaml:"redis"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user