fix new dbconf
This commit is contained in:
parent
9ff1844932
commit
1751c83804
2
db/db.go
2
db/db.go
|
@ -56,7 +56,7 @@ func (dbc *DbConfig) GetSqlConfig(passwdGet ...PasswordDecode) *mysql.Config {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (dbc *DbConfig) NewDbConfig(host string, dbname string, user string, passwd string, port int) *DbConfig {
|
func NewDbConfig(host string, dbname string, user string, passwd string, port int) *DbConfig {
|
||||||
return &DbConfig{host, dbname, user, passwd, port}
|
return &DbConfig{host, dbname, user, passwd, port}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user