Versions in this module Expand all Collapse all v1 v1.2.3 Jun 23, 2022 Changes in this version + func AICrop(imgPath string, result *ResultAICrop) wx.Action + func AICropByURL(imgURL string, result *ResultAICrop) wx.Action + func AddSubscribeTemplate(params *ParamsSubscribeTemplAdd, result *ResultSubscribeTemplAdd) wx.Action + func ApplyPlugin(pluginAppID, reason string) wx.Action + func CheckEncryptedData(encryptedData string, result *ResultEncryptedDataCheck) wx.Action + func CreateQRCode(pagepath string, width int, qrcode *QRCode) wx.Action + func DeleteSubscribeTemplate(priTmplID string) wx.Action + func GenerateScheme(params *ParamsSchemeGenerate, result *ResultSchemeGenerate) wx.Action + func GenerateShortLink(pageURL, pageTitle string, isPermanent bool, result *ResultShortLink) wx.Action + func GenerateURLLink(params *ParamsURLLinkGenerate, result *ResultURLLinkGenerate) wx.Action + func GetPaidUnionIDByOutTradeNO(openid, mchid, outTradeNO string, result *ResultPaidUnionID) wx.Action + func GetPaidUnionIDByTransactionID(openid, transactionID string, result *ResultPaidUnionID) wx.Action + func GetPhoneNumber(code string, result *ResultPhoneNumber) wx.Action + func GetPubTemplateKeyWords(tid string, result *ResultPubTemplKeywords) wx.Action + func GetPubTemplateTitles(ids string, start, limit int, result *ResultPubTemplTitles) wx.Action + func GetQRCode(params *ParamsQRCodeGet, qrcode *QRCode) wx.Action + func GetSubscribeCategory(result *ResultSubscribeCategory) wx.Action + func GetTempMedia(mediaID string, media *Media) wx.Action + func GetUnlimitQRCode(params *ParamsQRCodeUnlimit, qrcode *QRCode) wx.Action + func GetUserRiskRank(params *ParamsUserRisk, result *ResultUserRisk) wx.Action + func ImageSecCheck(imgPath string) wx.Action + func InvokeService(params *ParamsServiceInvoke, result *ResultServiceInvoke) wx.Action + func ListPlugin(result *ResultPluginList) wx.Action + func ListPluginDevApply(page, num int, result *ResultPluginDevApplyList) wx.Action + func ListSubscribeTemplate(result *ResultSubscribeTemplList) wx.Action + func MediaCheckAsync(mediaType SecMediaType, mediaURL string, result *ResultMediaCheckAsync) wx.Action + func MsgSecCheck(content string) wx.Action + func OCRBankCard(mode OCRMode, imgPath string, result *ResultBankCardOCR) wx.Action + func OCRBankCardByURL(mode OCRMode, imgURL string, result *ResultBankCardOCR) wx.Action + func OCRBusinessLicense(mode OCRMode, imgPath string, result *ResultBusinessLicenseOCR) wx.Action + func OCRBusinessLicenseByURL(mode OCRMode, imgURL string, result *ResultBusinessLicenseOCR) wx.Action + func OCRComm(mode OCRMode, imgPath string, result *ResultCommOCR) wx.Action + func OCRCommByURL(mode OCRMode, imgURL string, result *ResultCommOCR) wx.Action + func OCRDriverLicense(mode OCRMode, imgPath string, result *ResultDriverLicenseOCR) wx.Action + func OCRDriverLicenseByURL(mode OCRMode, imgURL string, result *ResultDriverLicenseOCR) wx.Action + func OCRIDCardBack(mode OCRMode, imgPath string, result *ResultIDCardBackOCR) wx.Action + func OCRIDCardBackByURL(mode OCRMode, imgURL string, result *ResultIDCardBackOCR) wx.Action + func OCRIDCardFront(mode OCRMode, imgPath string, result *ResultIDCardFrontOCR) wx.Action + func OCRIDCardFrontByURL(mode OCRMode, imgURL string, result *ResultIDCardFrontOCR) wx.Action + func OCRPlateNumber(mode OCRMode, imgPath string, result *ResultPlateNumberOCR) wx.Action + func OCRPlateNumberByURL(mode OCRMode, imgURL string, result *ResultPlateNumberOCR) wx.Action + func OCRVehicleLicense(mode OCRMode, imgPath string, result *ResultVehicleLicenseOCR) wx.Action + func OCRVehicleLicenseByURL(mode OCRMode, imgURL string, result *ResultVehicleLicenseOCR) wx.Action + func QueryScheme(scheme string, result *ResultSchemeQuery) wx.Action + func QueryURLLink(urllink string, result *ResultURLLinkQuery) wx.Action + func ScanQRCode(imgPath string, result *ResultQRCodeScan) wx.Action + func ScanQRCodeByURL(imgURL string, result *ResultQRCodeScan) wx.Action + func SendKFImageMsg(openid, mediaID string) wx.Action + func SendKFLinkMsg(openid string, link *KFLink) wx.Action + func SendKFMinipMsg(openid string, minipPage *KFMinipPage) wx.Action + func SendKFTextMsg(openid, content string) wx.Action + func SendKFTyping(openid string, cmd TypingCmd) wx.Action + func SendSubscribeMsg(msg *SubscribeMsg) wx.Action + func SendUniformMsg(touser string, msg *TemplateMsg) wx.Action + func SetDevPluginApplyStatus(action PluginAction, appid string, reason string) wx.Action + func SoterVerify(openID, jsonStr, jsonSign string, result *ResultSoterVerify) wx.Action + func SuperreSolution(imgPath string, result *ResultSuperreSolution) wx.Action + func SuperreSolutionByURL(imgURL string, result *ResultSuperreSolution) wx.Action + func UnbindPlugin(pluginAppID string) wx.Action + func UploadTempMedia(mediaType MediaType, mediaPath string, result *ResultMediaUpload) wx.Action + func UploadTempMediaByURL(mediaType MediaType, filename, url string, result *ResultMediaUpload) wx.Action + type AccessToken struct + ExpiresIn int64 + Token string + type AuthInfo struct + AvatarURL string + City string + Country string + Gender int + Language string + Nickname string + OpenID string + Province string + UnionID string + Watermark Watermark + type AuthSession struct + OpenID string + SessionKey string + UnionID string + type CloudBase struct + Domain string + Env string + Path string + Query string + ResourceAppID string + type CommOCRItem struct + Pos ImagePosition + Text string + type CropPosition struct + CropBottom int + CropLeft int + CropRight int + CropTop int + type EnvVersion string + const EnvDevelop + const EnvRelease + const EnvTrial + type ImagePosition struct + LeftBottom Position + LeftTop Position + RightBottom Position + RightTop Position + type ImageSize struct + H int + W int + type KFLink struct + Description string + ThumbURL string + Title string + URL string + type KFMedia struct + MediaID string + type KFMinipPage struct + PagePath string + ThumbMediaID string + Title string + type KFMsg struct + Image *KFMedia + Link *KFLink + MinipPage *KFMinipPage + MsgType event.MsgType + Text *KFText + ToUser string + type KFText struct + Content string + type KFTyping struct + Command TypingCmd + ToUser string + type KeywordEnumValue struct + EnumValueList []string + KeywordCode string + type Media struct + Buffer []byte + type MediaType string + const MediaImage + type Minip struct + func New(appid, appsecret string) *Minip + func (mp *Minip) AccessToken(ctx context.Context, options ...wx.HTTPOption) (*AccessToken, error) + func (mp *Minip) AppID() string + func (mp *Minip) AppSecret() string + func (mp *Minip) Code2Session(ctx context.Context, code string, options ...wx.HTTPOption) (*AuthSession, error) + func (mp *Minip) DecryptAuthInfo(sessionKey, iv, encryptedData string, result *AuthInfo) error + func (mp *Minip) DecryptEventMessage(encrypt string) (wx.WXML, error) + func (mp *Minip) Do(ctx context.Context, accessToken string, action wx.Action, ...) error + func (mp *Minip) SetClient(options ...wx.ClientOption) + func (mp *Minip) SetServerConfig(token, encodingAESKey string) + func (mp *Minip) VerifyEventSign(signature string, items ...string) bool + type MinipState string + const MinipDeveloper + const MinipFormal + const MinipTrial + type MsgMinip struct + AppID string + PagePath string + type MsgTemplData map[string]*MsgTemplValue + type MsgTemplValue struct + Color string + Value string + type OCRMode string + var OCRPhoto OCRMode = "photo" + var OCRScan OCRMode = "scan" + type OCRPosition struct + Pos ImagePosition + type ParamsDevPluginApplyStatus struct + Action PluginAction + AppID string + Reason string + type ParamsEncryptedDataCheck struct + EncryptedMsgHash string + type ParamsMediaCheckAsync struct + MediaType SecMediaType + MediaURL string + type ParamsPhoneNumber struct + Code string + type ParamsPluginApply struct + Action PluginAction + PluginAppID string + Reason string + type ParamsPluginDevApplyList struct + Action PluginAction + Num int + Page int + type ParamsPluginList struct + Action PluginAction + type ParamsPluginUnbind struct + Action PluginAction + PluginAppID string + type ParamsQRCodeCreate struct + Path string + Width int + type ParamsQRCodeGet struct + AutoColor bool + IsHyaline bool + LineColor *RGB + Path string + Width int + type ParamsQRCodeUnlimit struct + AutoColor bool + CheckPath *bool + EnvVersion EnvVersion + IsHyaline bool + LineColor *RGB + Page string + Scene string + Width int + type ParamsSchemeGenerate struct + ExpireInterval int + ExpireTime int64 + ExpireType int + IsExpire bool + JumpWxa *SchemeJumpWxa + type ParamsSchemeQuery struct + Scheme string + type ParamsServiceInvoke struct + API string + ClientMsgID string + Data wx.M + Service string + type ParamsShortLink struct + ISPermanent bool + PageTitle string + PageURL string + type ParamsSoterVerify struct + JSONSignature string + JSONString string + OpenID string + type ParamsSubscribeTemplAdd struct + KidList []int + SceneDesc string + TID string + type ParamsSubscribeTemplDelete struct + PriTmplID string + type ParamsURLLinkGenerate struct + CloudBase *CloudBase + EnvVersion EnvVersion + ExpireInterval int + ExpireTime int64 + ExpireType int + IsExpire bool + Path string + Query string + type ParamsURLLinkQuery struct + URLLink string + type ParamsUserRisk struct + AppID string + ClientIP string + EmailAddress string + ExtendedInfo string + IsTest bool + MobileNO string + OpenID string + Scene RiskScene + type PhoneInfo struct + CountryCode string + PhoneNumber string + PurePhoneNumber string + Watermark Watermark + type PluginAction string + var PluginApply PluginAction = "apply" + var PluginDevAgree PluginAction = "dev_agree" + var PluginDevApplyList PluginAction = "dev_apply_list" + var PluginDevDelete PluginAction = "dev_delete" + var PluginDevRefuse PluginAction = "dev_refuse" + var PluginList PluginAction = "list" + var PluginUnbind PluginAction = "unbind" + type PluginDevApplyInfo struct + AppID string + ApplyURL string + Categories []wx.M + CreateTime string + HeadImgURL string + Nickname string + Reason string + Status int + type PluginInfo struct + AppID string + HeadImgURL string + Nickname string + Status int + type Position struct + X int + Y int + type PubTemplKeywords struct + Example string + KID int64 + Name string + Rule string + type PubTemplTitle struct + CategoryID int64 + TID int64 + Title string + Type int + type QRCode struct + Buffer []byte + type QRCodeScanData struct + Data string + Pos ImagePosition + TypeName string + type RGB struct + B int + G int + R int + type ResultAICrop struct + ImgSize ImageSize + Results []*CropPosition + type ResultBankCardOCR struct + Number string + type ResultBusinessLicenseOCR struct + Address string + BusinessScope string + CertPosition OCRPosition + EnterpriseName string + ImgSize ImageSize + LegalRepresentative string + PaidInCapital string + RegNum string + RegisteredCapital string + RegisteredDate string + Serial string + TypeOfEnterprise string + TypeOfOrganization string + ValidPeriod string + type ResultCommOCR struct + ImgSize ImageSize + Items []*CommOCRItem + type ResultDriverLicenseOCR struct + Address string + BirthDate string + CarClass string + IDNum string + IssueDate string + Name string + Nationality string + OfficialSeal string + Sex string + ValidFrom string + ValidTo string + type ResultEncryptedDataCheck struct + CreateTime int64 + Valid bool + type ResultIDCardBackOCR struct + ValidDate string + type ResultIDCardFrontOCR struct + Addr string + Gender string + ID string + Name string + Nationality string + type ResultMediaCheckAsync struct + TraceID string + type ResultMediaUpload struct + CreatedAt int64 + MediaID string + Type MediaType + type ResultPaidUnionID struct + UnionID string + type ResultPhoneNumber struct + PhoneInfo *PhoneInfo + type ResultPlateNumberOCR struct + Number string + type ResultPluginDevApplyList struct + ApplyList []*PluginDevApplyInfo + type ResultPluginList struct + PluginList []*PluginInfo + type ResultPubTemplKeywords struct + Data []*PubTemplKeywords + type ResultPubTemplTitles struct + Count int + Data []*PubTemplTitle + type ResultQRCodeScan struct + CodeResults []*QRCodeScanData + ImgSize ImageSize + type ResultSchemeGenerate struct + OpenLink string + type ResultSchemeQuery struct + SchemeInfo *SchemeInfo + SchemeQuota *SchemeQuota + type ResultServiceInvoke struct + Data string + type ResultShortLink struct + Link string + type ResultSoterVerify struct + IsOK bool + type ResultSubscribeCategory struct + Data []*SubscribeCategory + type ResultSubscribeTemplAdd struct + PriTmplID string + type ResultSubscribeTemplList struct + Data []*SubscribeTemplInfo + type ResultSuperreSolution struct + MediaID string + type ResultURLLinkGenerate struct + URLLink string + type ResultURLLinkQuery struct + URLLinkInfo *URLLinkInfo + URLLinkQuota *URLLinkQuota + type ResultUserRisk struct + RiskRank int + type ResultVehicleLicenseOCR struct + Addr string + CardPositionBack OCRPosition + CardPositionFront OCRPosition + EngineNum string + IssueDate string + Model string + OverallSize string + Owner string + PassengersNum string + PlateNum string + PlateNumB string + PrepareQuality string + Record string + RegisterDate string + TotalQuality string + UseCharacter string + VIN string + VehicleType string + type RiskScene int + const RiskCheat + const RiskRegister + type SchemeInfo struct + AppID string + CreateTime int64 + EnvVersion EnvVersion + ExpireTime int64 + Path string + Query string + type SchemeJumpWxa struct + EnvVersion EnvVersion + Path string + Query string + type SchemeQuota struct + LongTimeLimit int + LongTimeUsed int + type SecMediaType int + var SecMediaAudio SecMediaType = 1 + var SecMediaImage SecMediaType = 2 + type SubscribeCategory struct + ID int64 + Name string + type SubscribeMsg struct + Data MsgTemplData + Lang string + MinipState MinipState + Page string + TemplateID string + ToUser string + type SubscribeTemplInfo struct + Content string + Example string + KeywordEnumValueList []*KeywordEnumValue + PriTmplId string + Title string + Type int + type TemplateMsg struct + AppID string + Data MsgTemplData + Minip *MsgMinip + TemplateID string + URL string + type TypingCmd string + const CancelTyping + const Typing + type URLLinkInfo struct + AppID string + CloudBase *CloudBase + CreateTime int64 + EnvVersion EnvVersion + ExpireTime int64 + Path string + Query string + type URLLinkQuota struct + LongTimeLimit int + LongTimeUsed int + type UniformMsg struct + MPTemplateMsg *TemplateMsg + ToUser string + type Watermark struct + AppID string + Timestamp int64