wechatopen

package
v1.0.137 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2023 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BLOCK_SIZE = 32             // PKCS#7
	BLOCK_MASK = BLOCK_SIZE - 1 // BLOCK_SIZE 为 2^n 时, 可以用 mask 获取针对 BLOCK_SIZE 的余数
)
View Source
const (
	LogTable = "wechatopen"
)

Variables

This section is empty.

Functions

func AESDecryptData

func AESDecryptData(cipherText, aesKey, iv []byte) (rawData []byte, err error)

func AESDecryptMsg

func AESDecryptMsg(decryptStr, aesKey string) (string, error)

AESDecryptMsg c解密

func AESEncryptMsg

func AESEncryptMsg(random, rawXMLMsg []byte, appId string, aesKey []byte) (ciphertext []byte)

AESEncryptMsg ciphertext = AES_Encrypt[random(16B) + msg_len(4B) + rawXMLMsg + appId]

func AesDecrypt

func AesDecrypt(cipherData []byte, aesKey []byte) ([]byte, error)

func CheckSignature

func CheckSignature(signature, timeStamp, nonce string, token string) bool

CheckSignature 微信公众号签名检查

func DelAuthorizerAccessToken added in v1.0.137

func DelAuthorizerAccessToken(ctx context.Context, c *Client) error

DelAuthorizerAccessToken 授权方access_token 删除

func DelComponentAccessToken added in v1.0.137

func DelComponentAccessToken(ctx context.Context, c *Client) error

DelComponentAccessToken 第三方平台access_token 删除

func DelComponentVerifyTicket added in v1.0.137

func DelComponentVerifyTicket(ctx context.Context, c *Client) error

DelComponentVerifyTicket 第三方平台推送ticket 删除

func DelPreAuthCode added in v1.0.137

func DelPreAuthCode(ctx context.Context, c *Client) error

DelPreAuthCode 第三方平台预授权码 删除

func GetAuthorizerAccessToken added in v1.0.137

func GetAuthorizerAccessToken(ctx context.Context, c *Client) string

GetAuthorizerAccessToken 授权方access_token

func GetAuthorizerAccessTokenCacheKeyName added in v1.0.137

func GetAuthorizerAccessTokenCacheKeyName(ctx context.Context, c *Client) string

GetAuthorizerAccessTokenCacheKeyName 授权方access_token 缓存名称

func GetComponentAccessToken added in v1.0.137

func GetComponentAccessToken(ctx context.Context, c *Client) string

GetComponentAccessToken 第三方平台access_token 获取

func GetComponentAccessTokenCacheKeyName added in v1.0.137

func GetComponentAccessTokenCacheKeyName(ctx context.Context, c *Client) string

GetComponentAccessTokenCacheKeyName 第三方平台access_token 缓存名称

func GetComponentVerifyTicket added in v1.0.137

func GetComponentVerifyTicket(ctx context.Context, c *Client) string

GetComponentVerifyTicket 第三方平台推送ticket 获取

func GetComponentVerifyTicketCacheKeyName added in v1.0.137

func GetComponentVerifyTicketCacheKeyName(ctx context.Context, c *Client) string

GetComponentVerifyTicketCacheKeyName 第三方平台推送ticket 缓存名称

func GetPreAuthCode added in v1.0.137

func GetPreAuthCode(ctx context.Context, c *Client) string

GetPreAuthCode 第三方平台预授权码 获取

func GetPreAuthCodeCacheKeyName added in v1.0.137

func GetPreAuthCodeCacheKeyName(ctx context.Context, c *Client) string

GetPreAuthCodeCacheKeyName 第三方平台预授权码 缓存名称

func MonitorAuthorizerAccessToken added in v1.0.137

func MonitorAuthorizerAccessToken(ctx context.Context, c *Client, authorizerRefreshToken string) (string, error)

MonitorAuthorizerAccessToken 授权方access_token 监控

func MonitorComponentAccessToken added in v1.0.137

func MonitorComponentAccessToken(ctx context.Context, c *Client) (string, error)

MonitorComponentAccessToken 第三方平台access_token 监控

func MonitorPreAuthCode added in v1.0.137

func MonitorPreAuthCode(ctx context.Context, c *Client) (string, error)

MonitorPreAuthCode 第三方平台预授权码 监控

func MsgSign

func MsgSign(token, timestamp, nonce, encryptedMsg string) (signature string)

MsgSign 微信公众号/企业号 消息体签名.

func SetAuthorizerAccessToken added in v1.0.137

func SetAuthorizerAccessToken(ctx context.Context, c *Client, authorizerAccessToken string) string

SetAuthorizerAccessToken 授权方access_token

func SetComponentAccessToken added in v1.0.137

func SetComponentAccessToken(ctx context.Context, c *Client, componentAccessToken string) string

SetComponentAccessToken 第三方平台access_token 设置

func SetComponentVerifyTicket added in v1.0.137

func SetComponentVerifyTicket(ctx context.Context, c *Client, componentVerifyTicket string) string

SetComponentVerifyTicket 第三方平台推送ticket 设置

func SetPreAuthCode added in v1.0.137

func SetPreAuthCode(ctx context.Context, c *Client, preAuthCode string) string

SetPreAuthCode 第三方平台预授权码 设置

func Sign

func Sign(token, timestamp, nonce string) (signature string)

Sign 微信公众号 url 签名.

func UserInfoAvatarUrlReal added in v1.0.50

func UserInfoAvatarUrlReal(avatarUrl string) string

func XmlDecode

func XmlDecode(data string) map[string]string

Types

type CgiBinAccountGetAccountBasicInfoResponse

type CgiBinAccountGetAccountBasicInfoResponse struct {
	Errcode        int    `json:"errcode"`         // 返回码
	Errmsg         string `json:"errmsg"`          // 错误信息
	Appid          string `json:"appid"`           // 帐号 appid
	AccountType    int    `json:"account_type"`    // 帐号类型(1:订阅号,2:服务号,3:小程序)
	PrincipalType  int    `json:"principal_type"`  // 主体类型
	PrincipalName  string `json:"principal_name"`  // 主体名称
	Credential     string `json:"credential"`      // 主体标识
	RealnameStatus int    `json:"realname_status"` // 实名验证状态 1=实名验证成功 2=实名验证中 3=实名验证失败
	WxVerifyInfo   struct {
		QualificationVerify   bool `json:"qualification_verify"`     // 是否资质认证,若是,拥有微信认证相关的权限
		NamingVerify          bool `json:"naming_verify"`            // 是否名称认证
		AnnualReview          bool `json:"annual_review"`            // 是否需要年审(qualification_verify == true 时才有该字段)
		AnnualReviewBeginTime int  `json:"annual_review_begin_time"` // 年审开始时间,时间戳(qualification_verify == true 时才有该字段)
		AnnualReviewEndTime   int  `json:"annual_review_end_time"`   // 年审截止时间,时间戳(qualification_verify == true 时才有该字段)
	} `json:"wx_verify_info"` // 微信认证信息
	SignatureInfo struct {
		Signature       string `json:"signature"`         // 功能介绍
		ModifyUsedCount int    `json:"modify_used_count"` // 功能介绍已使用修改次数(本月)
		ModifyQuota     int    `json:"modify_quota"`      // 功能介绍修改次数总额度(本月)
	} `json:"signature_info"` // 功能介绍信息
	HeadImageInfo struct {
		HeadImageUrl    string `json:"head_image_url"`    // 头像 url
		ModifyUsedCount int    `json:"modify_used_count"` // 头像已使用修改次数(本年)
		ModifyQuota     int    `json:"modify_quota"`      // 头像修改次数总额度(本年)
	} `json:"head_image_info"` // 头像信息
	NicknameInfo struct {
		Nickname        string `json:"nickname"`          // 小程序名称
		ModifyUsedCount int    `json:"modify_used_count"` // 小程序名称已使用修改次数(本年)
		ModifyQuota     int    `json:"modify_quota"`      // 小程序名称修改次数总额度(本年)
	} `json:"nickname_info"` // 名称信息
	RegisteredCountry int    `json:"registered_country"` // 注册国家
	Nickname          string `json:"nickname"`           // 小程序名称
}

type CgiBinAccountGetAccountBasicInfoResult

type CgiBinAccountGetAccountBasicInfoResult struct {
	Result CgiBinAccountGetAccountBasicInfoResponse // 结果
	Body   []byte                                   // 内容
	Http   gorequest.Response                       // 请求
}

type CgiBinComponentApiAuthorizerTokenResponse

type CgiBinComponentApiAuthorizerTokenResponse struct {
	AuthorizerAccessToken  string `json:"authorizer_access_token"`  // 授权方令牌
	ExpiresIn              int64  `json:"expires_in"`               // 有效期,单位:秒
	AuthorizerRefreshToken string `json:"authorizer_refresh_token"` // 刷新令牌
}

type CgiBinComponentApiAuthorizerTokenResult

type CgiBinComponentApiAuthorizerTokenResult struct {
	Result CgiBinComponentApiAuthorizerTokenResponse // 结果
	Body   []byte                                    // 内容
	Http   gorequest.Response                        // 请求
	// contains filtered or unexported fields
}

type CgiBinComponentApiComponentTokenResponse

type CgiBinComponentApiComponentTokenResponse struct {
	ComponentAccessToken string `json:"component_access_token"` // 第三方平台 access_token
	ExpiresIn            int64  `json:"expires_in"`             // 有效期,单位:秒
}

type CgiBinComponentApiComponentTokenResult

type CgiBinComponentApiComponentTokenResult struct {
	Result CgiBinComponentApiComponentTokenResponse // 结果
	Body   []byte                                   // 内容
	Http   gorequest.Response                       // 请求
}

type CgiBinComponentApiCreatePreAuthCodenResponse

type CgiBinComponentApiCreatePreAuthCodenResponse struct {
	PreAuthCode string `json:"pre_auth_code"` // 预授权码
	ExpiresIn   int64  `json:"expires_in"`    // 有效期,单位:秒
}

type CgiBinComponentApiCreatePreAuthCodenResult

type CgiBinComponentApiCreatePreAuthCodenResult struct {
	Result CgiBinComponentApiCreatePreAuthCodenResponse // 结果
	Body   []byte                                       // 内容
	Http   gorequest.Response                           // 请求
}

type CgiBinComponentApiGetAuthorizerInfoResponse

type CgiBinComponentApiGetAuthorizerInfoResponse struct {
	AuthorizerInfo struct {
		NickName        string `json:"nick_name"` // 昵称
		HeadImg         string `json:"head_img"`  // 头像
		ServiceTypeInfo struct {
			Id int `json:"id"` // 0=普通小程序 2=门店小程序 3=门店小程序 4=小游戏 10=小商店 12=试用小程序
		} `json:"service_type_info"` // 小程序类型
		VerifyTypeInfo struct {
			Id int `json:"id"` // -1=未认证 0=微信认证
		} `json:"verify_type_info"` // 小程序认证类型
		UserName      string `json:"user_name"`      // 原始 ID
		PrincipalName string `json:"principal_name"` // 主体名称
		Signature     string `json:"signature"`      // 帐号介绍
		BusinessInfo  struct {
			OpenPay   int `json:"open_pay"`
			OpenShake int `json:"open_shake"`
			OpenScan  int `json:"open_scan"`
			OpenCard  int `json:"open_card"`
			OpenStore int `json:"open_store"`
		} `json:"business_info"` // 用以了解功能的开通状况(0代表未开通,1代表已开通)
		QrcodeUrl       string `json:"qrcode_url"` // 二维码图片的 URL,开发者最好自行也进行保存
		MiniProgramInfo struct {
			Network struct {
				RequestDomain      []string      `json:"RequestDomain"`
				WsRequestDomain    []string      `json:"WsRequestDomain"`
				UploadDomain       []string      `json:"UploadDomain"`
				DownloadDomain     []string      `json:"DownloadDomain"`
				BizDomain          []string      `json:"BizDomain"`
				UDPDomain          []string      `json:"UDPDomain"`
				TCPDomain          []interface{} `json:"TCPDomain"`
				NewRequestDomain   []interface{} `json:"NewRequestDomain"`
				NewWsRequestDomain []interface{} `json:"NewWsRequestDomain"`
				NewUploadDomain    []interface{} `json:"NewUploadDomain"`
				NewDownloadDomain  []interface{} `json:"NewDownloadDomain"`
				NewBizDomain       []interface{} `json:"NewBizDomain"`
				NewUDPDomain       []interface{} `json:"NewUDPDomain"`
				NewTCPDomain       []interface{} `json:"NewTCPDomain"`
			} `json:"network"` // 小程序配置的合法域名信息
			Categories []struct {
				First  string `json:"first"`
				Second string `json:"second"`
			} `json:"categories"` // 小程序配置的类目信息
			VisitStatus int `json:"visit_status"`
		} `json:"MiniProgramInfo"` // 小程序配置,根据这个字段判断是否为小程序类型授权
		Alias string `json:"alias"` // 公众号所设置的微信号,可能为空
		Idc   int    `json:"idc"`
	} `json:"authorizer_info"` // 小程序帐号信息
	AuthorizationInfo struct {
		AuthorizerAppid string `json:"authorizer_appid"` // 授权方 appid
		FuncInfo        []struct {
			FuncscopeCategory struct {
				Id int `json:"id"`
			} `json:"funcscope_category"`
			ConfirmInfo struct {
				NeedConfirm    int `json:"need_confirm"`
				AlreadyConfirm int `json:"already_confirm"`
				CanConfirm     int `json:"can_confirm"`
			} `json:"confirm_info,omitempty"`
		} `json:"func_info"` // 授权给开发者的权限集列表
		AuthorizerRefreshToken string `json:"authorizer_refresh_token"`
	} `json:"authorization_info"` // 授权信息
}

type CgiBinComponentApiGetAuthorizerInfoResult

type CgiBinComponentApiGetAuthorizerInfoResult struct {
	Result CgiBinComponentApiGetAuthorizerInfoResponse // 结果
	Body   []byte                                      // 内容
	Http   gorequest.Response                          // 请求
}

type CgiBinComponentApiQueryAuthResponse

type CgiBinComponentApiQueryAuthResponse struct {
	AuthorizationInfo struct {
		AuthorizerAppid        string `json:"authorizer_appid"`         // 授权方 appid
		AuthorizerAccessToken  string `json:"authorizer_access_token"`  // 接口调用令牌(在授权的公众号/小程序具备 API 权限时,才有此返回值)
		ExpiresIn              int64  `json:"expires_in"`               // authorizer_access_token 的有效期(在授权的公众号/小程序具备API权限时,才有此返回值),单位:秒
		AuthorizerRefreshToken string `json:"authorizer_refresh_token"` // 刷新令牌(在授权的公众号具备API权限时,才有此返回值),刷新令牌主要用于第三方平台获取和刷新已授权用户的 authorizer_access_token。一旦丢失,只能让用户重新授权,才能再次拿到新的刷新令牌。用户重新授权后,之前的刷新令牌会失效
		FuncInfo               []struct {
			FuncscopeCategory struct {
				Id int `json:"id"`
			} `json:"funcscope_category"`
			ConfirmInfo struct {
				NeedConfirm    int `json:"need_confirm"`
				AlreadyConfirm int `json:"already_confirm"`
				CanConfirm     int `json:"can_confirm"`
			} `json:"confirm_info,omitempty"`
		} `json:"func_info"`
	} `json:"authorization_info"`
}

type CgiBinComponentApiQueryAuthResult

type CgiBinComponentApiQueryAuthResult struct {
	Result CgiBinComponentApiQueryAuthResponse // 结果
	Body   []byte                              // 内容
	Http   gorequest.Response                  // 请求
}

type CgiBinComponentApiStartPushTicketResponse

type CgiBinComponentApiStartPushTicketResponse struct {
	AccessToken string `json:"access_token"` // 获取到的凭证
	ExpiresIn   int    `json:"expires_in"`   // 凭证有效时间,单位:秒。目前是7200秒之内的值
	Errcode     int    `json:"errcode"`      // 错误码
	Errmsg      string `json:"errmsg"`       // 错误信息
}

type CgiBinComponentApiStartPushTicketResult

type CgiBinComponentApiStartPushTicketResult struct {
	Result CgiBinComponentApiStartPushTicketResponse // 结果
	Body   []byte                                    // 内容
	Http   gorequest.Response                        // 请求
}

