You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
640 B
32 lines
640 B
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 |
|
}
|
|
|