This commit is contained in:
GYJ
2025-03-18 14:34:50 +08:00
commit f85fff80be
17 changed files with 544 additions and 0 deletions

17
db/db_config.go Normal file
View File

@@ -0,0 +1,17 @@
package db
type (
ConnectInfo struct {
Host string `yaml:"host" json:"host"`
Name string `yaml:"name" json:"name"`
Password string `yaml:"password" json:"password"`
Port string `yaml:"port" json:"port"`
Dbs []string `yaml:"dbs" json:"dbs"`
}
Config struct {
Env string `yaml:"env" json:"env"`
Dev *ConnectInfo `yaml:"dev" json:"dev"`
Prod *ConnectInfo `yaml:"prod" json:"prod"`
}
)