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.
28 lines
432 B
28 lines
432 B
package msg |
|
|
|
import ( |
|
"go-common/app/admin/main/mcn/conf" |
|
bm "go-common/library/net/http/blademaster" |
|
) |
|
|
|
const ( |
|
_msgURL = "/api/notify/send.user.notify.do" |
|
) |
|
|
|
// Dao . |
|
type Dao struct { |
|
c *conf.Config |
|
client *bm.Client |
|
msgURL string |
|
} |
|
|
|
// New new a Dao and return. |
|
func New(c *conf.Config) (d *Dao) { |
|
d = &Dao{ |
|
c: c, |
|
// http client |
|
client: bm.NewClient(c.HTTPClient), |
|
msgURL: c.Host.Msg + _msgURL, |
|
} |
|
return |
|
}
|
|
|