封装的方法类
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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"
|
||||
)
|
||||
Reference in New Issue
Block a user