type CgiBinComponentFastRegisterWeAppCreateResponse added in v1.0.52

type CgiBinComponentFastRegisterWeAppCreateResponse struct {
	Errcode int    `json:"errcode"` // 错误码
	Errmsg  string `json:"errmsg"`  // 错误信息
}

type CgiBinComponentFastRegisterWeAppCreateResult added in v1.0.52

type CgiBinComponentFastRegisterWeAppCreateResult struct {
	Result CgiBinComponentFastRegisterWeAppCreateResponse // 结果
	Body   []byte                                         // 内容
	Http   gorequest.Response                             // 请求
}

func (*CgiBinComponentFastRegisterWeAppCreateResult) ErrcodeInfo added in v1.0.52

ErrcodeInfo 错误描述

func (*CgiBinComponentFastRegisterWeAppCreateResult) StatusInfo added in v1.0.52

func (resp *CgiBinComponentFastRegisterWeAppCreateResult) StatusInfo(status int) string

StatusInfo 状态描述

type CgiBinComponentFastRegisterWeAppSearchResponse added in v1.0.52

type CgiBinComponentFastRegisterWeAppSearchResponse struct {
	Errcode int    `json:"errcode"` // 错误码
	Errmsg  string `json:"errmsg"`  // 错误信息
}

type CgiBinComponentFastRegisterWeAppSearchResult added in v1.0.52

type CgiBinComponentFastRegisterWeAppSearchResult struct {
	Result CgiBinComponentFastRegisterWeAppSearchResponse // 结果
	Body   []byte                                         // 内容
	Http   gorequest.Response                             // 请求
}

func (*CgiBinComponentFastRegisterWeAppSearchResult) ErrcodeInfo added in v1.0.52

ErrcodeInfo 错误描述

func (*CgiBinComponentFastRegisterWeAppSearchResult) StatusInfo added in v1.0.52

func (resp *CgiBinComponentFastRegisterWeAppSearchResult) StatusInfo(status int) string

StatusInfo 状态描述

type CgiBinComponentGetPrivacySettingResponse added in v1.0.47

type CgiBinComponentGetPrivacySettingResponse struct {
	Errcode     int      `json:"errcode"`      // 返回码
	Errmsg      string   `json:"errmsg"`       // 返回码信息
	CodeExist   int      `json:"code_exist"`   // 代码是否存在, 0 不存在, 1 存在 。如果最近没有通过commit接口上传代码,则会出现 code_exist=0的情况。
	PrivacyList []string `json:"privacy_list"` // 代码检测出来的用户信息类型(privacy_key)
	SettingList []struct {
		PrivacyKey   string `json:"privacy_key"`   // 用户信息类型的英文名称
		PrivacyText  string `json:"privacy_text"`  // 该用户信息类型的用途
		PrivacyLabel string `json:"privacy_label"` // 用户信息类型的中文名称
	} `json:"setting_list"` // 要收集的用户信息配置
	UpdateTime   int `json:"update_time"` // 更新时间
	OwnerSetting struct {
		ContactPhone         string `json:"contact_phone"`          // 信息收集方(开发者)的邮箱
		ContactEmail         string `json:"contact_email"`          // 信息收集方(开发者)的手机号
		ContactQq            string `json:"contact_qq"`             // 信息收集方(开发者)的qq
		ContactWeixin        string `json:"contact_weixin"`         // 信息收集方(开发者)的微信号
		NoticeMethod         string `json:"notice_method"`          // 通知方式,指的是当开发者收集信息有变动时,通过该方式通知用户
		StoreExpireTimestamp string `json:"store_expire_timestamp"` // 存储期限,指的是开发者收集用户信息存储多久
		ExtFileMediaId       string `json:"ext_file_media_id"`      // 自定义 用户隐私保护指引文件的media_id
	} `json:"owner_setting"` // 收集方(开发者)信息配置
	PrivacyDesc struct {
		PrivacyDescList []struct {
			PrivacyKey  string `json:"privacy_key"`  // 用户信息类型的英文key
			PrivacyDesc string `json:"privacy_desc"` // 用户信息类型的中文描述
		} `json:"privacy_desc_list"` // 用户信息类型
	} `json:"privacy_desc"` // 用户信息类型对应的中英文描述
	SdkPrivacyInfoList []struct {
		SdkName    string `json:"sdk_name"`     // sdk的名称
		SdkBizName string `json:"sdk_biz_name"` // sdk提供方的主体名称
		SdkList    []struct {
			PrivacyKey   string `json:"privacy_key"`  // sdk收集的信息描述
			PrivacyText  string `json:"privacy_text"` // sdk收集的信息用途说明
			PrivacyLabel string `json:"privacy_label"`
		} `json:"sdk_list"` // sdk收集的信息以及用途
	} `json:"sdk_privacy_info_list"` // sdk
}

type CgiBinComponentGetPrivacySettingResult added in v1.0.47

type CgiBinComponentGetPrivacySettingResult struct {
	Result CgiBinComponentGetPrivacySettingResponse // 结果
	Body   []byte                                   // 内容
	Http   gorequest.Response                       // 请求
}

type CgiBinComponentSetPrivacySettingResponse added in v1.0.47

type CgiBinComponentSetPrivacySettingResponse struct {
	Errcode int    `json:"errcode"` // 返回码
	Errmsg  string `json:"errmsg"`  // 返回码信息
}

type CgiBinComponentSetPrivacySettingResult added in v1.0.47

type CgiBinComponentSetPrivacySettingResult struct {
	Result CgiBinComponentSetPrivacySettingResponse // 结果
	Body   []byte                                   // 内容
	Http   gorequest.Response                       // 请求
}

func (*CgiBinComponentSetPrivacySettingResult) ErrcodeInfo added in v1.0.47

func (resp *CgiBinComponentSetPrivacySettingResult) ErrcodeInfo() string

ErrcodeInfo 错误描述

type CgiBinMaterialGetMaterialResponse added in v1.0.52

type CgiBinMaterialGetMaterialResponse struct {
	Errcode int    `json:"errcode"`
	Errmsg  string `json:"errmsg"`
}

type CgiBinMaterialGetMaterialResult added in v1.0.52

type CgiBinMaterialGetMaterialResult struct {
	Result CgiBinMaterialGetMaterialResponse // 结果
	Body   []byte                            // 内容
	Http   gorequest.Response                // 请求
}

func (*CgiBinMaterialGetMaterialResult) SaveImg added in v1.0.52

func (cr *CgiBinMaterialGetMaterialResult) SaveImg(db *gostorage.AliYun, fileName, filePath string) error

type CgiBinOpenSameEnTityResponse added in v1.0.52

type CgiBinOpenSameEnTityResponse struct {
	Errcode    int    `json:"errcode"`
	Errmsg     string `json:"errmsg"`
	SameEntity bool   `json:"same_entity"` // 是否同主体;true表示同主体;false表示不同主体
}

type CgiBinOpenSameEnTityResult added in v1.0.52

type CgiBinOpenSameEnTityResult struct {
	Result CgiBinOpenSameEnTityResponse // 结果
	Body   []byte                       // 内容
	Http   gorequest.Response           // 请求
}

type CgiBinOpenapiRidGetResponse added in v1.0.135

type CgiBinOpenapiRidGetResponse struct {
	Errcode int    `json:"errcode"`
	Errmsg  string `json:"errmsg"`
	Request struct {
		InvokeTime   int    `json:"invoke_time"`   // 发起请求的时间戳
		CostInMs     int    `json:"cost_in_ms"`    // 请求毫秒级耗时
		RequestUrl   string `json:"request_url"`   // 请求的URL参数
		RequestBody  string `json:"request_body"`  // post请求的请求参数
		ResponseBody string `json:"response_body"` // 接口请求返回参数
		ClientIp     string `json:"client_ip"`     // 接口请求的客户端ip
	} `json:"request"`
}

type CgiBinOpenapiRidGetResult added in v1.0.135

type CgiBinOpenapiRidGetResult struct {
	Result CgiBinOpenapiRidGetResponse // 结果
	Body   []byte                      // 内容
	Http   gorequest.Response          // 请求
}

type CgiBinShortUrlResponse added in v1.0.47

type CgiBinShortUrlResponse struct {
	Errcode  int    `json:"errcode"`
	Errmsg   string `json:"errmsg"`
	ShortUrl string `json:"short_url"` // 	短链接。
}

type CgiBinShortUrlResult added in v1.0.47

type CgiBinShortUrlResult struct {
	Result CgiBinShortUrlResponse // 结果
	Body   []byte                 // 内容
	Http   gorequest.Response     // 请求
}

type CgiBinWxOpenQrCodeJumpAddResponse added in v1.0.47

type CgiBinWxOpenQrCodeJumpAddResponse struct {
	Errcode int    `json:"errcode"`
	Errmsg  string `json:"errmsg"`
}

type CgiBinWxOpenQrCodeJumpAddResult added in v1.0.47

type CgiBinWxOpenQrCodeJumpAddResult struct {
	Result CgiBinWxOpenQrCodeJumpAddResponse // 结果
	Body   []byte                            // 内容
	Http   gorequest.Response                // 请求
}

func (*CgiBinWxOpenQrCodeJumpAddResult) ErrcodeInfo added in v1.0.47

func (resp *CgiBinWxOpenQrCodeJumpAddResult) ErrcodeInfo() string

ErrcodeInfo 错误描述

type CgiBinWxOpenQrCodeJumpDeleteResponse added in v1.0.47

type CgiBinWxOpenQrCodeJumpDeleteResponse struct {
	Errcode int    `json:"errcode"`
	Errmsg  string `json:"errmsg"`
}

type CgiBinWxOpenQrCodeJumpDeleteResult added in v1.0.47

type CgiBinWxOpenQrCodeJumpDeleteResult struct {
	Result CgiBinWxOpenQrCodeJumpDeleteResponse // 结果
	Body   []byte                               // 内容
	Http   gorequest.Response                   // 请求
}

type CgiBinWxOpenQrCodeJumpDownloadResponse added in v1.0.47

type CgiBinWxOpenQrCodeJumpDownloadResponse struct {
	Errcode     int    `json:"errcode"`
	Errmsg      string `json:"errmsg"`
	FileName    string `json:"file_name"`
	FileContent string `json:"file_content"`
}

type CgiBinWxOpenQrCodeJumpDownloadResult added in v1.0.47

type CgiBinWxOpenQrCodeJumpDownloadResult struct {
	Result CgiBinWxOpenQrCodeJumpDownloadResponse // 结果
	Body   []byte                                 // 内容
	Http   gorequest.Response                     // 请求
}

type CgiBinWxOpenQrCodeJumpGetResponse added in v1.0.47

type CgiBinWxOpenQrCodeJumpGetResponse struct {
	Errcode  int    `json:"errcode"`
	Errmsg   string `json:"errmsg"`
	RuleList []struct {
		Prefix        string   `json:"prefix"`          // 二维码规则
		PermitSubRule int      `json:"permit_sub_rule"` // 是否独占符合二维码前缀匹配规则的所有子规 1 为不占用,2 为占用
		Path          string   `json:"path"`            // 小程序功能页面
		OpenVersion   int      `json:"open_version"`    // 测试范围
		DebugUrl      []string `json:"debug_url"`       // 测试链接(选填)可填写不多于 5 个用于测试的二维码完整链接,此链接必须符合已填写的二维码规则。
		State         int      `json:"state"`           // 发布标志位,1 表示未发布,2 表示已发布
	} `json:"rule_list"` // 二维码规则详情列表
	QrcodejumpOpen     int `json:"qrcodejump_open"`      // 是否已经打开二维码跳转链接设置
	ListSize           int `json:"list_size"`            // 二维码规则数量
	QrcodejumpPubQuota int `json:"qrcodejump_pub_quota"` // 本月还可发布的次数
}

type CgiBinWxOpenQrCodeJumpGetResult added in v1.0.47

type CgiBinWxOpenQrCodeJumpGetResult struct {
	Result CgiBinWxOpenQrCodeJumpGetResponse // 结果
	Body   []byte                            // 内容
	Http   gorequest.Response                // 请求
}

type CgiBinWxOpenQrCodeJumpPublishResponse added in v1.0.47

type CgiBinWxOpenQrCodeJumpPublishResponse struct {
	Errcode int    `json:"errcode"`
	Errmsg  string `json:"errmsg"`
}

type CgiBinWxOpenQrCodeJumpPublishResult added in v1.0.47

type CgiBinWxOpenQrCodeJumpPublishResult struct {
	Result CgiBinWxOpenQrCodeJumpPublishResponse // 结果
	Body   []byte                                // 内容
	Http   gorequest.Response                    // 请求
}

func (*CgiBinWxOpenQrCodeJumpPublishResult) ErrcodeInfo added in v1.0.47

func (resp *CgiBinWxOpenQrCodeJumpPublishResult) ErrcodeInfo() string

ErrcodeInfo 错误描述

type Client added in v1.0.47

type Client struct {
	// contains filtered or unexported fields
}

Client 实例

func NewClient added in v1.0.47

func NewClient(config *ClientConfig) (*Client, error)

NewClient 创建实例化

func (*Client) CgiBinComponentApiAuthorizerToken added in v1.0.47

func (c *Client) CgiBinComponentApiAuthorizerToken(ctx context.Context, authorizerRefreshToken string, notMustParams ...gorequest.Params) (*CgiBinComponentApiAuthorizerTokenResult, error)

CgiBinComponentApiAuthorizerToken 获取/刷新接口调用令牌 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/ThirdParty/token/api_authorizer_token.html

func (*Client) CgiBinComponentApiCreatePreAuthCoden added in v1.0.47

func (c *Client) CgiBinComponentApiCreatePreAuthCoden(ctx context.Context, notMustParams ...gorequest.Params) (*CgiBinComponentApiCreatePreAuthCodenResult, error)

CgiBinComponentApiCreatePreAuthCoden 预授权码 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/ThirdParty/token/pre_auth_code.html

func (*Client) CgiBinComponentApiGetAuthorizerInfo added in v1.0.47

func (c *Client) CgiBinComponentApiGetAuthorizerInfo(ctx context.Context, notMustParams ...gorequest.Params) (*CgiBinComponentApiGetAuthorizerInfoResult, error)

CgiBinComponentApiGetAuthorizerInfo 获取授权帐号详情 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/ThirdParty/token/api_get_authorizer_info.html

func (*Client) CgiBinComponentApiQueryAuth added in v1.0.47

func (c *Client) CgiBinComponentApiQueryAuth(ctx context.Context, authorizationCode string, notMustParams ...gorequest.Params) (*CgiBinComponentApiQueryAuthResult, error)

CgiBinComponentApiQueryAuth 使用授权码获取授权信息 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/ThirdParty/token/authorization_info.html

func (*Client) CgiBinComponentApiStartPushTicket added in v1.0.47

func (c *Client) CgiBinComponentApiStartPushTicket(ctx context.Context, notMustParams ...gorequest.Params) (*CgiBinComponentApiStartPushTicketResult, error)

CgiBinComponentApiStartPushTicket 启动ticket推送服务 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/ThirdParty/token/component_verify_ticket_service.html

func (*Client) CgiBinComponentFastRegisterWeAppCreate added in v1.0.52

func (c *Client) CgiBinComponentFastRegisterWeAppCreate(ctx context.Context, notMustParams ...gorequest.Params) (*CgiBinComponentFastRegisterWeAppCreateResult, error)

CgiBinComponentFastRegisterWeAppCreate 快速注册企业小程序 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/register-management/fast-registration-ent/registerMiniprogram.html

func (*Client) CgiBinComponentGetPrivacySetting added in v1.0.47

func (c *Client) CgiBinComponentGetPrivacySetting(ctx context.Context, privacyVer int, notMustParams ...gorequest.Params) (*CgiBinComponentGetPrivacySettingResult, error)

CgiBinComponentGetPrivacySetting 查询小程序用户隐私保护指引 @privacyVer 1表示现网版本,即,传1则该接口返回的内容是现网版本的;2表示开发版,即,传2则该接口返回的内容是开发版本的。默认是2。 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/privacy_config/get_privacy_setting.html

func (*Client) CgiBinComponentSetPrivacySetting added in v1.0.47

func (c *Client) CgiBinComponentSetPrivacySetting(ctx context.Context, notMustParams ...gorequest.Params) (*CgiBinComponentSetPrivacySettingResult, error)

