Documentation ¶
Index ¶
- func DecryptData(encryptedData []byte, sessionKey string, iv string) (*gjson.Json, error)
- func VerifySignature(raw string, key string, signature string) bool
- type AppCode
- type AppCodeError
- type Config
- type Credentials
- type MiniProgram
- func (mp *MiniProgram) AppCode() *AppCode
- func (mp *MiniProgram) CheckImage(path string) *http.ResponseData
- func (mp *MiniProgram) CheckMediaAsync(url string, mediaType int) *http.ResponseData
- func (mp *MiniProgram) CheckText(content string) *http.ResponseData
- func (mp *MiniProgram) GetClient() *base.Client
- func (mp *MiniProgram) GetClientWithToken() *base.Client
- func (mp *MiniProgram) Session(code string) *http.ResponseData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptData ¶
小程序敏感信息解密 @see https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/signature.html
Types ¶
type AppCode ¶
type AppCode struct { Mp *MiniProgram Raw []byte }
小程序码
func (*AppCode) CreateQrCode ¶
获取小程序码
func (*AppCode) Get ¶
获取小程序码 有数量限制,详细查看@see https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/qr-code/wxacode.get.html
func (*AppCode) GetUnlimit ¶
获取小程序码 不限制数量
type Credentials ¶
type Credentials struct {
// contains filtered or unexported fields
}
func (*Credentials) Get ¶
func (c *Credentials) Get() map[string]string
type MiniProgram ¶
type MiniProgram struct { Config Config AccessToken auth.AccessToken Logger *log.Logger Cache *gcache.Cache }
func NewWithOutToken ¶
func NewWithOutToken(config Config) *MiniProgram
func (*MiniProgram) CheckImage ¶
func (mp *MiniProgram) CheckImage(path string) *http.ResponseData
CheckImage @see https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/sec-check/security.imgSecCheck.html
func (*MiniProgram) CheckMediaAsync ¶
func (mp *MiniProgram) CheckMediaAsync(url string, mediaType int) *http.ResponseData
CheckMediaAsync 异步检查图片音频 !!!异步通知 @see https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/sec-check/security.mediaCheckAsync.html
func (*MiniProgram) CheckText ¶
func (mp *MiniProgram) CheckText(content string) *http.ResponseData
CheckText @see https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/sec-check/security.msgSecCheck.html
func (*MiniProgram) GetClient ¶
func (mp *MiniProgram) GetClient() *base.Client
func (*MiniProgram) GetClientWithToken ¶
func (mp *MiniProgram) GetClientWithToken() *base.Client
Click to show internal directories.
Click to hide internal directories.