You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

21 lines
313 B

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
}