CgiBinComponentSetPrivacySetting 配置小程序用户隐私保护指引 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/privacy_config/set_privacy_setting.html

func (*Client) CgiBinGetApiDomainIp added in v1.0.47

func (c *Client) CgiBinGetApiDomainIp(ctx context.Context, componentAccessToken string, notMustParams ...gorequest.Params) (*GetCallBackIpResult, error)

CgiBinGetApiDomainIp 获取微信服务器IP地址 https://developers.weixin.qq.com/doc/offiaccount/Basic_Information/Get_the_WeChat_server_IP_address.html

func (*Client) CgiBinMaterialGetMaterial added in v1.0.52

func (c *Client) CgiBinMaterialGetMaterial(ctx context.Context, mediaId string, notMustParams ...gorequest.Params) (*CgiBinMaterialGetMaterialResult, error)

CgiBinMaterialGetMaterial 获取永久素材 https://developers.weixin.qq.com/doc/offiaccount/Asset_Management/Getting_Permanent_Assets.html

func (*Client) CgiBinOpenSameEnTity added in v1.0.52

func (c *Client) CgiBinOpenSameEnTity(ctx context.Context, notMustParams ...gorequest.Params) (*CgiBinOpenSameEnTityResult, error)

CgiBinOpenSameEnTity 获取授权绑定的商户号列表 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/cloudbase-common/wechatpay/getWechatPayList.html

func (*Client) CgiBinOpenapiRidGet added in v1.0.135

func (c *Client) CgiBinOpenapiRidGet(ctx context.Context, rid string, notMustParams ...gorequest.Params) (*CgiBinOpenapiRidGetResult, error)

CgiBinOpenapiRidGet 查询rid信息 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/openapi/getRidInfo.html

func (*Client) CgiBinShortUrl added in v1.0.47

func (c *Client) CgiBinShortUrl(ctx context.Context, longUrl string, notMustParams ...gorequest.Params) (*CgiBinShortUrlResult, error)

CgiBinShortUrl 将二维码长链接转成短链接 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/qrcode/shorturl.html

func (*Client) CgiBinWxOpenQrCodeJumpAdd added in v1.0.47

func (c *Client) CgiBinWxOpenQrCodeJumpAdd(ctx context.Context, notMustParams ...gorequest.Params) (*CgiBinWxOpenQrCodeJumpAddResult, error)

CgiBinWxOpenQrCodeJumpAdd 增加或修改二维码规则 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/qrcode/qrcodejumpadd.html

func (*Client) CgiBinWxOpenQrCodeJumpDelete added in v1.0.47

func (c *Client) CgiBinWxOpenQrCodeJumpDelete(ctx context.Context, prefix string, notMustParams ...gorequest.Params) (*CgiBinWxOpenQrCodeJumpDeleteResult, error)

CgiBinWxOpenQrCodeJumpDelete 删除已设置的二维码规则 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/qrcode/qrcodejumpdelete.html

func (*Client) CgiBinWxOpenQrCodeJumpDownload added in v1.0.47

func (c *Client) CgiBinWxOpenQrCodeJumpDownload(ctx context.Context, notMustParams ...gorequest.Params) (*CgiBinWxOpenQrCodeJumpDownloadResult, error)

CgiBinWxOpenQrCodeJumpDownload 获取校验文件名称及内容 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/qrcode/qrcodejumpdownload.html

func (*Client) CgiBinWxOpenQrCodeJumpGet added in v1.0.47

func (c *Client) CgiBinWxOpenQrCodeJumpGet(ctx context.Context, notMustParams ...gorequest.Params) (*CgiBinWxOpenQrCodeJumpGetResult, error)

CgiBinWxOpenQrCodeJumpGet 获取已设置的二维码规则 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/qrcode/qrcodejumpadd.html

func (*Client) CgiBinWxOpenQrCodeJumpPublish added in v1.0.47

func (c *Client) CgiBinWxOpenQrCodeJumpPublish(ctx context.Context, prefix string, notMustParams ...gorequest.Params) (*CgiBinWxOpenQrCodeJumpPublishResult, error)

CgiBinWxOpenQrCodeJumpPublish 发布已设置的二维码规则 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/qrcode/qrcodejumppublish.html

func (*Client) ConfigApiClientFun added in v1.0.52

func (c *Client) ConfigApiClientFun(apiClientFun golog.ApiClientFun)

ConfigApiClientFun 日志配置

func (*Client) ConfigAuthorizer added in v1.0.47

func (c *Client) ConfigAuthorizer(authorizerAppid string) *Client

ConfigAuthorizer 配置第三方

func (*Client) ConfigComponent added in v1.0.47

func (c *Client) ConfigComponent(componentAppId, componentAppSecret string) *Client

ConfigComponent 配置

func (*Client) DataCubeGetWeAnAlySisAppidDailyRetainInfo added in v1.0.106

func (c *Client) DataCubeGetWeAnAlySisAppidDailyRetainInfo(ctx context.Context, beginDate, endDate string, notMustParams ...gorequest.Params) (*DataCubeGetWeAnAlySisAppidDailyRetainInfoResult, error)

DataCubeGetWeAnAlySisAppidDailyRetainInfo 获取用户访问小程序日留存 https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/data-analysis/visit-retain/getDailyRetain.html

func (*Client) DataCubeGetWeAnAlySisAppidDailySummaryTrend added in v1.0.106

func (c *Client) DataCubeGetWeAnAlySisAppidDailySummaryTrend(ctx context.Context, beginDate, endDate string, notMustParams ...gorequest.Params) (*DataCubeGetWeAnAlySisAppidDailySummaryTrendResult, error)

DataCubeGetWeAnAlySisAppidDailySummaryTrend 获取用户访问小程序数据概况 https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/data-analysis/others/getDailySummary.html

func (*Client) DataCubeGetWeAnAlySisAppidDailyVisitTrend added in v1.0.106

func (c *Client) DataCubeGetWeAnAlySisAppidDailyVisitTrend(ctx context.Context, beginDate, endDate string, notMustParams ...gorequest.Params) (*DataCubeGetWeAnAlySisAppidDailyVisitTrendResult, error)

DataCubeGetWeAnAlySisAppidDailyVisitTrend 获取用户访问小程序数据日趋势 https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/data-analysis/visit-trend/getDailyVisitTrend.html

func (*Client) DataCubeGetWeAnAlySisAppidMonthlyRetainInfo added in v1.0.106

func (c *Client) DataCubeGetWeAnAlySisAppidMonthlyRetainInfo(ctx context.Context, beginDate, endDate string, notMustParams ...gorequest.Params) (*DataCubeGetWeAnAlySisAppidMonthlyRetainInfoResult, error)

DataCubeGetWeAnAlySisAppidMonthlyRetainInfo 获取用户访问小程序月留存 https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/data-analysis/visit-retain/getMonthlyRetain.html

func (*Client) DataCubeGetWeAnAlySisAppidMonthlyVisitTrend added in v1.0.106

func (c *Client) DataCubeGetWeAnAlySisAppidMonthlyVisitTrend(ctx context.Context, beginDate, endDate string, notMustParams ...gorequest.Params) (*DataCubeGetWeAnAlySisAppidMonthlyVisitTrendResult, error)

DataCubeGetWeAnAlySisAppidMonthlyVisitTrend 获取用户访问小程序数据月趋势 https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/data-analysis/visit-trend/getMonthlyVisitTrend.html

func (*Client) DataCubeGetWeAnAlySisAppidUserPortrait added in v1.0.106

func (c *Client) DataCubeGetWeAnAlySisAppidUserPortrait(ctx context.Context, beginDate, endDate string, notMustParams ...gorequest.Params) (*DataCubeGetWeAnAlySisAppidUserPortraitResult, error)

DataCubeGetWeAnAlySisAppidUserPortrait 获取小程序用户画像分布 https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/data-analysis/others/getUserPortrait.html

func (*Client) DataCubeGetWeAnAlySisAppidVisitPage added in v1.0.106

func (c *Client) DataCubeGetWeAnAlySisAppidVisitPage(ctx context.Context, beginDate, endDate string, notMustParams ...gorequest.Params) (*DataCubeGetWeAnAlySisAppidVisitPageResult, error)

DataCubeGetWeAnAlySisAppidVisitPage 获取访问页面数据 https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/data-analysis/others/getVisitPage.html

func (*Client) DataCubeGetWeAnAlySisAppidWeeklyRetainInfo added in v1.0.106

func (c *Client) DataCubeGetWeAnAlySisAppidWeeklyRetainInfo(ctx context.Context, beginDate, endDate string, notMustParams ...gorequest.Params) (*DataCubeGetWeAnAlySisAppidWeeklyRetainInfoResult, error)

DataCubeGetWeAnAlySisAppidWeeklyRetainInfo 获取用户访问小程序周留存 https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/data-analysis/visit-retain/getWeeklyRetain.html

func (*Client) DataCubeGetWeAnAlySisAppidWeeklyVisitTrend added in v1.0.106

func (c *Client) DataCubeGetWeAnAlySisAppidWeeklyVisitTrend(ctx context.Context, beginDate, endDate string, notMustParams ...gorequest.Params) (*DataCubeGetWeAnAlySisAppidWeeklyVisitTrendResult, error)

DataCubeGetWeAnAlySisAppidWeeklyVisitTrend 获取用户访问小程序数据周趋势 https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/data-analysis/visit-trend/getWeeklyVisitTrend.html

func (*Client) DataCubeGetWeAnAlysIsAppidVisitDistribution added in v1.0.106

func (c *Client) DataCubeGetWeAnAlysIsAppidVisitDistribution(ctx context.Context, beginDate, endDate string, notMustParams ...gorequest.Params) (*DataCubeGetWeAnAlysIsAppidVisitDistributionResult, error)

DataCubeGetWeAnAlysIsAppidVisitDistribution 获取用户小程序访问分布数据 https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/data-analysis/others/getVisitDistribution.html

func (*Client) Get added in v1.0.109

func (c *Client) Get(ctx context.Context, _method string, notMustParams ...gorequest.Params) ([]byte, error)

func (*Client) GetAuthorizerAppid added in v1.0.52

func (c *Client) GetAuthorizerAppid(ctx context.Context) string

GetAuthorizerAppid 获取授权方appid

func (*Client) GetComponentAppId added in v1.0.47

func (c *Client) GetComponentAppId(ctx context.Context) string

GetComponentAppId 获取第三方平台appid

func (*Client) GetComponentAppSecret added in v1.0.52

func (c *Client) GetComponentAppSecret(ctx context.Context) string

GetComponentAppSecret 获取第三方平台app_secret

func (*Client) GetComponentVerifyTicket added in v1.0.47

func (c *Client) GetComponentVerifyTicket(ctx context.Context) string

GetComponentVerifyTicket 获取第三方平台推送ticket

func (*Client) GetLog added in v1.0.52

func (c *Client) GetLog(ctx context.Context) *golog.ApiClient

func (*Client) GetMessageKey added in v1.0.52

func (c *Client) GetMessageKey(ctx context.Context) string

GetMessageKey 获取第三方平台消息密钥

func (*Client) GetMessageToken added in v1.0.52

func (c *Client) GetMessageToken(ctx context.Context) string

GetMessageToken 获取第三方平台消息令牌

func (*Client) NewGetAuthorizerAccessToken added in v1.0.137

func (c *Client) NewGetAuthorizerAccessToken(ctx context.Context) string

NewGetAuthorizerAccessToken 获取授权方access_token

func (*Client) NewGetAuthorizerAppid added in v1.0.137

func (c *Client) NewGetAuthorizerAppid(ctx context.Context) string

NewGetAuthorizerAppid 获取授权方appid

func (*Client) NewGetAuthorizerRefreshToken added in v1.0.137

func (c *Client) NewGetAuthorizerRefreshToken(ctx context.Context) string

NewGetAuthorizerRefreshToken 获取授权方refresh_token

func (*Client) NewGetComponentAccessToken added in v1.0.137

func (c *Client) NewGetComponentAccessToken(ctx context.Context) string

NewGetComponentAccessToken 获取第三方平台access_token

func (*Client) NewGetComponentAppId added in v1.0.137

func (c *Client) NewGetComponentAppId(ctx context.Context) string

NewGetComponentAppId 获取第三方平台appid

func (*Client) NewGetComponentAppSecret added in v1.0.137

func (c *Client) NewGetComponentAppSecret(ctx context.Context) string

NewGetComponentAppSecret 获取第三方平台app_secret

func (*Client) NewGetComponentVerifyTicket added in v1.0.137

func (c *Client) NewGetComponentVerifyTicket(ctx context.Context) string

NewGetComponentVerifyTicket 获取第三方平台推送ticket

func (*Client) NewGetMessageKey added in v1.0.137

func (c *Client) NewGetMessageKey(ctx context.Context) string

NewGetMessageKey 获取第三方平台消息密钥

func (*Client) NewGetMessageToken added in v1.0.137

func (c *Client) NewGetMessageToken(ctx context.Context) string

NewGetMessageToken 获取第三方平台消息令牌

func (*Client) NewGetPreAuthCode added in v1.0.137

func (c *Client) NewGetPreAuthCode(ctx context.Context) string

NewGetPreAuthCode 获取第三方平台预授权码

func (*Client) NewSetAuthorizerAccessToken added in v1.0.137

func (c *Client) NewSetAuthorizerAccessToken(ctx context.Context, authorizerAccessToken string)

NewSetAuthorizerAccessToken 设置授权方access_token

func (*Client) NewSetAuthorizerAppid added in v1.0.137

func (c *Client) NewSetAuthorizerAppid(ctx context.Context, authorizerAppid string)

NewSetAuthorizerAppid 设置授权方appid

func (*Client) NewSetAuthorizerRefreshToken added in v1.0.137

func (c *Client) NewSetAuthorizerRefreshToken(ctx context.Context, authorizerRefreshToken string)

NewSetAuthorizerRefreshToken 设置授权方refresh_token

func (*Client) NewSetComponentAccessToken added in v1.0.137

func (c *Client) NewSetComponentAccessToken(ctx context.Context, componentAccessToken string)

NewSetComponentAccessToken 设置第三方平台access_token

func (*Client) NewSetComponentVerifyTicket added in v1.0.137

func (c *Client) NewSetComponentVerifyTicket(ctx context.Context, componentVerifyTicket string)

NewSetComponentVerifyTicket 设置第三方平台推送ticket

func (*Client) NewSetPreAuthCode added in v1.0.137

func (c *Client) NewSetPreAuthCode(ctx context.Context, preAuthCode string)

NewSetPreAuthCode 设置第三方平台预授权码

func (*Client) Post added in v1.0.109

func (c *Client) Post(ctx context.Context, _method string, notMustParams ...gorequest.Params) ([]byte, error)

func (*Client) SaveImg added in v1.0.47

func (c *Client) SaveImg(ctx context.Context, resp gorequest.Response, dir, saveName string) SaveImgResponse

func (*Client) ServeHttpAuthorizerAppid added in v1.0.47

func (c *Client) ServeHttpAuthorizerAppid(ctx context.Context, r *http.Request) (resp CgiBinComponentApiQueryAuthResponse, agentUserId string, err error)

ServeHttpAuthorizerAppid 授权跳转

func (*Client) ServeHttpGin added in v1.0.52

func (c *Client) ServeHttpGin(ctx context.Context, ginCtx *gin.Context) (ResponseServeHttpGin, error)

ServeHttpGin 验证票据推送

func (*Client) ServeHttpVerifyTicket added in v1.0.47

func (c *Client) ServeHttpVerifyTicket(ctx context.Context, r *http.Request) (resp *ResponseServeHttpVerifyTicket, err error)

ServeHttpVerifyTicket 验证票据推送

func (*Client) SignDecrypt added in v1.0.52

func (c *Client) SignDecrypt(ctx context.Context, params SignDecryptParams, strXml interface{}) (resp []byte, err error)

SignDecrypt 解密 ctx 上下文 params 入参 strXml 反射结构体 resp 加密数据 err 错误信息

func (*Client) SnsComponentJsCode2session added in v1.0.47

func (c *Client) SnsComponentJsCode2session(ctx context.Context, jsCode string, notMustParams ...gorequest.Params) (*SnsComponentJsCode2sessionResult, error)

SnsComponentJsCode2session 小程序登录 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/others/WeChat_login.html

func (*Client) TckWxPayList added in v1.0.47

func (c *Client) TckWxPayList(ctx context.Context, notMustParams ...gorequest.Params) (*TckWxPayListResult, error)

