dao.go 349 B

123456789101112131415161718192021
  1. package lic
  2. import (
  3. "go-common/app/job/main/tv/conf"
  4. httpx "go-common/library/net/http/blademaster"
  5. )
  6. // Dao dao.
  7. type Dao struct {
  8. conf *conf.Config
  9. client *httpx.Client
  10. }
  11. // New create a instance of Dao and return.
  12. func New(c *conf.Config) (d *Dao) {
  13. d = &Dao{
  14. conf: c,
  15. client: httpx.NewClient(conf.Conf.HTTPClient),
  16. }
  17. return
  18. }