go-common/app/job/main/videoup-report/dao/mission/dao.go

33 lines
525 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package mission
import (
"context"
"go-common/app/job/main/videoup-report/conf"
bm "go-common/library/net/http/blademaster"
)
// Dao is mission dao.
type Dao struct {
c *conf.Config
httpR *bm.Client
missAllURL string
}
// New new a mission dao.
func New(c *conf.Config) (d *Dao) {
d = &Dao{
c: c,
// client
httpR: bm.NewClient(c.HTTPClient.Read),
// uri
missAllURL: c.Host.WWW + _msAllURL,
}
return d
}
// Ping ping success.
func (d *Dao) Ping(c context.Context) (err error) {
return
}