TckWxPayList 获取授权绑定的商户号列表 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/cloudbase-common/wechatpay/getWechatPayList.html

func (*Client) WxaAddToTemplate added in v1.0.47

func (c *Client) WxaAddToTemplate(ctx context.Context, draftId string, templateType int, notMustParams ...gorequest.Params) (*WxaAddToTemplateResult, error)

WxaAddToTemplate 将草稿添加到代码模板库 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/ThirdParty/code_template/addtotemplate.html

func (*Client) WxaApiWxAembeddedGetOwnList added in v1.0.87

func (c *Client) WxaApiWxAembeddedGetOwnList(ctx context.Context, notMustParams ...gorequest.Params) (*WxaApiWxAembeddedGetOwnListResult, error)

WxaApiWxAembeddedGetOwnList 获取半屏小程序授权列表 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/embedded-management/getOwnList.html

func (*Client) WxaApiWxAembeddedSetAuthorize added in v1.0.87

func (c *Client) WxaApiWxAembeddedSetAuthorize(ctx context.Context, notMustParams ...gorequest.Params) (*WxaApiWxAembeddedSetAuthorizeResult, error)

WxaApiWxAembeddedSetAuthorize 设置授权方式 checkComponentIsConfig && checkAuthorizerConfig https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/embedded-management/setAuthorizedEmbedded.html

func (*Client) WxaApiWxaembeddedAddEmbedded added in v1.0.87

func (c *Client) WxaApiWxaembeddedAddEmbedded(ctx context.Context, notMustParams ...gorequest.Params) (*WxaApiWxaembeddedAddEmbeddedResult, error)

WxaApiWxaembeddedAddEmbedded 添加半屏小程序 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/embedded-management/addEmbedded.html

func (*Client) WxaApiWxaembeddedDelEmbedded added in v1.0.87

func (c *Client) WxaApiWxaembeddedDelEmbedded(ctx context.Context, notMustParams ...gorequest.Params) (*WxaApiWxaembeddedDelEmbeddedResult, error)

WxaApiWxaembeddedDelEmbedded 删除半屏小程序 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/embedded-management/deleteEmbedded.html

func (*Client) WxaApiWxaembeddedGetList added in v1.0.87

func (c *Client) WxaApiWxaembeddedGetList(ctx context.Context, notMustParams ...gorequest.Params) (*WxaApiWxaembeddedGetListResult, error)

WxaApiWxaembeddedGetList 获取半屏小程序调用列表 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/embedded-management/getEmbeddedList.html

func (*Client) WxaBindTester added in v1.0.47

func (c *Client) WxaBindTester(ctx context.Context, wechatid string, notMustParams ...gorequest.Params) (*WxaBindTesterResult, error)

WxaBindTester 绑定微信用户为体验者 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_AdminManagement/Admin.html

func (*Client) WxaBusinessGetUserPhoneNumber added in v1.0.47

func (c *Client) WxaBusinessGetUserPhoneNumber(ctx context.Context, code string, notMustParams ...gorequest.Params) (*WxaBusinessGetUserPhoneNumberResult, error)

WxaBusinessGetUserPhoneNumber code换取用户手机号。 每个 code 只能使用一次,code的有效期为5min https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/phonenumber/phonenumber.getPhoneNumber.html

func (*Client) WxaCommit added in v1.0.47

func (c *Client) WxaCommit(ctx context.Context, notMustParams ...gorequest.Params) (*WxaCommitResult, error)

WxaCommit 上传小程序代码并生成体验版 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/commit.html

func (*Client) WxaDeleteTemplate added in v1.0.47

func (c *Client) WxaDeleteTemplate(ctx context.Context, templateId string, notMustParams ...gorequest.Params) (*WxaDeleteTemplateResult, error)

WxaDeleteTemplate 删除指定代码模板 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/ThirdParty/code_template/deletetemplate.html

func (*Client) WxaGetAuditStatus added in v1.0.47

func (c *Client) WxaGetAuditStatus(ctx context.Context, auditid int64, notMustParams ...gorequest.Params) (*WxaGetAuditStatusResult, error)

WxaGetAuditStatus 查询指定发布审核单的审核状态 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/get_auditstatus.html

func (*Client) WxaGetCategory added in v1.0.47

func (c *Client) WxaGetCategory(ctx context.Context, notMustParams ...gorequest.Params) (*WxaGetCategoryResult, error)

WxaGetCategory 获取审核时可填写的类目信息 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/category/get_category.html

func (*Client) WxaGetDefaultamsInfoAgencyGetCustomShareRatio added in v1.0.135

func (c *Client) WxaGetDefaultamsInfoAgencyGetCustomShareRatio(ctx context.Context, notMustParams ...gorequest.Params) (*WxaGetDefaultamsInfoAgencyGetCustomShareRatioResult, error)

WxaGetDefaultamsInfoAgencyGetCustomShareRatio 查询自定义分账比例 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/ams/percentage/GetCustomShareRatio.html

func (*Client) WxaGetDefaultamsInfoGetShareRatio added in v1.0.135

func (c *Client) WxaGetDefaultamsInfoGetShareRatio(ctx context.Context, notMustParams ...gorequest.Params) (*WxaGetDefaultamsInfoGetShareRatioResult, error)

WxaGetDefaultamsInfoGetShareRatio 查询分账比例 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/ams/percentage/GetShareRatio.html

func (*Client) WxaGetEffectiveDomain added in v1.0.47

func (c *Client) WxaGetEffectiveDomain(ctx context.Context, notMustParams ...gorequest.Params) (*WxaGetEffectiveDomainResult, error)

WxaGetEffectiveDomain 获取发布后生效服务器域名列表 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_Basic_Info/get_effective_domain.html

func (*Client) WxaGetLatestAuditStatus added in v1.0.47

func (c *Client) WxaGetLatestAuditStatus(ctx context.Context, notMustParams ...gorequest.Params) (*WxaGetLatestAuditStatusResult, error)

WxaGetLatestAuditStatus 查询最新一次提交的审核状态 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/get_auditstatus.html

func (*Client) WxaGetPage added in v1.0.47

func (c *Client) WxaGetPage(ctx context.Context, notMustParams ...gorequest.Params) (*WxaGetPageResult, error)

WxaGetPage 获取已上传的代码的页面列表 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/get_page.html

func (*Client) WxaGetQrcode added in v1.0.47

func (c *Client) WxaGetQrcode(ctx context.Context, path string, notMustParams ...gorequest.Params) (*WxaGetQrcodeResult, error)

WxaGetQrcode 获取体验版二维码 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/get_qrcode.html

func (*Client) WxaGetTemplateDraftList added in v1.0.47

func (c *Client) WxaGetTemplateDraftList(ctx context.Context, notMustParams ...gorequest.Params) (*WxaGetTemplateDraftListResult, error)

WxaGetTemplateDraftList 获取代码草稿列表 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/ThirdParty/code_template/gettemplatedraftlist.html

func (*Client) WxaGetTemplateList added in v1.0.47

func (c *Client) WxaGetTemplateList(ctx context.Context, notMustParams ...gorequest.Params) (*WxaGetTemplateListResult, error)

WxaGetTemplateList 获取代码模板列表 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/ThirdParty/code_template/gettemplatelist.html

func (*Client) WxaGetUserRiskRank added in v1.0.111

func (c *Client) WxaGetUserRiskRank(ctx context.Context, notMustParams ...gorequest.Params) (*WxaGetUserRiskRankResult, error)

WxaGetUserRiskRank 获取用户安全等级 https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/sec-center/safety-control-capability/getUserRiskRank.html

func (*Client) WxaGetVersionInfo added in v1.0.47

func (c *Client) WxaGetVersionInfo(ctx context.Context, notMustParams ...gorequest.Params) (*WxaGetVersionInfoResult, error)

WxaGetVersionInfo 查询小程序版本信息 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/get_versioninfo.html

func (*Client) WxaGetWxaCodeUnLimit added in v1.0.47

func (c *Client) WxaGetWxaCodeUnLimit(ctx context.Context, notMustParams ...gorequest.Params) (*WxaGetWxaCodeUnLimitResult, error)

WxaGetWxaCodeUnLimit 获取小程序码,适用于需要的码数量极多的业务场景。通过该接口生成的小程序码,永久有效,数量暂无限制 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/qr-code/wxacode.getUnlimited.html

func (*Client) WxaMediaCheckAsync added in v1.0.111

func (c *Client) WxaMediaCheckAsync(ctx context.Context, notMustParams ...gorequest.Params) (*WxaMediaCheckAsyncResult, error)

WxaMediaCheckAsync 音视频内容安全识别 https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/sec-center/sec-check/mediaCheckAsync.html

func (*Client) WxaMemberAuth added in v1.0.47

func (c *Client) WxaMemberAuth(ctx context.Context, notMustParams ...gorequest.Params) (*WxaMemberAuthResult, error)

WxaMemberAuth 获取体验者列表 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_AdminManagement/memberauth.html

func (*Client) WxaModifyDomain added in v1.0.47

func (c *Client) WxaModifyDomain(ctx context.Context, notMustParams ...gorequest.Params) (*WxaModifyDomainResult, error)

WxaModifyDomain 配置小程序服务器域名 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/domain-management/modifyServerDomain.html

func (*Client) WxaModifyDomainDirectly added in v1.0.47

func (c *Client) WxaModifyDomainDirectly(ctx context.Context, notMustParams ...gorequest.Params) (*WxaModifyDomainDirectlyResult, error)

WxaModifyDomainDirectly 快速配置小程序服务器域名 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/domain-management/modifyServerDomainDirectly.html

func (*Client) WxaMsgSecCheck added in v1.0.111

func (c *Client) WxaMsgSecCheck(ctx context.Context, notMustParams ...gorequest.Params) (*WxaMsgSecCheckResult, error)

WxaMsgSecCheck 文本内容安全识别 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/qr-code/wxacode.getUnlimited.html

func (*Client) WxaOperationamsAgencyCheckCanOpenPublisher added in v1.0.135

func (c *Client) WxaOperationamsAgencyCheckCanOpenPublisher(ctx context.Context, notMustParams ...gorequest.Params) (*WxaOperationamsAgencyCheckCanOpenPublisherResult, error)

WxaOperationamsAgencyCheckCanOpenPublisher 检测是否能开通流量主 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/ams/open/AgencyCheckCanOpenPublisher.html

func (*Client) WxaOperationamsAgencyCreatePublisher added in v1.0.135

func (c *Client) WxaOperationamsAgencyCreatePublisher(ctx context.Context, notMustParams ...gorequest.Params) (*WxaOperationamsAgencyCreatePublisherResult, error)

WxaOperationamsAgencyCreatePublisher 检测是否能开通流量主 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/ams/open/AgencyCheckCanOpenPublisher.html

func (*Client) WxaRelease added in v1.0.47

func (c *Client) WxaRelease(ctx context.Context, notMustParams ...gorequest.Params) (*WxaReleaseResult, error)

WxaRelease 发布已通过审核的小程序 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/release.html

func (*Client) WxaRevertCodeRelease added in v1.0.95

func (c *Client) WxaRevertCodeRelease(ctx context.Context, notMustParams ...gorequest.Params) (*WxaRevertCodeReleaseResult, error)

WxaRevertCodeRelease 小程序版本回退 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/code-management/revertCodeRelease.html

func (*Client) WxaSecurityApplyPrivacyInterface added in v1.0.47

func (c *Client) WxaSecurityApplyPrivacyInterface(ctx context.Context, notMustParams ...gorequest.Params) (*WxaSecurityApplyPrivacyInterfaceResult, error)

WxaSecurityApplyPrivacyInterface 申请接口 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/apply_api/apply_privacy_interface.html

func (*Client) WxaSecurityApplySetOrderPathInfo added in v1.0.52

func (c *Client) WxaSecurityApplySetOrderPathInfo(ctx context.Context, notMustParams ...gorequest.Params) (*WxaSecurityApplySetOrderPathInfoResult, error)

WxaSecurityApplySetOrderPathInfo 申请设置订单页 path 信息 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/basic-info-management/applySetOrderPathInfo.html

func (*Client) WxaSecurityGetOrderPathInfo added in v1.0.52

func (c *Client) WxaSecurityGetOrderPathInfo(ctx context.Context, infoType int, notMustParams ...gorequest.Params) (*WxaSecurityGetOrderPathInfoResult, error)

WxaSecurityGetOrderPathInfo 获取订单页 path 信息 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/basic-info-management/getOrderPathInfo.html

func (*Client) WxaSecurityGetPrivacyInterface added in v1.0.47

func (c *Client) WxaSecurityGetPrivacyInterface(ctx context.Context, notMustParams ...gorequest.Params) (*WxaSecurityGetPrivacyInterfaceResult, error)

WxaSecurityGetPrivacyInterface 获取接口列表 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/apply_api/get_privacy_interface.html

func (*Client) WxaSetDefaultamsInfoAgencySetCustomShareRatio added in v1.0.135

func (c *Client) WxaSetDefaultamsInfoAgencySetCustomShareRatio(ctx context.Context, shareRatio int64, notMustParams ...gorequest.Params) (*WxaSetDefaultamsInfoAgencySetCustomShareRatioResult, error)

WxaSetDefaultamsInfoAgencySetCustomShareRatio 设置自定义分账比例 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/ams/percentage/SetCustomShareRatio.html

func (*Client) WxaSetDefaultamsInfoSetShareRatio added in v1.0.135

func (c *Client) WxaSetDefaultamsInfoSetShareRatio(ctx context.Context, shareRatio int64, notMustParams ...gorequest.Params) (*WxaSetDefaultamsInfoSetShareRatioResult, error)

WxaSetDefaultamsInfoSetShareRatio 设置默认分账比例 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/ams/percentage/SetShareRatio.html

func (*Client) WxaSetWebViewDoMain added in v1.0.52

func (c *Client) WxaSetWebViewDoMain(ctx context.Context, notMustParams ...gorequest.Params) (*WxaSetWebViewDoMainResult, error)

WxaSetWebViewDoMain 配置小程序业务域名 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/domain-management/modifyJumpDomain.html

func (*Client) WxaSubmitAudit added in v1.0.47

func (c *Client) WxaSubmitAudit(ctx context.Context, notMustParams ...gorequest.Params) (*WxaSubmitAuditResult, error)

WxaSubmitAudit 提交审核 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/submit_audit.html

func (*Client) WxaUnbindTester added in v1.0.47

func (c *Client) WxaUnbindTester(ctx context.Context, wechatid, userstr string, notMustParams ...gorequest.Params) (*WxaUnbindTesterResult, error)

WxaUnbindTester 解除绑定体验者 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_AdminManagement/unbind_tester.html

type ClientConfig added in v1.0.52

type ClientConfig struct {
	ComponentAppId      string              `json:"component_app_id"`       // 第三方平台appid
	ComponentAppSecret  string              `json:"component_app_secret"`   // 第三方平台app_secret
	MessageToken        string              `json:"message_token"`          // 第三方平台消息令牌
	MessageKey          string              `json:"message_key"`            // 第三方平台消息密钥
	RedisClient         *dorm.RedisClient   `json:"redis_client"`           // 缓存数据库
	RedisCachePrefixFun redisCachePrefixFun `json:"redis_cache_prefix_fun"` // 缓存前缀
}

ClientConfig 实例配置

type DataCubeGetWeAnAlySisAppidDailyRetainInfoResponse added in v1.0.106

type DataCubeGetWeAnAlySisAppidDailyRetainInfoResponse struct {
	RefDate    string `json:"ref_date"` // 日期
	VisitUvNew []struct {
		Key   int64 `json:"key"`
		Value int64 `json:"value"`
	} `json:"visit_uv_new"` // 新增用户留存
	VisitUv []struct {
		Key   int64 `json:"key"`
		Value int64 `json:"value"`
	} `json:"visit_uv"` // 活跃用户留存
}

type DataCubeGetWeAnAlySisAppidDailyRetainInfoResult added in v1.0.106

type DataCubeGetWeAnAlySisAppidDailyRetainInfoResult struct {
	Result DataCubeGetWeAnAlySisAppidDailyRetainInfoResponse // 结果
	Body   []byte                                            // 内容
	Http   gorequest.Response                                // 请求
}

type DataCubeGetWeAnAlySisAppidDailySummaryTrendResponse added in v1.0.106

