Documentation ¶
Index ¶
- func AesDecrypt(crypted, key, iv []byte) ([]byte, error)
- func DecryptWXOpenData(sessionKey, encryptData, iv string) ([]byte, error)
- func GlobalToken(appId, appSecret string) (token string, err error)
- func SendMessage(token string, openId string, templateId, page string, data map[string]string, ...) error
- type ErrorRsp
- type Message
- type MiniUserInfo
- type Token
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesDecrypt ¶
func DecryptWXOpenData ¶
func GlobalToken ¶
GlobalToken https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/access-token/auth.getAccessToken.html
Types ¶
type MiniUserInfo ¶
type MiniUserInfo struct { NickName string `json:"nickName"` OpenId string `json:"openId"` Img string `json:"avatarUrl"` UnionId string `json:"unionId"` Sex int64 `json:"sex"` City string `json:"city"` Province string `json:"province"` Country string `json:"country"` Watermark map[string]interface{} `json:"watermark"` }
func MiniLogin ¶
func MiniLogin(appId, appSecret, code, encryptedData, iv string) (info *MiniUserInfo, err error)
Click to show internal directories.
Click to hide internal directories.