25 lines
537 B
Go
25 lines
537 B
Go
|
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
|
||
|
}
|