type DataCubeGetWeAnAlySisAppidDailySummaryTrendResponse struct {
	List []struct {
		RefDate    string `json:"ref_date"`    // 日期
		VisitTotal int64  `json:"visit_total"` // 累计用户数
		SharePv    int64  `json:"share_pv"`    // 转发次数
		ShareUv    int64  `json:"share_uv"`    // 转发人数
	} `json:"list"` // 数据列表
}

type DataCubeGetWeAnAlySisAppidDailySummaryTrendResult added in v1.0.106

type DataCubeGetWeAnAlySisAppidDailySummaryTrendResult struct {
	Result DataCubeGetWeAnAlySisAppidDailySummaryTrendResponse // 结果
	Body   []byte                                              // 内容
	Http   gorequest.Response                                  // 请求
}

type DataCubeGetWeAnAlySisAppidDailyVisitTrendResponse added in v1.0.106

type DataCubeGetWeAnAlySisAppidDailyVisitTrendResponse struct {
	List []struct {
		RefDate         string  `json:"ref_date"`          // 时间
		SessionCnt      int64   `json:"session_cnt"`       // 打开次数(自然周内汇总)
		VisitPv         int64   `json:"visit_pv"`          // 访问次数(自然周内汇总)
		VisitUv         int64   `json:"visit_uv"`          // 访问人数(自然周内去重)
		VisitUvNew      int64   `json:"visit_uv_new"`      // 新用户数(自然周内去重)
		StayTimeUv      float64 `json:"stay_time_uv"`      // 人均停留时长 (浮点型,单位:秒)
		StayTimeSession float64 `json:"stay_time_session"` // 次均停留时长 (浮点型,单位:秒)
		VisitDepth      float64 `json:"visit_depth"`       // 平均访问深度 (浮点型)
	} `json:"list"` // 数据列表
}

type DataCubeGetWeAnAlySisAppidDailyVisitTrendResult added in v1.0.106

type DataCubeGetWeAnAlySisAppidDailyVisitTrendResult struct {
	Result DataCubeGetWeAnAlySisAppidDailyVisitTrendResponse // 结果
	Body   []byte                                            // 内容
	Http   gorequest.Response                                // 请求
}

type DataCubeGetWeAnAlySisAppidMonthlyRetainInfoResponse added in v1.0.106

type DataCubeGetWeAnAlySisAppidMonthlyRetainInfoResponse struct {
	RefDate    string `json:"ref_date"` // 日期
	VisitUvNew []struct {
		Key   int64 `json:"key"`
		Value int64 `json:"value"`
	} `json:"visit_uv_new"` // 新增用户留存
	VisitUv []struct {
		Key   int64 `json:"key"`
		Value int64 `json:"value"`
	} `json:"visit_uv"` // 活跃用户留存
}

type DataCubeGetWeAnAlySisAppidMonthlyRetainInfoResult added in v1.0.106

type DataCubeGetWeAnAlySisAppidMonthlyRetainInfoResult struct {
	Result DataCubeGetWeAnAlySisAppidMonthlyRetainInfoResponse // 结果
	Body   []byte                                              // 内容
	Http   gorequest.Response                                  // 请求
}

type DataCubeGetWeAnAlySisAppidMonthlyVisitTrendResponse added in v1.0.106

type DataCubeGetWeAnAlySisAppidMonthlyVisitTrendResponse struct {
	List []struct {
		RefDate         string  `json:"ref_date"`          // 时间
		SessionCnt      int64   `json:"session_cnt"`       // 打开次数(自然周内汇总)
		VisitPv         int64   `json:"visit_pv"`          // 访问次数(自然周内汇总)
		VisitUv         int64   `json:"visit_uv"`          // 访问人数(自然周内去重)
		VisitUvNew      int64   `json:"visit_uv_new"`      // 新用户数(自然周内去重)
		StayTimeUv      float64 `json:"stay_time_uv"`      // 人均停留时长 (浮点型,单位:秒)
		StayTimeSession float64 `json:"stay_time_session"` // 次均停留时长 (浮点型,单位:秒)
		VisitDepth      float64 `json:"visit_depth"`       // 平均访问深度 (浮点型)
	} `json:"list"` // 数据列表
}

type DataCubeGetWeAnAlySisAppidMonthlyVisitTrendResult added in v1.0.106

type DataCubeGetWeAnAlySisAppidMonthlyVisitTrendResult struct {
	Result DataCubeGetWeAnAlySisAppidMonthlyVisitTrendResponse // 结果
	Body   []byte                                              // 内容
	Http   gorequest.Response                                  // 请求
}

type DataCubeGetWeAnAlySisAppidUserPortraitResponse added in v1.0.106

type DataCubeGetWeAnAlySisAppidUserPortraitResponse struct {
	RefDate    string `json:"ref_date"` // 时间范围
	VisitUvNew struct {
		Province []struct {
			Id    int64  `json:"id"`
			Name  string `json:"name"`
			Value int64  `json:"value"`
		} `json:"province"` // 分布类型
		City []struct {
			Id    int64  `json:"id"`
			Name  string `json:"name"`
			Value int64  `json:"value"`
		} `json:"city"` // 省份
		Genders []struct {
			Id    int64  `json:"id"`
			Name  string `json:"name"`
			Value int64  `json:"value"`
		} `json:"genders"` // 城市
		Platforms []struct {
			Id    int64  `json:"id"`
			Name  string `json:"name"`
			Value int64  `json:"value"`
		} `json:"platforms"` // 性别
		Devices []struct {
			Name  string `json:"name"`
			Value int64  `json:"value"`
		} `json:"devices"` // 终端类型
		Ages []struct {
			Id    int64  `json:"id"`
			Name  string `json:"name"`
			Value int64  `json:"value"`
		} `json:"ages"` // 年龄
	} `json:"visit_uv_new"` // 新用户画像
	VisitUv struct {
		Province []struct {
			Id    int64  `json:"id"`
			Name  string `json:"name"`
			Value int64  `json:"value"`
		} `json:"province"` // 分布类型
		City []struct {
			Id    int64  `json:"id"`
			Name  string `json:"name"`
			Value int64  `json:"value"`
		} `json:"city"` // 省份
		Genders []struct {
			Id    int64  `json:"id"`
			Name  string `json:"name"`
			Value int64  `json:"value"`
		} `json:"genders"` // 城市
		Platforms []struct {
			Id    int64  `json:"id"`
			Name  string `json:"name"`
			Value int64  `json:"value"`
		} `json:"platforms"` // 性别
		Devices []struct {
			Name  string `json:"name"`
			Value int64  `json:"value"`
		} `json:"devices"` // 终端类型
		Ages []struct {
			Id    int64  `json:"id"`
			Name  string `json:"name"`
			Value int64  `json:"value"`
		} `json:"ages"` // 年龄
	} `json:"visit_uv"` // 活跃用户画像
}

type DataCubeGetWeAnAlySisAppidUserPortraitResult added in v1.0.106

type DataCubeGetWeAnAlySisAppidUserPortraitResult struct {
	Result DataCubeGetWeAnAlySisAppidUserPortraitResponse // 结果
	Body   []byte                                         // 内容
	Http   gorequest.Response                             // 请求
}

type DataCubeGetWeAnAlySisAppidVisitPageResponse added in v1.0.106

type DataCubeGetWeAnAlySisAppidVisitPageResponse struct {
	RefDate string `json:"ref_date"` // 日期
	List    []struct {
		PagePath       string  `json:"page_path"`        // 页面路径
		PageVisitPv    int64   `json:"page_visit_pv"`    // 访问次数
		PageVisitUv    int64   `json:"page_visit_uv"`    // 访问人数
		PageStaytimePv float64 `json:"page_staytime_pv"` // 次均停留时长
		EntrypagePv    int64   `json:"entrypage_pv"`     // 进入页次数
		ExitpagePv     int64   `json:"exitpage_pv"`      // 退出页次数
		PageSharePv    int64   `json:"page_share_pv"`    // 转发次数
		PageShareUv    int64   `json:"page_share_uv"`    // 转发人数
	} `json:"list"` // 数据列表
}

type DataCubeGetWeAnAlySisAppidVisitPageResult added in v1.0.106

type DataCubeGetWeAnAlySisAppidVisitPageResult struct {
	Result DataCubeGetWeAnAlySisAppidVisitPageResponse // 结果
	Body   []byte                                      // 内容
	Http   gorequest.Response                          // 请求
}

type DataCubeGetWeAnAlySisAppidWeeklyRetainInfoResponse added in v1.0.106

type DataCubeGetWeAnAlySisAppidWeeklyRetainInfoResponse struct {
	RefDate    string `json:"ref_date"` // 日期
	VisitUvNew []struct {
		Key   int64 `json:"key"`
		Value int64 `json:"value"`
	} `json:"visit_uv_new"` // 新增用户留存
	VisitUv []struct {
		Key   int64 `json:"key"`
		Value int64 `json:"value"`
	} `json:"visit_uv"` // 活跃用户留存
}

type DataCubeGetWeAnAlySisAppidWeeklyRetainInfoResult added in v1.0.106

type DataCubeGetWeAnAlySisAppidWeeklyRetainInfoResult struct {
	Result DataCubeGetWeAnAlySisAppidWeeklyRetainInfoResponse // 结果
	Body   []byte                                             // 内容
	Http   gorequest.Response                                 // 请求
}

type DataCubeGetWeAnAlySisAppidWeeklyVisitTrendResponse added in v1.0.106

type DataCubeGetWeAnAlySisAppidWeeklyVisitTrendResponse struct {
	List []struct {
		RefDate         string  `json:"ref_date"`          // 时间
		SessionCnt      int64   `json:"session_cnt"`       // 打开次数(自然周内汇总)
		VisitPv         int64   `json:"visit_pv"`          // 访问次数(自然周内汇总)
		VisitUv         int64   `json:"visit_uv"`          // 访问人数(自然周内去重)
		VisitUvNew      int64   `json:"visit_uv_new"`      // 新用户数(自然周内去重)
		StayTimeUv      float64 `json:"stay_time_uv"`      // 人均停留时长 (浮点型,单位:秒)
		StayTimeSession float64 `json:"stay_time_session"` // 次均停留时长 (浮点型,单位:秒)
		VisitDepth      float64 `json:"visit_depth"`       // 平均访问深度 (浮点型)
	} `json:"list"` // 数据列表
}

type DataCubeGetWeAnAlySisAppidWeeklyVisitTrendResult added in v1.0.106

type DataCubeGetWeAnAlySisAppidWeeklyVisitTrendResult struct {
	Result DataCubeGetWeAnAlySisAppidWeeklyVisitTrendResponse // 结果
	Body   []byte                                             // 内容
	Http   gorequest.Response                                 // 请求
}

type DataCubeGetWeAnAlysIsAppidVisitDistributionResponse added in v1.0.106

type DataCubeGetWeAnAlysIsAppidVisitDistributionResponse struct {
	RefDate string `json:"ref_date"` // 日期
	List    []struct {
		Index    string `json:"index"` // 分布类型。枚举值为:access_source_session_cnt(访问来源分布)、access_staytime_info(访问时长分布)、access_depth_info(访问深度的分布 )
		ItemList []struct {
			Key   int64 `json:"key"`   // 场景 id,定义在各个 index 下不同,具体参见下方表格
			Value int64 `json:"value"` // 该场景 id 访问 pv
		} `json:"item_list"` // 分布数据列表
	} `json:"list"` // 数据列表
}

type DataCubeGetWeAnAlysIsAppidVisitDistributionResult added in v1.0.106

type DataCubeGetWeAnAlysIsAppidVisitDistributionResult struct {
	Result DataCubeGetWeAnAlysIsAppidVisitDistributionResponse // 结果
	Body   []byte                                              // 内容
	Http   gorequest.Response                                  // 请求
}

type GetCallBackIpResponse

type GetCallBackIpResponse struct {
	IpList []string `json:"ip_list"`
}

type GetCallBackIpResult

type GetCallBackIpResult struct {
	Result GetCallBackIpResponse // 结果
	Body   []byte                // 内容
	Http   gorequest.Response    // 请求
}

func NewGetCallBackIpResult

func NewGetCallBackIpResult(result GetCallBackIpResponse, body []byte, http gorequest.Response) *GetCallBackIpResult

type ResponseServeHttpGin added in v1.0.52

type ResponseServeHttpGin struct {
	MsgSignature string // 签名串,对应 URL 参数的msg_signature
	Timestamp    string // 时间戳,对应 URL 参数的timestamp
	Nonce        string // 随机串,对应 URL 参数的nonce
	Signature    string
	EncryptType  string // 加密类型
	AppId        string // 第三方平台 appid
	Encrypt      string // 加密内容
}

ResponseServeHttpGin 推送信息

type ResponseServeHttpVerifyTicket

type ResponseServeHttpVerifyTicket struct {
	XMLName               xml.Name
	AppId                 string `xml:"appId" json:"appId"`                                 // 第三方平台 appid
	CreateTime            int64  `xml:"CreateTime" json:"CreateTime"`                       // 时间戳,单位:s
	InfoType              string `xml:"InfoType" json:"InfoType"`                           // 固定为:"component_verify_ticket"
	ComponentVerifyTicket string `xml:"ComponentVerifyTicket" json:"ComponentVerifyTicket"` // Ticket 内容
}

ResponseServeHttpVerifyTicket 验证票据推送

type SaveImgResponse added in v1.0.47

type SaveImgResponse struct {
	Path string
	Name string
}

type SignDecryptAuthorizeEvent added in v1.0.52

type SignDecryptAuthorizeEvent struct {
	XMLName                      xml.Name
	AppId                        string `xml:"appId,omitempty"`                        // 第三方平台 appid
	CreateTime                   int64  `xml:"CreateTime,omitempty"`                   // 时间戳,单位:s
	InfoType                     string `xml:"InfoType,omitempty"`                     // 通知类型 unauthorized=取消授权 updateauthorized=更新授权 authorized=授权成功
	AuthorizerAppid              string `xml:"AuthorizerAppid,omitempty"`              // 公众号或小程序的 appid
	AuthorizationCode            string `xml:"AuthorizationCode,omitempty"`            // 授权码,可用于获取授权信息
	AuthorizationCodeExpiredTime string `xml:"AuthorizationCodeExpiredTime,omitempty"` // 授权码过期时间 单位秒
	PreAuthCode                  string `xml:"PreAuthCode,omitempty"`                  // 预授权码
}

SignDecryptAuthorizeEvent 授权变更通知推送 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Before_Develop/authorize_event.html

type SignDecryptComponentVerifyTicket added in v1.0.52

type SignDecryptComponentVerifyTicket struct {
	XMLName               xml.Name
	AppId                 string `xml:"appId,omitempty"`                 // 第三方平台 appid
	CreateTime            int64  `xml:"CreateTime,omitempty"`            // 时间戳,单位:s
	InfoType              string `xml:"InfoType,omitempty"`              // 固定为:"component_verify_ticket"
	ComponentVerifyTicket string `xml:"ComponentVerifyTicket,omitempty"` // Ticket 内容
}

SignDecryptComponentVerifyTicket 验证票据 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Before_Develop/component_verify_ticket.html

type SignDecryptNotifyThirdFastRegisterBetaApp added in v1.0.52

type SignDecryptNotifyThirdFastRegisterBetaApp struct {
	XMLName    xml.Name
	AppId      string `xml:"AppId,omitempty"`      // 第三方平台 appid
	CreateTime int64  `xml:"CreateTime,omitempty"` // 时间戳,单位:s
	InfoType   string `xml:"InfoType,omitempty"`   // 类型
	Appid      string `xml:"appid,omitempty"`      // 创建小程序appid
	Status     int64  `xml:"status,omitempty"`     // 状态
	Msg        string `xml:"msg,omitempty"`        // 信息
	Info       struct {
		UniqueId string `xml:"unique_id,omitempty"`
		Name     string `xml:"name,omitempty"` // 小程序名称
	} `xml:"info,omitempty"`
}

SignDecryptNotifyThirdFastRegisterBetaApp 注册试用小程序 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/register-management/fast-regist-beta/registerBetaMiniprogram.html

type SignDecryptNotifyThirdFastVerifyBetaApp added in v1.0.52

