dao.go 525 B

1234567891011121314151617181920212223242526272829303132
  1. package mission
  2. import (
  3. "context"
  4. "go-common/app/job/main/videoup-report/conf"
  5. bm "go-common/library/net/http/blademaster"
  6. )
  7. // Dao is mission dao.
  8. type Dao struct {
  9. c *conf.Config
  10. httpR *bm.Client
  11. missAllURL string
  12. }
  13. // New new a mission dao.
  14. func New(c *conf.Config) (d *Dao) {
  15. d = &Dao{
  16. c: c,
  17. // client
  18. httpR: bm.NewClient(c.HTTPClient.Read),
  19. // uri
  20. missAllURL: c.Host.WWW + _msAllURL,
  21. }
  22. return d
  23. }
  24. // Ping ping success.
  25. func (d *Dao) Ping(c context.Context) (err error) {
  26. return
  27. }