bilibili-backup/app/admin/main/growup/dao/message/dao.go

25 lines
537 B
Go
Raw Normal View History

2019-04-22 10:59:20 +08:00
package message
import (
"go-common/app/admin/main/growup/conf"
xhttp "go-common/library/net/http/blademaster"
)
// Dao is message dao
type Dao struct {
c *conf.Config
uri, creativeURL string
client *xhttp.Client
}
// New a message dao
func New(c *conf.Config) (d *Dao) {
d = &Dao{
c: c,
client: xhttp.NewClient(c.HTTPClient),
uri: c.Host.Message + "/api/notify/send.user.notify.do",
creativeURL: c.Host.Creative + "/x/internal/creative/join/growup/account",
}
return
}