go-common/app/job/main/activity/dao/dm/dao.go

23 lines
407 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package dm
import (
"go-common/app/job/main/activity/conf"
bm "go-common/library/net/http/blademaster"
)
// Dao dao struct.
type Dao struct {
// http
broadcastURL string
httpCli *bm.Client
}
// New return dm dao instance.
func New(c *conf.Config) (d *Dao) {
d = &Dao{
broadcastURL: "http://api.bilibili.co/x/internal/chat/push/room",
httpCli: bm.NewClient(c.HTTPClient),
}
return
}