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

24 lines
361 B
Go

package dao
import (
"go-common/app/job/main/account-recovery/conf"
bm "go-common/library/net/http/blademaster"
)
// Dao dao
type Dao struct {
c *conf.Config
// httpClient
httpClient *bm.Client
}
// New init mysql db
func New(c *conf.Config) (dao *Dao) {
dao = &Dao{
c: c,
// httpClient
httpClient: bm.NewClient(c.HTTPClientConfig),
}
return
}