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.
24 lines
537 B
24 lines
537 B
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 |
|
}
|
|
|