type SignDecryptNotifyThirdFastVerifyBetaApp struct {
	XMLName    xml.Name
	AppId      string `xml:"AppId,omitempty"`      // 第三方平台 appid
	CreateTime int64  `xml:"CreateTime,omitempty"` // 时间戳,单位:s
	InfoType   string `xml:"InfoType,omitempty"`   // 类型
	Appid      string `xml:"appid,omitempty"`      // 创建小程序appid
	Status     int64  `xml:"status,omitempty"`     // 状态
	Msg        string `xml:"msg,omitempty"`        // 信息
	Info       struct {
		Name               string `xml:"name,omitempty"` // 企业名称
		Code               string `xml:"code,omitempty"` // 企业代码
		CodeType           string `xml:"code_type,omitempty"`
		LegalPersonaWechat string `xml:"legal_persona_wechat,omitempty"` // 法人微信号
		LegalPersonaName   string `xml:"legal_persona_name,omitempty"`   // 法人姓名
		ComponentPhone     string `xml:"component_phone,omitempty"`      // 第三方联系电话
	} `xml:"info,omitempty"`
}

SignDecryptNotifyThirdFastVerifyBetaApp 试用小程序快速认证 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/register-management/fast-regist-beta/verfifyBetaMiniprogram.html

type SignDecryptNotifyThirdFasteRegister added in v1.0.52

type SignDecryptNotifyThirdFasteRegister struct {
	XMLName    xml.Name
	AppId      string `xml:"AppId,omitempty"`      // 第三方平台 appid
	CreateTime int64  `xml:"CreateTime,omitempty"` // 时间戳,单位:s
	InfoType   string `xml:"InfoType,omitempty"`   // 类型
	Appid      string `xml:"appid,omitempty"`      // 创建小程序appid
	Status     int64  `xml:"status,omitempty"`     // 状态
	AuthCode   string `xml:"auth_code,omitempty"`  // 第三方授权码
	Msg        string `xml:"msg,omitempty"`        // 信息
	Info       struct {
		Name               string `xml:"name,omitempty"` // 企业名称
		Code               string `xml:"code,omitempty"` // 企业代码
		CodeType           string `xml:"code_type,omitempty"`
		LegalPersonaWechat string `xml:"legal_persona_wechat,omitempty"` // (企业)法人微信号
		LegalPersonaName   string `xml:"legal_persona_name,omitempty"`   // (企业)法人姓名
		ComponentPhone     string `xml:"component_phone,omitempty"`      // (企业/个人)第三方联系电话
		Wxuser             string `xml:"wxuser"`                         // (个人)用户微信号
		Idname             string `xml:"idname"`                         // (个人)用户姓名
	} `xml:"info,omitempty"`
}

SignDecryptNotifyThirdFasteRegister 快速注册企业/个人小程序 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Register_Mini_Programs/Fast_Registration_Interface_document.html https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/register-management/fast-registration-ind/fastRegisterPersonalMp.html

type SignDecryptParams added in v1.0.52

type SignDecryptParams struct {
	Signature    string // 签名串,对应 URL 参数的msg_signature
	Timestamp    string // 时间戳,对应 URL 参数的timestamp
	Nonce        string // 随机串,对应 URL 参数的nonce
	EncryptType  string // 加密类型
	MsgSignature string
	AppId        string // 第三方平台 appid
	Encrypt      string // 加密内容
}

SignDecryptParams 入参

type SignDecryptWeAppAudit added in v1.0.52

type SignDecryptWeAppAudit struct {
	XMLName      xml.Name
	ToUserName   string `xml:"ToUserName,omitempty"`   // 小程序的原始 ID
	FromUserName string `xml:"FromUserName,omitempty"` // 发送方帐号(一个 OpenID,此时发送方是系统帐号)
	CreateTime   int64  `xml:"CreateTime,omitempty"`   // 消息创建时间 (整型),时间戳
	MsgType      string `xml:"MsgType,omitempty"`      // 消息类型 event
	Event        string `xml:"Event,omitempty"`        // 事件类型 weapp_audit_success=审核通过 weapp_audit_fail=审核不通过 weapp_audit_delay=审核延后
	SuccTime     int64  `xml:"SuccTime,omitempty"`     // 审核成功时的时间戳
	FailTime     int64  `xml:"FailTime,omitempty"`     // 审核不通过的时间戳
	DelayTime    int64  `xml:"DelayTime,omitempty"`    // 审核延后时的时间戳
	Reason       string `xml:"reason,omitempty"`       // 审核不通过的原因
	ScreenShot   string `xml:"ScreenShot,omitempty"`   // 审核不通过的截图示例。用 | 分隔的 media_id 的列表,可通过获取永久素材接口拉取截图内容
}

SignDecryptWeAppAudit 代码审核结果推送 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/code-management/submitAudit.html

type SignDecryptWxaNicknameAudit added in v1.0.52

type SignDecryptWxaNicknameAudit struct {
	XMLName      xml.Name
	ToUserName   string `xml:"ToUserName,omitempty"`   // 小程序的原始 ID
	FromUserName string `xml:"FromUserName,omitempty"` // 发送方帐号(一个 OpenID,此时发送方是系统帐号)
	CreateTime   int64  `xml:"CreateTime,omitempty"`   // 消息创建时间 (整型),时间戳
	MsgType      string `xml:"MsgType,omitempty"`      // 消息类型 event
	Event        string `xml:"Event,omitempty"`        // 事件类型
	Ret          string `xml:"ret,omitempty"`          // 审核结果 2:失败,3:成功
	Nickname     string `xml:"nickname,omitempty"`     // 需要更改的昵称
	Reason       string `xml:"reason,omitempty"`       // 审核失败的驳回原因
}

SignDecryptWxaNicknameAudit 名称审核结果事件推送 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/basic-info-management/setNickName.html

type SignDecryptWxaSecurityApplySetOrderPathInfo added in v1.0.52

type SignDecryptWxaSecurityApplySetOrderPathInfo struct {
	XMLName   xml.Name
	List      string `xml:"List,omitempty"`      // 申请结果列表
	Appid     string `xml:"Appid,omitempty"`     // 申请的appid
	AuditId   string `xml:"AuditId,omitempty"`   // 审核单id
	Status    string `xml:"Status,omitempty"`    // 订单页 path 状态
	ApplyTime int64  `xml:"ApplyTime,omitempty"` // 申请时间
	AuditTime int64  `xml:"AuditTime,omitempty"` // 审核时间
	Reason    string `xml:"Reason,omitempty"`    // 审核原因
}

SignDecryptWxaSecurityApplySetOrderPathInfo 申请设置订单页 path 信息 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/basic-info-management/applySetOrderPathInfo.html

type SnsComponentJsCode2sessionResponse

type SnsComponentJsCode2sessionResponse struct {
	Openid     string `json:"openid"`      // 用户唯一标识的 openid
	SessionKey string `json:"session_key"` // 会话密钥
	Unionid    string `json:"unionid"`     // 用户在开放平台的唯一标识符,在满足 UnionID 下发条件的情况下会返回,详见 UnionID 机制说明。
}

type SnsComponentJsCode2sessionResult

type SnsComponentJsCode2sessionResult struct {
	Result SnsComponentJsCode2sessionResponse // 结果
	Body   []byte                             // 内容
	Http   gorequest.Response                 // 请求
}

func (*SnsComponentJsCode2sessionResult) UserInfo

UserInfo 解密用户信息

type TckWxPayListResponse added in v1.0.47

type TckWxPayListResponse struct {
	Errcode int    `json:"errcode"`
	Errmsg  string `json:"errmsg"`
	List    []struct {
		MerchantCode     string `json:"merchant_code"`
		MerchantName     string `json:"merchant_name"`
		CompanyName      string `json:"company_name"`
		MchRelationState string `json:"mch_relation_state"`
		JsapiAuthState   string `json:"jsapi_auth_state"`
		RefundAuthState  string `json:"refund_auth_state"`
	} `json:"list"`
}

type TckWxPayListResult added in v1.0.47

type TckWxPayListResult struct {
	Result TckWxPayListResponse // 结果
	Body   []byte               // 内容
	Http   gorequest.Response   // 请求
}

func (*TckWxPayListResult) ErrcodeInfo added in v1.0.47

func (resp *TckWxPayListResult) ErrcodeInfo() string

ErrcodeInfo 错误描述

type UserInfo

type UserInfo struct {
	SessionKey    string `json:"session_key"`
	EncryptedData string `json:"encrypted_data"`
	Iv            string `json:"iv"`
}

type UserInfoResponse

type UserInfoResponse struct {
	OpenId    string `json:"openId"`
	NickName  string `json:"nickName"`
	Gender    int    `json:"gender"`
	City      string `json:"city"`
	Province  string `json:"province"`
	Country   string `json:"country"`
	AvatarUrl string `json:"avatarUrl"`
	UnionId   string `json:"unionId"`
	Watermark struct {
		AppID     string `json:"appid"`
		Timestamp int64  `json:"timestamp"`
	} `json:"watermark"`
}

func (*UserInfoResponse) UserInfoAvatarUrlReal

func (u *UserInfoResponse) UserInfoAvatarUrlReal() string

type UserInfoResult

type UserInfoResult struct {
	Result UserInfoResponse // 结果
	Err    error            // 错误
}

func DecryptionUserInfo added in v1.0.105

func DecryptionUserInfo(param UserInfo) *UserInfoResult

DecryptionUserInfo 解密用户信息

type WxaAddToTemplateResponse added in v1.0.47

type WxaAddToTemplateResponse struct {
	Errcode int    `json:"errcode"` // 错误码
	Errmsg  string `json:"errmsg"`  // 错误信息
}

type WxaAddToTemplateResult added in v1.0.47

type WxaAddToTemplateResult struct {
	Result WxaAddToTemplateResponse // 结果
	Body   []byte                   // 内容
	Http   gorequest.Response       // 请求
}

func (*WxaAddToTemplateResult) ErrcodeInfo added in v1.0.47

func (resp *WxaAddToTemplateResult) ErrcodeInfo() string

ErrcodeInfo 错误描述

type WxaApiWxAembeddedGetOwnListResponse added in v1.0.87

type WxaApiWxAembeddedGetOwnListResponse struct {
	Errcode         int    `json:"errcode"`       // 错误码
	Errmsg          string `json:"errmsg"`        // 错误信息
	EmbeddedFlag    int    `json:"embedded_flag"` // 授权方式。0表示需要管理员确认,1表示自动通过,2表示自动拒绝
	WxaEmbeddedList []struct {
		Appid       string `json:"appid"`       // 半屏小程序appid
		Create_time int64  `json:"create_time"` // 添加时间
		Headimg     string `json:"headimg"`     // 头像url
		Nickname    string `json:"nickname"`    // 半屏小程序昵称
		Reason      string `json:"reason"`      // 申请理由
		Status      string `json:"status"`      // 申请状态
	} `json:"wxa_embedded_list"` // 半屏小程序列表
}

type WxaApiWxAembeddedGetOwnListResult added in v1.0.87

type WxaApiWxAembeddedGetOwnListResult struct {
	Result WxaApiWxAembeddedGetOwnListResponse // 结果
	Body   []byte                              // 内容
	Http   gorequest.Response                  // 请求
}

func (*WxaApiWxAembeddedGetOwnListResult) ErrcodeInfo added in v1.0.87

func (resp *WxaApiWxAembeddedGetOwnListResult) ErrcodeInfo() string

ErrcodeInfo 错误描述

type WxaApiWxAembeddedSetAuthorizeResponse added in v1.0.87

type WxaApiWxAembeddedSetAuthorizeResponse struct {
	Errcode int    `json:"errcode"` // 返回码
	Errmsg  string `json:"errmsg"`  // 返回码信息
}

type WxaApiWxAembeddedSetAuthorizeResult added in v1.0.87

type WxaApiWxAembeddedSetAuthorizeResult struct {
	Result WxaApiWxAembeddedSetAuthorizeResponse // 结果
	Body   []byte                                // 内容
	Http   gorequest.Response                    // 请求
}

func (*WxaApiWxAembeddedSetAuthorizeResult) ErrcodeInfo added in v1.0.87

func (resp *WxaApiWxAembeddedSetAuthorizeResult) ErrcodeInfo() string

ErrcodeInfo 错误描述

type WxaApiWxaembeddedAddEmbeddedResponse added in v1.0.87

type WxaApiWxaembeddedAddEmbeddedResponse struct {
	Errcode int    `json:"errcode"` // 返回码
	Errmsg  string `json:"errmsg"`  // 返回码信息
}

type WxaApiWxaembeddedAddEmbeddedResult added in v1.0.87

type WxaApiWxaembeddedAddEmbeddedResult struct {
	Result WxaApiWxaembeddedAddEmbeddedResponse // 结果
	Body   []byte                               // 内容
	Http   gorequest.Response                   // 请求
}

func (*WxaApiWxaembeddedAddEmbeddedResult) ErrcodeInfo added in v1.0.87

func (resp *WxaApiWxaembeddedAddEmbeddedResult) ErrcodeInfo() string

ErrcodeInfo 错误描述

type WxaApiWxaembeddedDelAuthorizeResponse added in v1.0.87

type WxaApiWxaembeddedDelAuthorizeResponse struct {
	Errcode int    `json:"errcode"` // 返回码
	Errmsg  string `json:"errmsg"`  // 返回码信息
}

type WxaApiWxaembeddedDelAuthorizeResult added in v1.0.87

type WxaApiWxaembeddedDelAuthorizeResult struct {
	Result WxaApiWxaembeddedDelAuthorizeResponse // 结果
	Body   []byte                                // 内容
	Http   gorequest.Response                    // 请求
}

func (*WxaApiWxaembeddedDelAuthorizeResult) ErrcodeInfo added in v1.0.87

func (resp *WxaApiWxaembeddedDelAuthorizeResult) ErrcodeInfo() string

ErrcodeInfo 错误描述

type WxaApiWxaembeddedDelEmbeddedResponse added in v1.0.87

type WxaApiWxaembeddedDelEmbeddedResponse struct {
	Errcode int    `json:"errcode"` // 返回码
	Errmsg  string `json:"errmsg"`  // 返回码信息
}

type WxaApiWxaembeddedDelEmbeddedResult added in v1.0.87

type WxaApiWxaembeddedDelEmbeddedResult struct {
	Result WxaApiWxaembeddedDelEmbeddedResponse // 结果
	Body   []byte                               // 内容
	Http   gorequest.Response                   // 请求
}

func (*WxaApiWxaembeddedDelEmbeddedResult) ErrcodeInfo added in v1.0.87

func (resp *WxaApiWxaembeddedDelEmbeddedResult) ErrcodeInfo() string

ErrcodeInfo 错误描述

type WxaApiWxaembeddedGetListResponse added in v1.0.87

type WxaApiWxaembeddedGetListResponse struct {
	Errcode         int    `json:"errcode"`       // 错误码
	Errmsg          string `json:"errmsg"`        // 错误信息
	EmbeddedFlag    int    `json:"embedded_flag"` // 授权方式。0表示需要管理员确认,1表示自动通过,2表示自动拒绝
	WxaEmbeddedList []struct {
		Appid       string `json:"appid"`       // 半屏小程序appid
		Create_time int64  `json:"create_time"` // 添加时间
		Headimg     string `json:"headimg"`     // 头像url
		Nickname    string `json:"nickname"`    // 半屏小程序昵称
		Reason      string `json:"reason"`      // 申请理由
		Status      string `json:"status"`      // 申请状态
	} `json:"wxa_embedded_list"` // 半屏小程序列表
}

type WxaApiWxaembeddedGetListResult added in v1.0.87

type WxaApiWxaembeddedGetListResult struct {
	Result WxaApiWxaembeddedGetListResponse // 结果
	Body   []byte                           // 内容
	Http   gorequest.Response               // 请求
}

func (*WxaApiWxaembeddedGetListResult) ErrcodeInfo added in v1.0.87

func (resp *WxaApiWxaembeddedGetListResult) ErrcodeInfo() string

ErrcodeInfo 错误描述

type WxaBindTesterResponse

type WxaBindTesterResponse struct {
	Errcode int    `json:"errcode"` // 错误码
	Errmsg  string `json:"errmsg"`  // 错误信息
	Userstr string `json:"userstr"` // 人员对应的唯一字符串
}

type WxaBindTesterResult

type WxaBindTesterResult struct {
	Result WxaBindTesterResponse // 结果
	Body   []byte                // 内容
	Http   gorequest.Response    // 请求
}

func (*WxaBindTesterResult) ErrcodeInfo

