dao.go 384 B

12345678910111213141516171819202122
  1. package reply
  2. import (
  3. "go-common/app/job/main/archive/conf"
  4. bm "go-common/library/net/http/blademaster"
  5. )
  6. // Dao is redis dao.
  7. type Dao struct {
  8. client *bm.Client
  9. changeSubMid string
  10. }
  11. // New is new redis dao.
  12. func New(c *conf.Config) (d *Dao) {
  13. d = &Dao{
  14. client: bm.NewClient(c.HTTPClient),
  15. // path
  16. changeSubMid: c.Host.APICo + _changeSubjectMid,
  17. }
  18. return d
  19. }