dao.go 640 B

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