feat: 读取不同环境配置文件

This commit is contained in:
Blizzard
2025-04-24 21:54:49 +08:00
parent 991f37b13a
commit 1de88e2dac
13 changed files with 155 additions and 32 deletions
+3 -2
View File
@@ -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"`
}