Documentation ¶
Index ¶
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
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.