go-common/app/job/main/videoup/dao/manager/dao.go
2019-04-22 18:49:16 +08:00

22 lines
313 B
Go

package manager
import (
"go-common/app/job/main/videoup/conf"
xsql "go-common/library/database/sql"
)
// Dao is manager dao.
type Dao struct {
c *conf.Config
db *xsql.DB
}
// New new a manager dao.
func New(c *conf.Config) (d *Dao) {
d = &Dao{
c: c,
db: xsql.NewMySQL(c.DB.Manager),
}
return d
}