go-common/app/job/main/videoup/dao/manager/dao.go

22 lines
313 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
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
}