dao.go 639 B

12345678910111213141516171819202122232425262728293031323334
  1. package mission
  2. import (
  3. "context"
  4. "go-common/app/interface/main/videoup/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. actOnlineByTypeURL string
  13. }
  14. // New new a mission dao.
  15. func New(c *conf.Config) (d *Dao) {
  16. d = &Dao{
  17. c: c,
  18. // client
  19. httpR: bm.NewClient(c.HTTPClient.Read),
  20. // uri
  21. missAllURL: c.Host.WWW + _msAllURL,
  22. actOnlineByTypeURL: c.Host.WWW + _actOnlineByTypeURI,
  23. }
  24. return d
  25. }
  26. // Ping ping success.
  27. func (d *Dao) Ping(c context.Context) (err error) {
  28. return
  29. }