22 lines
412 B
Go
22 lines
412 B
Go
package wechatx
|
|
|
|
type wechat struct {
|
|
sourceId string
|
|
appid string
|
|
encodingAesKey string
|
|
token string
|
|
}
|
|
|
|
func NewWeChat() *wechat {
|
|
return &wechat{
|
|
sourceId: "gh_cdfaacccfe8d",
|
|
appid: "wx4e7d601bea5a8093",
|
|
token: "weixin",
|
|
encodingAesKey: "E7MKT2IwQzLCxtzc1sjeqjPrftqGFLxomFSv2py0UNx",
|
|
}
|
|
}
|
|
|
|
const (
|
|
WechatHost string = "https://api.weixin.qq.com"
|
|
)
|