wechatopen

package
v1.0.48 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: MIT Imports: 26 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 的余数
)

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 MsgSign

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

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

func Sign

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

Sign 微信公众号 url 签名.

func ToFloat64

func ToFloat64(s string) float64

ToFloat64 string到float64

func ToInt64

func ToInt64(s string) int64

ToInt64 string到int64

func ToUint

func ToUint(s string) uint

ToUint string到uint64

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                       // 请求
	Err    error                                    // 错误
}

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                        // 请求
	Err    error                                     // 错误
	// 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                       // 请求
	Err    error                                    // 错误
}

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                           // 请求
	Err    error                                        // 错误
}

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                          // 请求
	Err    error                                       // 错误
}

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                  // 请求
	Err    error                               // 错误
}

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                        // 请求
	Err    error                                     // 错误
}

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                       // 请求
	Err    error                                    // 错误
}

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                       // 请求
	Err    error                                    // 错误
}

func (*CgiBinComponentSetPrivacySettingResult) ErrcodeInfo added in v1.0.47

func (resp *CgiBinComponentSetPrivacySettingResult) ErrcodeInfo() string

ErrcodeInfo 错误描述

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     // 请求
	Err    error                  // 错误
}

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                // 请求
	Err    error                             // 错误
}

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                   // 请求
	Err    error                                // 错误
}

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                     // 请求
	Err    error                                  // 错误
}

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                // 请求
	Err    error                             // 错误
}

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                    // 请求
	Err    error                                 // 错误
}

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 *ConfigClient) (*Client, error)

func (*Client) CgiBinComponentApiAuthorizerToken added in v1.0.47

func (c *Client) CgiBinComponentApiAuthorizerToken(authorizerRefreshToken string) *CgiBinComponentApiAuthorizerTokenResult

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() *CgiBinComponentApiCreatePreAuthCodenResult

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() *CgiBinComponentApiGetAuthorizerInfoResult

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(authorizationCode string) *CgiBinComponentApiQueryAuthResult

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() *CgiBinComponentApiStartPushTicketResult

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

func (*Client) CgiBinComponentGetPrivacySetting added in v1.0.47

func (c *Client) CgiBinComponentGetPrivacySetting(privacyVer int) *CgiBinComponentGetPrivacySettingResult

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(notMustParams ...gorequest.Params) *CgiBinComponentSetPrivacySettingResult

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(componentAccessToken string) *GetCallBackIpResult

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

func (*Client) CgiBinShortUrl added in v1.0.47

func (c *Client) CgiBinShortUrl(longUrl string) *CgiBinShortUrlResult

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(notMustParams ...gorequest.Params) *CgiBinWxOpenQrCodeJumpAddResult

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(prefix string) *CgiBinWxOpenQrCodeJumpDeleteResult

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() *CgiBinWxOpenQrCodeJumpDownloadResult

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() *CgiBinWxOpenQrCodeJumpGetResult

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(prefix string) *CgiBinWxOpenQrCodeJumpPublishResult

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

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) DelPreAuthCode added in v1.0.47

func (c *Client) DelPreAuthCode() error

DelPreAuthCode 删除预授权码

func (*Client) GetAuthorizerAccessToken added in v1.0.47

func (c *Client) GetAuthorizerAccessToken() string

GetAuthorizerAccessToken 获取授权方令牌

func (*Client) GetComponentAccessToken added in v1.0.47

func (c *Client) GetComponentAccessToken() string

GetComponentAccessToken 获取令牌

func (*Client) GetComponentAppId added in v1.0.47

func (c *Client) GetComponentAppId() string

func (*Client) GetComponentVerifyTicket added in v1.0.47

func (c *Client) GetComponentVerifyTicket() string

GetComponentVerifyTicket 获取微信后台推送的ticke

func (*Client) GetPreAuthCode added in v1.0.47

func (c *Client) GetPreAuthCode() string

GetPreAuthCode 获取预授权码

func (*Client) MonitorAuthorizerAccessToken added in v1.0.47

func (c *Client) MonitorAuthorizerAccessToken(authorizerRefreshToken string) string

