diff --git a/db/db.go b/db/db.go index 00a95ca..7db6abc 100644 --- a/db/db.go +++ b/db/db.go @@ -56,7 +56,7 @@ func (dbc *DbConfig) GetSqlConfig(passwdGet ...PasswordDecode) *mysql.Config { 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} }