go-common/app/job/main/activity/dao/kfc/dao.go

22 lines
352 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package kfc
import (
"go-common/app/job/main/activity/conf"
"go-common/library/net/http/blademaster"
)
// Dao .
type Dao struct {
httpClient *blademaster.Client
kfcDelURL string
}
// New init
func New(c *conf.Config) (d *Dao) {
d = &Dao{
httpClient: blademaster.NewClient(c.HTTPClient),
kfcDelURL: c.Host.APICo + _kfcDelURI,
}
return
}