MonitorAuthorizerAccessToken 监控授权方令牌

func (*Client) MonitorComponentAccessToken added in v1.0.47

func (c *Client) MonitorComponentAccessToken() string

MonitorComponentAccessToken 监控令牌

func (*Client) MonitorPreAuthCode added in v1.0.47

func (c *Client) MonitorPreAuthCode() string

MonitorPreAuthCode 监控预授权码

func (*Client) SaveImg added in v1.0.47

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

func (*Client) ServeHttpAuthorizerAppid added in v1.0.47

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

ServeHttpAuthorizerAppid 授权跳转

func (*Client) ServeHttpVerifyTicket added in v1.0.47

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

ServeHttpVerifyTicket 验证票据推送

func (*Client) SetAuthorizerAccessToken added in v1.0.47

func (c *Client) SetAuthorizerAccessToken(authorizerAccessToken string) string

SetAuthorizerAccessToken 设置授权方令牌

func (*Client) SetAuthorizerAppid added in v1.0.47

func (c *Client) SetAuthorizerAppid(authorizerAppid string)

SetAuthorizerAppid 设置代理商小程序

func (*Client) SetComponentAccessToken added in v1.0.47

func (c *Client) SetComponentAccessToken(componentAccessToken string) string

SetComponentAccessToken 设置令牌

func (*Client) SetComponentVerifyTicket added in v1.0.47

func (c *Client) SetComponentVerifyTicket(componentVerifyTicket string) string

SetComponentVerifyTicket 设置微信后台推送的ticke

func (*Client) SetPreAuthCode added in v1.0.47

func (c *Client) SetPreAuthCode(preAuthCode string) string

SetPreAuthCode 设置预授权码

func (*Client) SnsComponentJsCode2session added in v1.0.47

func (c *Client) SnsComponentJsCode2session(jsCode string) *SnsComponentJsCode2sessionResult

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() *TckWxPayListResult

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(draftId string, templateType int) *WxaAddToTemplateResult

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

func (*Client) WxaBindTester added in v1.0.47

func (c *Client) WxaBindTester(wechatid string) *WxaBindTesterResult

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(code string) *WxaBusinessGetUserPhoneNumberResult

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(notMustParams ...gorequest.Params) *WxaCommitResult

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(templateId string) *WxaDeleteTemplateResult

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(auditid int64) *WxaGetAuditStatusResult

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() *WxaGetCategoryResult

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

func (*Client) WxaGetEffectiveDomain added in v1.0.47

func (c *Client) WxaGetEffectiveDomain(notMustParams ...gorequest.Params) *WxaGetEffectiveDomainResult

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() *WxaGetLatestAuditStatusResult

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() *WxaGetPageResult

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(path string) *WxaGetQrcodeResult

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

func (*Client) WxaGetVersionInfo added in v1.0.47

func (c *Client) WxaGetVersionInfo() *WxaGetVersionInfoResult

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(notMustParams ...gorequest.Params) *WxaGetWxaCodeUnLimitResult

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

func (*Client) WxaModifyDomainDirectly added in v1.0.47

func (c *Client) WxaModifyDomainDirectly(notMustParams ...gorequest.Params) *WxaModifyDomainDirectlyResult

WxaModifyDomainDirectly 快速设置小程序服务器域名 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_Basic_Info/modify_domain_directly.html

func (*Client) WxaRelease added in v1.0.47

func (c *Client) WxaRelease() *WxaReleaseResult

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

func (*Client) WxaSecurityApplyPrivacyInterface added in v1.0.47

func (c *Client) WxaSecurityApplyPrivacyInterface(notMustParams ...gorequest.Params) *WxaSecurityApplyPrivacyInterfaceResult

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

func (*Client) WxaSecurityGetPrivacyInterface added in v1.0.47

func (c *Client) WxaSecurityGetPrivacyInterface() *WxaSecurityGetPrivacyInterfaceResult

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

func (*Client) WxaSubmitAudit added in v1.0.47

