dao.go 352 B

123456789101112131415161718192021
  1. package kfc
  2. import (
  3. "go-common/app/job/main/activity/conf"
  4. "go-common/library/net/http/blademaster"
  5. )
  6. // Dao .
  7. type Dao struct {
  8. httpClient *blademaster.Client
  9. kfcDelURL string
  10. }
  11. // New init
  12. func New(c *conf.Config) (d *Dao) {
  13. d = &Dao{
  14. httpClient: blademaster.NewClient(c.HTTPClient),
  15. kfcDelURL: c.Host.APICo + _kfcDelURI,
  16. }
  17. return
  18. }