func (resp *WxaBindTesterResult) ErrcodeInfo() string

ErrcodeInfo 错误描述

type WxaBusinessGetUserPhoneNumberResponse added in v1.0.47

type WxaBusinessGetUserPhoneNumberResponse struct {
	Errcode   int    `json:"errcode"`
	Errmsg    string `json:"errmsg"`
	PhoneInfo struct {
		PhoneNumber     string `json:"phoneNumber"`     // 用户绑定的手机号(国外手机号会有区号)
		PurePhoneNumber string `json:"purePhoneNumber"` // 没有区号的手机号
		CountryCode     string `json:"countryCode"`     // 区号
		Watermark       struct {
			Timestamp int    `json:"timestamp"` // 用户获取手机号操作的时间戳
			Appid     string `json:"appid"`     // 小程序appid
		} `json:"watermark"` // 数据水印
	} `json:"phone_info"` // 用户手机号信息
}

type WxaBusinessGetUserPhoneNumberResult added in v1.0.47

type WxaBusinessGetUserPhoneNumberResult struct {
	Result WxaBusinessGetUserPhoneNumberResponse // 结果
	Body   []byte                                // 内容
	Http   gorequest.Response                    // 请求
}

func (*WxaBusinessGetUserPhoneNumberResult) ErrcodeInfo added in v1.0.47

func (resp *WxaBusinessGetUserPhoneNumberResult) ErrcodeInfo() string

ErrcodeInfo 错误描述

type WxaCommitResponse

type WxaCommitResponse struct {
	Errcode int    `json:"errcode"`
	Errmsg  string `json:"errmsg"`
}

type WxaCommitResult

type WxaCommitResult struct {
	Result WxaCommitResponse  // 结果
	Body   []byte             // 内容
	Http   gorequest.Response // 请求
}

func (*WxaCommitResult) ErrcodeInfo

func (resp *WxaCommitResult) ErrcodeInfo() string

ErrcodeInfo 错误描述

type WxaDeleteTemplateResponse

type WxaDeleteTemplateResponse struct {
	Errcode int    `json:"errcode"`
	Errmsg  string `json:"errmsg"`
}

type WxaDeleteTemplateResult

type WxaDeleteTemplateResult struct {
	Result WxaDeleteTemplateResponse // 结果
	Body   []byte                    // 内容
	Http   gorequest.Response        // 请求
}

func (*WxaDeleteTemplateResult) ErrcodeInfo

func (resp *WxaDeleteTemplateResult) ErrcodeInfo() string

ErrcodeInfo 错误描述

type WxaGetAuditStatusResponse

type WxaGetAuditStatusResponse struct {
	Errcode    int    `json:"errcode"`    // 返回码
	Errmsg     string `json:"errmsg"`     // 错误信息
	Auditid    int    `json:"auditid"`    // 最新的审核 ID
	Status     int    `json:"status"`     // 审核状态
	Reason     string `json:"reason"`     // 当审核被拒绝时,返回的拒绝原因
	ScreenShot string `json:"ScreenShot"` // 当审核被拒绝时,会返回审核失败的小程序截图示例。用 | 分隔的 media_id 的列表,可通过获取永久素材接口拉取截图内容
}

type WxaGetAuditStatusResult

type WxaGetAuditStatusResult struct {
	Result WxaGetAuditStatusResponse // 结果
	Body   []byte                    // 内容
	Http   gorequest.Response        // 请求
}

func (*WxaGetAuditStatusResult) ErrcodeInfo

func (resp *WxaGetAuditStatusResult) ErrcodeInfo() string

ErrcodeInfo 错误描述

type WxaGetCategoryResponse added in v1.0.47

type WxaGetCategoryResponse struct {
	Errcode      int    `json:"errcode"`
	Errmsg       string `json:"errmsg"`
	CategoryList []struct {
		FirstClass  string `json:"first_class"`  // 一级类目名称
		SecondClass string `json:"second_class"` // 二级类目名称
		ThirdClass  string `json:"third_class"`  // 三级类目名称
		FirstId     int    `json:"first_id"`     // 一级类目的 ID 编号
		SecondId    int    `json:"second_id"`    // 二级类目的 ID 编号
		ThirdId     int    `json:"third_id"`     // 三级类目的 ID 编号
	} `json:"category_list"`
}

type WxaGetCategoryResult added in v1.0.47

type WxaGetCategoryResult struct {
	Result WxaGetCategoryResponse // 结果
	Body   []byte                 // 内容
	Http   gorequest.Response     // 请求
}

type WxaGetDefaultamsInfoAgencyGetCustomShareRatioResponse added in v1.0.135

type WxaGetDefaultamsInfoAgencyGetCustomShareRatioResponse struct {
	Ret        int    `json:"ret"`
	ErrMsg     string `json:"err_msg"`
	ShareRatio int    `json:"share_ratio"`
}

type WxaGetDefaultamsInfoAgencyGetCustomShareRatioResult added in v1.0.135

type WxaGetDefaultamsInfoAgencyGetCustomShareRatioResult struct {
	Result WxaGetDefaultamsInfoAgencyGetCustomShareRatioResponse // 结果
	Body   []byte                                                // 内容
	Http   gorequest.Response                                    // 请求
}

func (*WxaGetDefaultamsInfoAgencyGetCustomShareRatioResult) ErrcodeInfo added in v1.0.135

ErrcodeInfo 错误描述

type WxaGetDefaultamsInfoGetShareRatioResponse added in v1.0.135

type WxaGetDefaultamsInfoGetShareRatioResponse struct {
	Ret    int    `json:"ret"`
	ErrMsg string `json:"err_msg"`
}

type WxaGetDefaultamsInfoGetShareRatioResult added in v1.0.135

type WxaGetDefaultamsInfoGetShareRatioResult struct {
	Result WxaGetDefaultamsInfoGetShareRatioResponse // 结果
	Body   []byte                                    // 内容
	Http   gorequest.Response                        // 请求
}

func (*WxaGetDefaultamsInfoGetShareRatioResult) ErrcodeInfo added in v1.0.135

func (resp *WxaGetDefaultamsInfoGetShareRatioResult) ErrcodeInfo() string

ErrcodeInfo 错误描述

type WxaGetEffectiveDomainResponse added in v1.0.47

type WxaGetEffectiveDomainResponse struct {
	Errcode  int    `json:"errcode"`
	Errmsg   string `json:"errmsg"`
	MpDomain struct {
		Requestdomain   []interface{} `json:"requestdomain"`
		Wsrequestdomain []interface{} `json:"wsrequestdomain"`
		Uploaddomain    []interface{} `json:"uploaddomain"`
		Downloaddomain  []interface{} `json:"downloaddomain"`
		Udpdomain       []interface{} `json:"udpdomain"`
		Tcpdomain       []interface{} `json:"tcpdomain"`
	} `json:"mp_domain"`
	ThirdDomain struct {
		Requestdomain   []interface{} `json:"requestdomain"`
		Wsrequestdomain []interface{} `json:"wsrequestdomain"`
		Uploaddomain    []interface{} `json:"uploaddomain"`
		Downloaddomain  []interface{} `json:"downloaddomain"`
		Udpdomain       []interface{} `json:"udpdomain"`
		Tcpdomain       []interface{} `json:"tcpdomain"`
	} `json:"third_domain"`
	DirectDomain struct {
		Requestdomain   []interface{} `json:"requestdomain"`
		Wsrequestdomain []interface{} `json:"wsrequestdomain"`
		Uploaddomain    []interface{} `json:"uploaddomain"`
		Downloaddomain  []interface{} `json:"downloaddomain"`
		Udpdomain       []interface{} `json:"udpdomain"`
		Tcpdomain       []interface{} `json:"tcpdomain"`
	} `json:"direct_domain"`
}

type WxaGetEffectiveDomainResult added in v1.0.47

type WxaGetEffectiveDomainResult struct {
	Result WxaGetEffectiveDomainResponse // 结果
	Body   []byte                        // 内容
	Http   gorequest.Response            // 请求
}

type WxaGetLatestAuditStatusResponse

type WxaGetLatestAuditStatusResponse struct {
	Errcode         int    `json:"errcode"`           // 返回码
	Errmsg          string `json:"errmsg"`            // 错误信息
	Auditid         int    `json:"auditid"`           // 最新的审核 ID
	Status          int    `json:"status"`            // 审核状态
	Reason          string `json:"reason"`            // 当审核被拒绝时,返回的拒绝原因
	ScreenShot      string `json:"ScreenShot"`        // 当审核被拒绝时,会返回审核失败的小程序截图示例。用 | 分隔的 media_id 的列表,可通过获取永久素材接口拉取截图内容
	UserDesc        string `json:"user_desc"`         // 审核版本
	UserVersion     string `json:"user_version"`      // 版本描述
	SubmitAuditTime int64  `json:"submit_audit_time"` // 时间戳,提交审核的时间
}

type WxaGetLatestAuditStatusResult

type WxaGetLatestAuditStatusResult struct {
	Result WxaGetLatestAuditStatusResponse // 结果
	Body   []byte                          // 内容
	Http   gorequest.Response              // 请求
}

func (*WxaGetLatestAuditStatusResult) ErrcodeInfo

func (resp *WxaGetLatestAuditStatusResult) ErrcodeInfo() string

ErrcodeInfo 错误描述

type WxaGetPageResponse

type WxaGetPageResponse struct {
	Errcode  int      `json:"errcode"`
	Errmsg   string   `json:"errmsg"`
	PageList []string `json:"page_list"` // page_list 页面配置列表
}

type WxaGetPageResult

type WxaGetPageResult struct {
	Result WxaGetPageResponse // 结果
	Body   []byte             // 内容
	Http   gorequest.Response // 请求
}

type WxaGetQrcodeResponse

type WxaGetQrcodeResponse struct {
	Errcode int    `json:"errcode"`
	Errmsg  string `json:"errmsg"`
}

type WxaGetQrcodeResult

type WxaGetQrcodeResult struct {
	Result WxaGetQrcodeResponse // 结果
	Body   []byte               // 内容
	Http   gorequest.Response   // 请求
}

func (*WxaGetQrcodeResult) SaveImg added in v1.0.52

func (cr *WxaGetQrcodeResult) SaveImg(db *gostorage.AliYun, fileName, filePath string) error

type WxaGetTemplateDraftListResponse

type WxaGetTemplateDraftListResponse struct {
	Errcode   int    `json:"errcode"` // 返回码
	Errmsg    string `json:"errmsg"`  // 错误信息
	DraftList []struct {
		CreateTime             int64         `json:"create_time"`  // 开发者上传草稿时间戳
		UserVersion            string        `json:"user_version"` // 版本号,开发者自定义字段
		UserDesc               string        `json:"user_desc"`    // 版本描述   开发者自定义字段
		DraftId                int64         `json:"draft_id"`     // 草稿 id
		SourceMiniprogramAppid string        `json:"source_miniprogram_appid"`
		SourceMiniprogram      string        `json:"source_miniprogram"`
		Developer              string        `json:"developer"`
		CategoryList           []interface{} `json:"category_list"`
	} `json:"draft_list"` // 草稿信息列表
}

type WxaGetTemplateDraftListResult

type WxaGetTemplateDraftListResult struct {
	Result WxaGetTemplateDraftListResponse // 结果
	Body   []byte                          // 内容
	Http   gorequest.Response              // 请求
}

func (*WxaGetTemplateDraftListResult) ErrcodeInfo added in v1.0.47

func (resp *WxaGetTemplateDraftListResult) ErrcodeInfo() string

ErrcodeInfo 错误描述

type WxaGetTemplateListResponse

type WxaGetTemplateListResponse struct {
	Errcode      int    `json:"errcode"`
	Errmsg       string `json:"errmsg"`
	TemplateList []struct {
		CreateTime             int           `json:"create_time"`              // 被添加为模板的时间
		UserVersion            string        `json:"user_version"`             // 模板版本号,开发者自定义字段
		UserDesc               string        `json:"user_desc"`                // 模板描述,开发者自定义字段
		TemplateId             int64         `json:"template_id"`              // 模板 id
		TemplateType           int           `json:"template_type"`            // 0对应普通模板,1对应标准模板
		SourceMiniprogramAppid string        `json:"source_miniprogram_appid"` // 开发小程序的appid
		SourceMiniprogram      string        `json:"source_miniprogram"`       // 开发小程序的名称
		Developer              string        `json:"developer"`                // 开发者
		CategoryList           []interface{} `json:"category_list"`
	} `json:"template_list"` // 模板信息列表
}

type WxaGetTemplateListResult

type WxaGetTemplateListResult struct {
	Result WxaGetTemplateListResponse // 结果
	Body   []byte                     // 内容
	Http   gorequest.Response         // 请求
}

func (*WxaGetTemplateListResult) ErrcodeInfo added in v1.0.47

func (resp *WxaGetTemplateListResult) ErrcodeInfo() string

ErrcodeInfo 错误描述

type WxaGetUserRiskRankResponse added in v1.0.111

type WxaGetUserRiskRankResponse struct {
	Errcode  int    `json:"errcode"`   // 错误码
	Errmsg   string `json:"errmsg"`    // 错误信息
	RiskRank int    `json:"risk_rank"` // 用户风险等级,合法值为0,1,2,3,4,数字越大风险越高。
	UnoinId  int64  `json:"unoin_id"`  // 唯一请求标识,标记单次请求
}

type WxaGetUserRiskRankResult added in v1.0.111

type WxaGetUserRiskRankResult struct {
	Result WxaGetUserRiskRankResponse // 结果
	Body   []byte                     // 内容
	Http   gorequest.Response         // 请求
}

type WxaGetVersionInfoResponse added in v1.0.47

type WxaGetVersionInfoResponse struct {
	Errcode int    `json:"errcode"`
	Errmsg  string `json:"errmsg"`
	ExpInfo struct {
		ExpTime    int64  `json:"exp_time"`    // 提交体验版的时间
		ExpVersion string `json:"exp_version"` // 体验版版本信息
		ExpDesc    string `json:"exp_desc"`    // 体验版版本描述
	} `json:"exp_info"` // 体验版信息
	ReleaseInfo struct {
		ReleaseTime    int64  `json:"release_time"`    // 发布线上版的时间
		ReleaseVersion string `json:"release_version"` // 线上版版本信息
		ReleaseDesc    string `json:"release_desc"`    // 线上版本描述
	} `json:"release_info"` // 线上版信息
}

type WxaGetVersionInfoResult added in v1.0.47

type WxaGetVersionInfoResult struct {
	Result WxaGetVersionInfoResponse // 结果
	Body   []byte                    // 内容
	Http   gorequest.Response        // 请求
}

type WxaGetWxaCodeUnLimitResponse added in v1.0.47

type WxaGetWxaCodeUnLimitResponse struct {
	Errcode     int         `json:"errcode"`
	Errmsg      string      `json:"errmsg"`
	ContentType string      `json:"contentType"`
	Buffer      interface{} `json:"buffer"`
}

type WxaGetWxaCodeUnLimitResult added in v1.0.47

type WxaGetWxaCodeUnLimitResult struct {
	Result WxaGetWxaCodeUnLimitResponse // 结果
	Body   []byte                       // 内容
	Http   gorequest.Response           // 请求
}

func (*WxaGetWxaCodeUnLimitResult) ErrcodeInfo added in v1.0.47

func (resp *WxaGetWxaCodeUnLimitResult) ErrcodeInfo() string

ErrcodeInfo 错误描述

type WxaMediaCheckAsyncResponse added in v1.0.111

type WxaMediaCheckAsyncResponse struct {
	Errcode int    `json:"errcode"`  // 错误码
	Errmsg  string `json:"errmsg"`   // 错误信息
	TraceId string `json:"trace_id"` // 唯一请求标识,标记单次请求,用于匹配异步推送结果
	Result  struct {
		Suggest string `json:"suggest"` // 小程序的username
		Label   int    `json:"label"`   // 小程序的username
	} `json:"result"` // 小程序的username
	ToUserName   string `json:"ToUserName"`   // 小程序的username
	FromUserName string `json:"FromUserName"` // 平台推送服务UserName
	CreateTime   int    `json:"CreateTime"`   // 发送时间
	MsgType      string `json:"MsgType"`      // 默认为:event
	Event        string `json:"Event"`        // 默认为:wxa_media_check
	Appid        string `json:"appid"`        // 小程序的appid
	Version      int    `json:"version"`      // 小程序的username
	Detail       []struct {
		Strategy string `json:"strategy"` // 小程序的username
		Errcode  int    `json:"errcode"`  // 小程序的username
		Suggest  string `json:"suggest"`  // 小程序的username
		Label    int    `json:"label"`    // 小程序的username
		Prob     int    `json:"prob"`     // 小程序的username
	} `json:"detail"` // 小程序的username
}

