go-common/app/job/main/account-recovery/dao/dao.go

24 lines
361 B
Go
Raw Normal View History

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