first
This commit is contained in:
17
db/db_config.go
Normal file
17
db/db_config.go
Normal 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"`
|
||||
}
|
||||
)
|
||||
Reference in New Issue
Block a user