Documentation ¶
Index ¶
- type MiniTool
- func (m *MiniTool) Code2Session(code string) (auth.ResCode2Session, error)
- func (m *MiniTool) Decrypt(sessionKey string, encryptedData string, iv string) (plainData *encryptor.PlainData, err error)
- func (m *MiniTool) GetPhoneNumber(code string) (plainData business.PhoneInfo, err error)
- func (m *MiniTool) Send(msg *subscribe.Message) error
- type WxMiniConf
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MiniTool ¶
type MiniTool struct {
Mini *miniprogram.MiniProgram
}
func NewMini ¶
func NewMini(conf WxMiniConf) *MiniTool
func (*MiniTool) Code2Session ¶
func (m *MiniTool) Code2Session(code string) (auth.ResCode2Session, error)
Code2Session code 获取 openid,SessionKey
func (*MiniTool) Decrypt ¶
func (m *MiniTool) Decrypt(sessionKey string, encryptedData string, iv string) (plainData *encryptor.PlainData, err error)
Decrypt 消息解密
func (*MiniTool) GetPhoneNumber ¶ added in v0.3.14
GetPhoneNumber code 换取手机号码
type WxMiniConf ¶
type WxMiniConf struct { AppId string `json:"AppId"` //微信小程序appId(非公众号) Secret string `json:"Secret"` //微信小程序secret(非公众号) }
WxMiniConf 微信小程序配置
Click to show internal directories.
Click to hide internal directories.