type WxaMediaCheckAsyncResult added in v1.0.111

type WxaMediaCheckAsyncResult struct {
	Result WxaMediaCheckAsyncResponse // 结果
	Body   []byte                     // 内容
	Http   gorequest.Response         // 请求
}

type WxaMemberAuthResponse

type WxaMemberAuthResponse struct {
	Errcode int    `json:"errcode"` // 错误码
	Errmsg  string `json:"errmsg"`  // 错误信息
	Members []struct {
		Userstr string `json:"userstr"` // 人员对应的唯一字符串
	} `json:"members"` // 人员信息列表
}

type WxaMemberAuthResult

type WxaMemberAuthResult struct {
	Result WxaMemberAuthResponse // 结果
	Body   []byte                // 内容
	Http   gorequest.Response    // 请求
}

type WxaModifyDomainDirectlyResponse added in v1.0.47

type WxaModifyDomainDirectlyResponse struct {
	Errcode                int      `json:"errcode"`                 // 错误码
	Errmsg                 string   `json:"errmsg"`                  // 错误信息
	Requestdomain          []string `json:"requestdomain"`           // request 合法域名
	Wsrequestdomain        []string `json:"wsrequestdomain"`         // socket 合法域名
	Uploaddomain           []string `json:"uploaddomain"`            // uploadFile 合法域名
	Downloaddomain         []string `json:"downloaddomain"`          // downloadFile 合法域名
	Udpdomain              []string `json:"udpdomain"`               // udp 合法域名
	Tcpdomain              []string `json:"tcpdomain"`               // tcp 合法域名
	InvalidRequestdomain   []string `json:"invalid_requestdomain"`   // request 不合法域名
	InvalidWsrequestdomain []string `json:"invalid_wsrequestdomain"` // socket 不合法域名
	InvalidUploaddomain    []string `json:"invalid_uploaddomain"`    // uploadFile 不合法域名
	InvalidDownloaddomain  []string `json:"invalid_downloaddomain"`  // downloadFile 不合法域名
	InvalidUdpdomain       []string `json:"invalid_udpdomain"`       // udp 不合法域名
	InvalidTcpdomain       []string `json:"invalid_tcpdomain"`       // tcp 不合法域名
	NoIcpDomain            []string `json:"no_icp_domain"`           // 没有经过icp备案的域名
}

type WxaModifyDomainDirectlyResult added in v1.0.47

type WxaModifyDomainDirectlyResult struct {
	Result WxaModifyDomainDirectlyResponse // 结果
	Body   []byte                          // 内容
	Http   gorequest.Response              // 请求
}

func (*WxaModifyDomainDirectlyResult) ErrcodeInfo added in v1.0.47

func (resp *WxaModifyDomainDirectlyResult) ErrcodeInfo() string

ErrcodeInfo 错误描述

type WxaModifyDomainResponse

type WxaModifyDomainResponse struct {
	Errcode                int      `json:"errcode"`                 // 错误码
	Errmsg                 string   `json:"errmsg"`                  // 错误信息
	Requestdomain          []string `json:"requestdomain"`           // request 合法域名
	Wsrequestdomain        []string `json:"wsrequestdomain"`         // socket 合法域名
	Uploaddomain           []string `json:"uploaddomain"`            // uploadFile 合法域名
	Downloaddomain         []string `json:"downloaddomain"`          // downloadFile 合法域名
	Udpdomain              []string `json:"udpdomain"`               // udp 合法域名
	Tcpdomain              []string `json:"tcpdomain"`               // tcp 合法域名
	InvalidRequestdomain   []string `json:"invalid_requestdomain"`   // request 不合法域名
	InvalidWsrequestdomain []string `json:"invalid_wsrequestdomain"` // socket 不合法域名
	InvalidUploaddomain    []string `json:"invalid_uploaddomain"`    // uploadFile 不合法域名
	InvalidDownloaddomain  []string `json:"invalid_downloaddomain"`  // downloadFile 不合法域名
	InvalidUdpdomain       []string `json:"invalid_udpdomain"`       // udp 不合法域名
	InvalidTcpdomain       []string `json:"invalid_tcpdomain"`       // tcp 不合法域名
	NoIcpDomain            []string `json:"no_icp_domain"`           // 没有经过icp备案的域名
}

type WxaModifyDomainResult

type WxaModifyDomainResult struct {
	Result WxaModifyDomainResponse // 结果
	Body   []byte                  // 内容
	Http   gorequest.Response      // 请求
}

func (*WxaModifyDomainResult) ErrcodeInfo added in v1.0.47

func (resp *WxaModifyDomainResult) ErrcodeInfo() string

ErrcodeInfo 错误描述

type WxaMsgSecCheckResponse added in v1.0.111

type WxaMsgSecCheckResponse struct {
	Errcode int    `json:"errcode"`
	Errmsg  string `json:"errmsg"`
	Result  struct {
		Suggest string `json:"suggest"`
		Label   int    `json:"label"`
	} `json:"result"`
	Detail []struct {
		Strategy string `json:"strategy"`
		Errcode  int    `json:"errcode"`
		Suggest  string `json:"suggest"`
		Label    int    `json:"label"`
		Prob     int    `json:"prob,omitempty"`
		Level    int    `json:"level,omitempty"`
		Keyword  string `json:"keyword,omitempty"`
	} `json:"detail"`
	TraceId string `json:"trace_id"`
}

type WxaMsgSecCheckResult added in v1.0.111

type WxaMsgSecCheckResult struct {
	Result WxaMsgSecCheckResponse // 结果
	Body   []byte                 // 内容
	Http   gorequest.Response     // 请求
}

type WxaOperationamsAgencyCheckCanOpenPublisherResponse added in v1.0.135

type WxaOperationamsAgencyCheckCanOpenPublisherResponse struct {
	Ret    int    `json:"ret"`
	ErrMsg string `json:"err_msg"`
	Status int    `json:"status"`
}

type WxaOperationamsAgencyCheckCanOpenPublisherResult added in v1.0.135

type WxaOperationamsAgencyCheckCanOpenPublisherResult struct {
	Result WxaOperationamsAgencyCheckCanOpenPublisherResponse // 结果
	Body   []byte                                             // 内容
	Http   gorequest.Response                                 // 请求
}

func (*WxaOperationamsAgencyCheckCanOpenPublisherResult) ErrcodeInfo added in v1.0.135

ErrcodeInfo 错误描述

type WxaOperationamsAgencyCreatePublisherResponse added in v1.0.135

type WxaOperationamsAgencyCreatePublisherResponse struct {
	Ret    int    `json:"ret"`
	ErrMsg string `json:"err_msg"`
}

type WxaOperationamsAgencyCreatePublisherResult added in v1.0.135

type WxaOperationamsAgencyCreatePublisherResult struct {
	Result WxaOperationamsAgencyCreatePublisherResponse // 结果
	Body   []byte                                       // 内容
	Http   gorequest.Response                           // 请求
}

func (*WxaOperationamsAgencyCreatePublisherResult) ErrcodeInfo added in v1.0.135

ErrcodeInfo 错误描述

type WxaReleaseResponse added in v1.0.47

type WxaReleaseResponse struct {
	Errcode int    `json:"errcode"` // 错误码
	Errmsg  string `json:"errmsg"`  // 错误信息
}

type WxaReleaseResult added in v1.0.47

type WxaReleaseResult struct {
	Result WxaReleaseResponse // 结果
	Body   []byte             // 内容
	Http   gorequest.Response // 请求
}

func (*WxaReleaseResult) ErrcodeInfo added in v1.0.47

func (resp *WxaReleaseResult) ErrcodeInfo() string

ErrcodeInfo 错误描述

type WxaRevertCodeReleaseResponse added in v1.0.95

type WxaRevertCodeReleaseResponse struct {
	Errcode     int    `json:"errcode"` // 错误码
	Errmsg      string `json:"errmsg"`  // 错误信息
	VersionList []struct {
		CommitTime  int    `json:"commit_time"`  // 更新时间,时间戳
		UserVersion string `json:"user_version"` // 模板版本号,开发者自定义字段
		UserDesc    string `json:"user_desc"`    // 模板描述,开发者自定义字段
		AppVersion  int    `json:"app_version"`  // 小程序版本
	} `json:"version_list"` // 模板信息列表
}

type WxaRevertCodeReleaseResult added in v1.0.95

type WxaRevertCodeReleaseResult struct {
	Result WxaRevertCodeReleaseResponse // 结果
	Body   []byte                       // 内容
	Http   gorequest.Response           // 请求
}

func (*WxaRevertCodeReleaseResult) ErrcodeInfo added in v1.0.95

func (resp *WxaRevertCodeReleaseResult) ErrcodeInfo() string

ErrcodeInfo 错误描述

type WxaSecurityApplyPrivacyInterfaceResponse added in v1.0.47

type WxaSecurityApplyPrivacyInterfaceResponse struct {
	Errcode int    `json:"errcode"`  // 返回码
	Errmsg  string `json:"errmsg"`   // 返回码信息
	AuditId int64  `json:"audit_id"` // 审核单id
}

type WxaSecurityApplyPrivacyInterfaceResult added in v1.0.47

type WxaSecurityApplyPrivacyInterfaceResult struct {
	Result WxaSecurityApplyPrivacyInterfaceResponse // 结果
	Body   []byte                                   // 内容
	Http   gorequest.Response                       // 请求
}

func (*WxaSecurityApplyPrivacyInterfaceResult) ErrcodeInfo added in v1.0.47

func (resp *WxaSecurityApplyPrivacyInterfaceResult) ErrcodeInfo() string

ErrcodeInfo 错误描述

type WxaSecurityApplySetOrderPathInfoResponse added in v1.0.52

type WxaSecurityApplySetOrderPathInfoResponse struct {
	Errcode int    `json:"errcode"` // 返回码
	Errmsg  string `json:"errmsg"`  // 返回码信息
}

type WxaSecurityApplySetOrderPathInfoResult added in v1.0.52

type WxaSecurityApplySetOrderPathInfoResult struct {
	Result WxaSecurityApplySetOrderPathInfoResponse // 结果
	Body   []byte                                   // 内容
	Http   gorequest.Response                       // 请求
}

func (*WxaSecurityApplySetOrderPathInfoResult) ErrcodeInfo added in v1.0.52

func (resp *WxaSecurityApplySetOrderPathInfoResult) ErrcodeInfo() string

ErrcodeInfo 错误描述

type WxaSecurityGetOrderPathInfoResponse added in v1.0.52

type WxaSecurityGetOrderPathInfoResponse struct {
	Errcode int    `json:"errcode"` // 返回码
	Errmsg  string `json:"errmsg"`  // 返回码信息
	// contains filtered or unexported fields
}

type WxaSecurityGetOrderPathInfoResult added in v1.0.52

type WxaSecurityGetOrderPathInfoResult struct {
	Result WxaSecurityGetOrderPathInfoResponse // 结果
	Body   []byte                              // 内容
	Http   gorequest.Response                  // 请求
}

func (*WxaSecurityGetOrderPathInfoResult) ErrcodeInfo added in v1.0.52

func (resp *WxaSecurityGetOrderPathInfoResult) ErrcodeInfo() string

ErrcodeInfo 错误描述

type WxaSecurityGetPrivacyInterfaceResponse added in v1.0.47

type WxaSecurityGetPrivacyInterfaceResponse struct {
	Errcode       int    `json:"errcode"` // 返回码
	Errmsg        string `json:"errmsg"`  // 返回码信息
	InterfaceList []struct {
		ApiName    string `json:"api_name"`              // api 英文名
		ApiChName  string `json:"api_ch_name"`           // api 中文名
		ApiDesc    string `json:"api_desc"`              // api描述
		ApplyTime  int64  `json:"apply_time,omitempty"`  // 申请时间 ,该字段发起申请后才会有
		Status     int    `json:"status,omitempty"`      // 接口状态,该字段发起申请后才会有 1待申请开通 2无权限 3申请中 4申请失败 5已开通
		AuditId    int    `json:"audit_id,omitempty"`    // 申请单号,该字段发起申请后才会有
		FailReason string `json:"fail_reason,omitempty"` // 申请被驳回原因或者无权限,该字段申请驳回时才会有
		ApiLink    string `json:"api_link"`              // api文档链接
		GroupName  string `json:"group_name"`            // 分组名
	} `json:"interface_list"` // 隐私接口
}

type WxaSecurityGetPrivacyInterfaceResult added in v1.0.47

type WxaSecurityGetPrivacyInterfaceResult struct {
	Result WxaSecurityGetPrivacyInterfaceResponse // 结果
	Body   []byte                                 // 内容
	Http   gorequest.Response                     // 请求
}

func (*WxaSecurityGetPrivacyInterfaceResult) ErrcodeInfo added in v1.0.47

func (resp *WxaSecurityGetPrivacyInterfaceResult) ErrcodeInfo() string

ErrcodeInfo 错误描述

type WxaSetDefaultamsInfoAgencySetCustomShareRatioResponse added in v1.0.135

type WxaSetDefaultamsInfoAgencySetCustomShareRatioResponse struct {
	Ret    int    `json:"ret"`
	ErrMsg string `json:"err_msg"`
}

type WxaSetDefaultamsInfoAgencySetCustomShareRatioResult added in v1.0.135

type WxaSetDefaultamsInfoAgencySetCustomShareRatioResult struct {
	Result WxaSetDefaultamsInfoAgencySetCustomShareRatioResponse // 结果
	Body   []byte                                                // 内容
	Http   gorequest.Response                                    // 请求
}

func (*WxaSetDefaultamsInfoAgencySetCustomShareRatioResult) ErrcodeInfo added in v1.0.135

ErrcodeInfo 错误描述

type WxaSetDefaultamsInfoSetShareRatioResponse added in v1.0.135

type WxaSetDefaultamsInfoSetShareRatioResponse struct {
	Ret    int    `json:"ret"`
	ErrMsg string `json:"err_msg"`
}

type WxaSetDefaultamsInfoSetShareRatioResult added in v1.0.135

type WxaSetDefaultamsInfoSetShareRatioResult struct {
	Result WxaSetDefaultamsInfoSetShareRatioResponse // 结果
	Body   []byte                                    // 内容
	Http   gorequest.Response                        // 请求
}

func (*WxaSetDefaultamsInfoSetShareRatioResult) ErrcodeInfo added in v1.0.135

func (resp *WxaSetDefaultamsInfoSetShareRatioResult) ErrcodeInfo() string

ErrcodeInfo 错误描述

type WxaSetWebViewDoMainResponse added in v1.0.52

type WxaSetWebViewDoMainResponse struct {
	Errcode int    `json:"errcode"` // 错误码
	Errmsg  string `json:"errmsg"`  // 错误信息
}

type WxaSetWebViewDoMainResult added in v1.0.52

type WxaSetWebViewDoMainResult struct {
	Result WxaSetWebViewDoMainResponse // 结果
	Body   []byte                      // 内容
	Http   gorequest.Response          // 请求
}

func (*WxaSetWebViewDoMainResult) ErrcodeInfo added in v1.0.52

func (resp *WxaSetWebViewDoMainResult) ErrcodeInfo() string

ErrcodeInfo 错误描述

type WxaSubmitAuditResponse

type WxaSubmitAuditResponse struct {
	Errcode int    `json:"errcode"`
	Errmsg  string `json:"errmsg"`
	Auditid int64  `json:"auditid"`
}

type WxaSubmitAuditResult

type WxaSubmitAuditResult struct {
	Result WxaSubmitAuditResponse // 结果
	Body   []byte                 // 内容
	Http   gorequest.Response     // 请求
}

type WxaUnbindTesterResponse

type WxaUnbindTesterResponse struct {
	Errcode int    `json:"errcode"` // 错误码
	Errmsg  string `json:"errmsg"`  // 错误信息
}

type WxaUnbindTesterResult

type WxaUnbindTesterResult struct {
	Result WxaUnbindTesterResponse // 结果
	Body   []byte                  // 内容
	Http   gorequest.Response      // 请求
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL