go-common/app/interface/main/videoup/dao/creative/dao.go

33 lines
640 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package creative
import (
"context"
"go-common/app/interface/main/videoup/conf"
bm "go-common/library/net/http/blademaster"
)
// Dao is elec dao.
type Dao struct {
c *conf.Config
httpW *bm.Client
setWatermarkURL string
uploadMaterialURL string
}
// New new a elec dao.
func New(c *conf.Config) (d *Dao) {
d = &Dao{
c: c,
httpW: bm.NewClient(c.HTTPClient.Write),
setWatermarkURL: c.Host.APICo + _setWatermark,
uploadMaterialURL: c.Host.APICo + _uploadMaterial,
}
return d
}
// Ping ping success.
func (d *Dao) Ping(c context.Context) (err error) {
return
}