func (c *Client) WxaSubmitAudit(notMustParams ...gorequest.Params) *WxaSubmitAuditResult

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(wechatid, userstr string) *WxaUnbindTesterResult

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

type ConfigClient added in v1.0.47

type ConfigClient struct {
	ComponentAccessToken   string // 第三方平台 access_token
	ComponentVerifyTicket  string // 微信后台推送的 ticket
	PreAuthCode            string // 预授权码
	AuthorizerAccessToken  string // 接口调用令牌
	AuthorizerRefreshToken string // 刷新令牌
	AuthorizerAppid        string // 授权方 appid
	ComponentAppId         string // 第三方平台 appid
	ComponentAppSecret     string // 第三方平台 app_secret
	MessageToken           string
	MessageKey             string
	RedisClient            *dorm.RedisClient // 缓存数据库
	MongoDb                *dorm.MongoClient // 日志数据库
	PgsqlDb                *gorm.DB          // 日志数据库
	DatabaseName           string            // 库名
}

type GetCallBackIpResponse

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

type GetCallBackIpResult

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

func NewGetCallBackIpResult

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

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 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                 // 请求
	Err    error                              // 错误
}

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   // 请求
	Err    error                // 错误
}

func (*TckWxPayListResult) ErrcodeInfo added in v1.0.47

func (resp *TckWxPayListResult) ErrcodeInfo() string

ErrcodeInfo 错误描述

type UserInfo

type UserInfo struct {
	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            // 错误
}

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       // 请求
	Err    error                    // 错误
}

func (*WxaAddToTemplateResult) ErrcodeInfo added in v1.0.47

func (resp *WxaAddToTemplateResult) 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    // 请求
	Err    error                 // 错误
}

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     int    `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                    // 请求
	Err    error                                 // 错误
}

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 // 请求
	Err    error              // 错误
}

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        // 请求
	Err    error                     // 错误
}

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        // 请求
	Err    error                     // 错误
}

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     // 请求
	Err    error                  // 错误
}

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            // 请求
	Err    error                         // 错误
}

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 的列表,可通过获取永久素材接口拉取截图内容
}

type WxaGetLatestAuditStatusResult

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

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 // 请求
	Err    error              // 错误
}

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   // 请求
	Err    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              // 请求
	Err    error                           // 错误
}

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         // 请求
	Err    error                      // 错误
}

func (*WxaGetTemplateListResult) ErrcodeInfo added in v1.0.47

func (resp *WxaGetTemplateListResult) ErrcodeInfo() string

ErrcodeInfo 错误描述

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        // 请求
	Err    error                     // 错误
}

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           // 请求
	Err    error                        // 错误
}

func (*WxaGetWxaCodeUnLimitResult) ErrcodeInfo added in v1.0.47

func (resp *WxaGetWxaCodeUnLimitResult) ErrcodeInfo() string

ErrcodeInfo 错误描述

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    // 请求
	Err    error                 // 错误
}

type WxaModifyDomainDirectlyResponse added in v1.0.47

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

type WxaModifyDomainDirectlyResult added in v1.0.47

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

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      // 请求
	Err    error                   // 错误
}

func (*WxaModifyDomainResult) ErrcodeInfo added in v1.0.47

func (resp *WxaModifyDomainResult) ErrcodeInfo() string

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 // 请求
	Err    error              // 错误
}

func (*WxaReleaseResult) ErrcodeInfo added in v1.0.47

func (resp *WxaReleaseResult) 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                       // 请求
	Err    error                                    // 错误
}

func (*WxaSecurityApplyPrivacyInterfaceResult) ErrcodeInfo added in v1.0.47

func (resp *WxaSecurityApplyPrivacyInterfaceResult) 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"`                // 接口状态,该字段发起申请后才会有
		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                     // 请求
	Err    error                                  // 错误
}

func (*WxaSecurityGetPrivacyInterfaceResult) ErrcodeInfo added in v1.0.47

func (resp *WxaSecurityGetPrivacyInterfaceResult) 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     // 请求
	Err    error                  // 错误
}

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      // 请求
	Err    error                   // 错误
}

Jump to

Keyboard shortcuts

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