wx

package module
v0.0.92 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

README

wx

Documentation

Index

Constants

View Source
const (
	// 场景值
	ContentSceneData    ContentScene = 1
	ContentSceneComment ContentScene = 2
	ContentSceneBBS     ContentScene = 3
	ContentScenePost    ContentScene = 4
	// 建议处理结果
	ContentSuggestRicky  = "ricky"
	ContentSuggestPass   = "pass"
	ContentSuggestReview = "review"
	// 内容标签
	ContentLableOk        ContentLabel = 100
	ContentLableAd        ContentLabel = 10001
	ContentLabelPolitics  ContentLabel = 20001
	ContentLabelPorno     ContentLabel = 20002
	ContentLabelAbuse     ContentLabel = 20003
	ContentLabelCrime     ContentLabel = 20006
	ContentLabelCheat     ContentLabel = 20008
	ContentLabelVulgar    ContentLabel = 20012
	ContentLabelCopyright ContentLabel = 20013
	ContentLabelOther     ContentLabel = 21000
)
View Source
const (
	EventWxaCategoryAudit = "wxa_category_audit"
	EventWxaNicknameAudit = "wxa_nickname_audit"
)
View Source
const (
	ErrCodeICPOK                      int32 = 0
	ErrCodeICPSymtemException         int32 = -1
	ErrCodeICPReject                  int32 = 86202
	ErrCodeICPServiceException        int32 = 86301
	ErrCodeICPImageTextMismatch       int32 = 86302
	ErrCodeICPImageCertifiateValidity int32 = 86308
	ErrCodeICPApprovaling             int32 = 86324
	ErrCodeICPUncompletingOrder       int32 = 86358
)
View Source
const (
	ICPMediaTypeImage = "image"
	ICPMediaTypeVideo = "video"
)
View Source
const (
	ApiMediaUpload = "https://api.weixin.qq.com/cgi-bin/media/upload"

	MediaTypeImage = "image"
	MediaTypeVoice = "voice"
	MediaTypeVideo = "video"
	MediaTypeThumb = "thumb"
)
View Source
const (
	ApiPlugin          = "https://api.weixin.qq.com/wxa/plugin"
	PluginActionApply  = "apply"
	PluginActionList   = "list"
	PluginActionUnbind = "unbind"

	PluginStatusApplying  = 1
	PluginStatusSucceeded = 2
	PluginStatusRejected  = 3
	PluginStatusTimeout   = 4
)
View Source
const (
	SecCustomerTypeEnterprise SecCustomerType = 1  //企业
	SecCustomerTypeIndividual SecCustomerType = 12 // 个体工商户
	SecCustomerTypePerson     SecCustomerType = 15 // 个人
	SecInvoiceTypeNone        SecInvoiceType  = 1  // 无需开
	SecInvoiceTypeElectronic  SecInvoiceType  = 2  // 电子发票
	SecInvoiceTypeVat         SecInvoiceType  = 3  // 增值税发票
)
View Source
const (
	CustomMessageTypeText            = "text"
	CustomMessageTypeImage           = "image"
	CustomMessageTypeLink            = "link"
	CustomMessageTypeMiniProgramPage = "miniprogrampage"
)
View Source
const (
	MiniProgramStateDeveloper = "developer" // 开发版本
	MiniProgramStateTrial     = "trial"     // 体验版
	MiniProgramStateFormal    = "formal"    // 正式

	ErrorCodeSuccess = 0
	MineJson         = "application/json;charset=utf-8"
)
View Source
const APIGetPrivacySetting = "https://api.weixin.qq.com/cgi-bin/component/getprivacysetting"
View Source
const ApiAddCategory = "https://api.weixin.qq.com/cgi-bin/wxopen/addcategory"
View Source
const ApiAddToTemplate = "https://api.weixin.qq.com/wxa/addtotemplate"
View Source
const ApiAuthorizerToken = "https://api.weixin.qq.com/cgi-bin/component/api_authorizer_token"
View Source
const ApiBindTester = "https://api.weixin.qq.com/wxa/bind_tester"
View Source
const ApiChangeWxaSearchStatus = "https://api.weixin.qq.com/wxa/changewxasearchstatus"
View Source
const ApiCheckWxVerifyNickname = "https://api.weixin.qq.com/cgi-bin/wxverify/checkwxverifynickname"
View Source
const ApiComponentToken = "https://api.weixin.qq.com/cgi-bin/component/api_component_token"
View Source
const ApiContentCheckMedia = "https://api.weixin.qq.com/wxa/media_check_async"
View Source
const ApiContentCheckText = "https://api.weixin.qq.com/wxa/msg_sec_check"
View Source
const ApiCreatePreAuthCode = "https://api.weixin.qq.com/cgi-bin/component/api_create_preauthcode"
View Source
const ApiDeleteCategory = "https://api.weixin.qq.com/cgi-bin/wxopen/deletecategory"
View Source
const ApiDeleteTemplate = "https://api.weixin.qq.com/wxa/deletetemplate"
View Source
const ApiFastRegister = "https://api.weixin.qq.com/cgi-bin/account/fastregister" //复用公众号主体注册小程序
View Source
const ApiFastRegisterBetaWeApp = "https://api.weixin.qq.com/wxa/component/fastregisterbetaweapp" //创建试用小程序
View Source
const ApiFastRegisterPersonalWeApp = "https://api.weixin.qq.com/wxa/component/fastregisterpersonalweapp" //快速注册个人小程序
View Source
const ApiFastRegisterWeApp = "https://api.weixin.qq.com/cgi-bin/component/fastregisterweapp"
View Source
const ApiFetchDataSetting = "https://api.weixin.qq.com/wxa/fetchdatasetting"
View Source
const ApiGetAccountBasicInfo = "https://api.weixin.qq.com/cgi-bin/account/getaccountbasicinfo"
View Source
const ApiGetAllCategories = "https://api.weixin.qq.com/cgi-bin/wxopen/getallcategories"
View Source
const ApiGetAuthorizerInfo = "https://api.weixin.qq.com/cgi-bin/component/api_get_authorizer_info"
View Source
const ApiGetCategoriesByType = ""
View Source
const ApiGetCategory = "https://api.weixin.qq.com/cgi-bin/wxopen/getcategory"
View Source
const ApiGetDomainCofirmFile = "https://api.weixin.qq.com/cgi-bin/component/get_domain_confirmfile"
View Source
const ApiGetMpAdminAuth = "https://api.weixin.qq.com/wxa/getmpadminauth" //获取公众号管理员授权
View Source
const ApiGetTemplateDraftList = "https://api.weixin.qq.com/wxa/gettemplatedraftlist"
View Source
const ApiGetTemplateList = "https://api.weixin.qq.com/wxa/gettemplatelist"
View Source
const ApiGetUserPhoneNumber = "https://api.weixin.qq.com/wxa/business/getuserphonenumber"
View Source
const ApiGetWeAppSupportVersion = "https://api.weixin.qq.com/cgi-bin/wxopen/getweappsupportversion"
View Source
const ApiGetWxaCodeUnlimit = "https://api.weixin.qq.com/wxa/getwxacodeunlimit"
View Source
const ApiGetWxaSearchStatus = "https://api.weixin.qq.com/wxa/getwxasearchstatus"
View Source
const ApiICPApplyFiling = "https://api.weixin.qq.com/wxa/icp/apply_icp_filing"
View Source
const ApiICPCancelApplyFiling = "https://api.weixin.qq.com/wxa/icp/cancel_apply_icp_filing"
View Source
const ApiICPCancelFiling = "https://api.weixin.qq.com/wxa/icp/apply_icp_filing"
View Source
const ApiICPCreateVerifyTask = "https://api.weixin.qq.com/wxa/icp/create_icp_verifytask"
View Source
const ApiICPGetEntranceInfo = "https://api.weixin.qq.com/wxa/icp/get_icp_entrance_info"
View Source
const ApiICPGetOnlineOrder = "https://api.weixin.qq.com/wxa/icp/get_online_icp_order"
View Source
const ApiICPQueryCertificateTypes = "https://api.weixin.qq.com/wxa/icp/query_icp_certificate_types"
View Source
const ApiICPQueryDistrictCode = "https://api.weixin.qq.com/wxa/icp/query_icp_district_code"
View Source
const ApiICPQueryNRLXTypes = "https://api.weixin.qq.com/wxa/icp/query_icp_nrlx_types"
View Source
const ApiICPQueryServiceContentTypes = "https://api.weixin.qq.com/wxa/icp/query_icp_service_content_types"
View Source
const ApiICPQuerySubjectTypes = "https://api.weixin.qq.com/wxa/icp/query_icp_subject_types"
View Source
const ApiICPQueryVerifyTask = "https://api.weixin.qq.com/wxa/icp/query_icp_verifytask"
View Source
const ApiICPUploadMedia = "https://api.weixin.qq.com/wxa/icp/upload_icp_media"
View Source
const ApiJSCodeToSession = "https://api.weixin.qq.com/sns/component/jscode2session"
View Source
const ApiMemberAuth = "https://api.weixin.qq.com/wxa/memberauth"
View Source
const ApiModifyCategory = "https://api.weixin.qq.com/cgi-bin/wxopen/modifycategory"
View Source
const ApiModifyDomain = "https://api.weixin.qq.com/wxa/modify_domain"
View Source
const ApiModifyHeadImage = "https://api.weixin.qq.com/cgi-bin/account/modifyheadimage"
View Source
const ApiModifySignature = "https://api.weixin.qq.com/cgi-bin/account/modifysignature"
View Source
const ApiModifyWxaJumpDomain = "https://api.weixin.qq.com/cgi-bin/component/modify_wxa_jump_domain"

api document https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/thirdparty-management/domain-mgnt/modifyThirdpartyJumpDomain.html

View Source
const ApiModifyWxaServerDomain = "https://api.weixin.qq.com/cgi-bin/component/modify_wxa_server_domain"
View Source
const ApiMpVerifyBetaWeApp = "https://api.weixin.qq.com/wxa/mpverifybetaweapp" //复用公众号主体认证小程序
View Source
const ApiQueryAuth = "https://api.weixin.qq.com/cgi-bin/component/api_query_auth"
View Source
const ApiRevertGrayRelease = "https://api.weixin.qq.com/wxa/revertgrayrelease"
View Source
const ApiSecAuthidentityTree = "https://api.weixin.qq.com/wxa/sec/authidentitytree"
View Source
const ApiSecQueryWxaAuth = "https://api.weixin.qq.com/wxa/sec/queryauth"
View Source
const ApiSecUploadWxaAuthMaterial = "https://api.weixin.qq.com/wxa/sec/uploadauthmaterial"
View Source
const ApiSecWxaAuth = "https://api.weixin.qq.com/wxa/sec/wxaauth"
View Source
const ApiSecWxaReauth = " https://api.weixin.qq.com/wxa/sec/reauth"
View Source
const ApiSendCustomMessage = "https://api.weixin.qq.com/cgi-bin/message/custom/send"
View Source
const ApiSetBetaWeAppNickname = "https://api.weixin.qq.com/wxa/setbetaweappnickname" //设置微信小程序名称
View Source
const ApiSetNickname = "https://api.weixin.qq.com/wxa/setnickname"
View Source
const ApiSetPrivacySetting = "https://api.weixin.qq.com/cgi-bin/component/setprivacysetting"
View Source
const ApiSetWeAppSupportVersion = "https://api.weixin.qq.com/cgi-bin/wxopen/setweappsupportversion"
View Source
const ApiSetWebViewDomain = "https://api.weixin.qq.com/wxa/setwebviewdomain"
View Source
const ApiStartPushTicket = "https://api.weixin.qq.com/cgi-bin/component/api_start_push_ticket"
View Source
const ApiUnbindTester = "https://api.weixin.qq.com/wxa/unbind_tester"
View Source
const ApiUndoCodeAudit = "https://api.weixin.qq.com/wxa/undocodeaudit"
View Source
const ApiVerifyBetaWeApp = "https://api.weixin.qq.com/wxa/verifybetaweapp" //快速认证试用小程序
View Source
const ApiWxaChangeVisitStatus = "https://api.weixin.qq.com/wxa/change_visitstatus"
View Source
const ApiWxaCommit = "https://api.weixin.qq.com/wxa/commit"
View Source
const ApiWxaGetAuditStatus = "https://api.weixin.qq.com/wxa/get_auditstatus"
View Source
const ApiWxaGetCategory = "https://api.weixin.qq.com/wxa/get_category"
View Source
const ApiWxaGetGrayReleasePlan = "https://api.weixin.qq.com/wxa/getgrayreleaseplan"
View Source
const ApiWxaGetLastAuditStatus = "https://api.weixin.qq.com/wxa/get_latest_auditstatus"
View Source
const ApiWxaGetPage = "https://api.weixin.qq.com/wxa/get_page"
View Source
const ApiWxaGetQRCode = "https://api.weixin.qq.com/wxa/get_qrcode"
View Source
const ApiWxaGetShowWxaItem = "https://api.weixin.qq.com/wxa/getshowwxaitem"
View Source
const ApiWxaGrayRelease = "https://api.weixin.qq.com/wxa/grayrelease"
View Source
const ApiWxaQueryNickname = "https://api.weixin.qq.com/wxa/api_wxa_querynickname"
View Source
const ApiWxaQueryQuota = "https://api.weixin.qq.com/wxa/queryquota"
View Source
const ApiWxaRelease = "https://api.weixin.qq.com/wxa/release"
View Source
const ApiWxaRevertCodeRelease = "https://api.weixin.qq.com/wxa/revertcoderelease"
View Source
const ApiWxaRevertCodeReleaseHistoryVersion = "https://api.weixin.qq.com/wxa/revertcoderelease"
View Source
const ApiWxaSpeedupAudit = "https://api.weixin.qq.com/wxa/speedupaudit"
View Source
const ApiWxaSubmitAudit = "https://api.weixin.qq.com/wxa/submit_audit"
View Source
const AuthTypeMP = "1"
View Source
const AuthTypeMpAndWxa = "3"
View Source
const AuthTypeWxa = "2"
View Source
const FastRegisterNotificationSuccessStatus = 0
View Source
const FetchDataSettingActionGet = "get"
View Source
const FetchDataSettingActionSetPeriodFetch = "set_period_fetch"
View Source
const FetchDataSettingActionSetPreFetch = "set_pre_fetch"
View Source
const H5AuthorizationURLTpl = "" /* 155-byte string literal not displayed */
View Source
const ICPSuccessStatus int32 = 6
View Source
const MemberAuthActionGetExperiencer = "get_experiencer"
View Source
const ModifyDomainActionAdd = "add"
View Source
const ModifyDomainActionDelete = "delete"
View Source
const ModifyDomainActionGet = "get"
View Source
const ModifyDomainActionSet = "set"
View Source
const NotifyAuthorized = "authorized" // 授权
View Source
const NotifyThirdApplyICPFillingResult = "notify_apply_icpfiling_result" // 备案结果
View Source
const NotifyThirdFastRegister = "notify_third_fasteregister" // 快速注册
View Source
const NotifyThirdFastRegisterBetaApp = "notify_third_fastregisterbetaapp" // 快速注册试用小程序
View Source
const NotifyThirdICPFilingVerifyResult = "notify_icpfiling_verify_result" // 人脸核身结果
View Source
const NotifyThirdWxaAuth = "notify_3rd_wxa_auth" // 认证消息
View Source
const NotifyTypeComponentVerifyTicket = "component_verify_ticket" // 票据推送
View Source
const NotifyTypeUnauthorized = "unauthorized" // 取消授权
View Source
const NotifyTypeUpdateAuthorized = "updateauthorized" // 更新授权
View Source
const PCAuthorizationURLTpl = "https://mp.weixin.qq.com/cgi-bin/componentloginpage?component_appid=%s&pre_auth_code=%s&redirect_uri=%s&auth_type=%s"
View Source
const SecApplyFailStatus int32 = 5
View Source
const SecApplyRecommitStatus int32 = 3
View Source
const SecApplySuccessStatus int32 = 4
View Source
const SetWebViewDomainActionAdd = "add"
View Source
const SetWebViewDomainActionDelete = "delete"
View Source
const SetWebViewDomainActionGet = "get"
View Source
const SetWebViewDomainActionSet = "set"
View Source
const TemplateTypeNormal = 0
View Source
const TemplateTypeStandard = 1
View Source
const WxaSearchStatusDisabled = "0"
View Source
const WxaSearchStatusEnable = "1"
View Source
const WxaVisitStatusClose = "close"
View Source
const WxaVisitStatusOpen = "open"

Variables

View Source
var (
	SecCustomerTypeText = map[SecCustomerType]string{
		SecCustomerTypeEnterprise: "企业",
		SecCustomerTypeIndividual: "个体工商户",
		SecCustomerTypePerson:     "个人",
	}
	SecInvoiceTypeText = map[SecInvoiceType]string{
		SecInvoiceTypeNone:       "无需发票",
		SecInvoiceTypeElectronic: "电子发票",
		SecInvoiceTypeVat:        "增值税发票",
	}
)
View Source
var FastRegisterStatuses = map[int32]string{
	0:      "生成任务",
	1:      "任务超时",
	2:      "任务已经被用户拒绝",
	3:      "用户同意创建",
	4:      "已经发起人脸流程",
	5:      "人脸认证失败",
	6:      "人脸认证ok",
	7:      "人脸认证后,已经提交手机号码下发验证码",
	8:      "手机验证失败",
	9:      "手机验证成功",
	10:     "手机号验证成功后,提交了创建",
	11:     "创建失败",
	12:     "创建成功",
	13:     "验证成功",
	14:     "验证失败",
	100001: "已下发的模板消息法人并未确认且已超时(24h),未进行身份证校验",
	100002: "已下发的模板消息法人并未确认且已超时(24h),未进行人脸识别校验",
	100003: "已下发的模板消息法人并未确认且已超时(24h)",
	101:    "工商数据返回:“企业已注销”",
	102:    "工商数据返回:“企业不存在或企业信息未更新”",
	103:    "工商数据返回:“企业法定代表人姓名不一致”",
	104:    "工商数据返回:“企业法定代表人身份证号码不一致”",
	105:    "法定代表人身份证号码,工商数据未更新,请 5-15 个工作日之后尝试",
	1000:   "工商数据返回:“企业信息或法定代表人信息不一致”",
	1001:   "主体创建小程序数量达到上限",
	1002:   "主体违规命中黑名单",
	1003:   "管理员绑定账号数量达到上限",
	1004:   "管理员违规命中黑名单",
	1005:   "管理员手机绑定账号数量达到上限",
	1006:   "管理员手机号违规命中黑名单",
	1008:   "管理员身份证违规命中黑名单",
	-1:     "企业与法人姓名不一致",
}
View Source
var ICPEntranceStatus = map[int32]string{
	2:    "平台审核中",
	3:    "平台审核驳回",
	4:    "管局审核中",
	5:    "管局审核驳回",
	6:    "已备案",
	1024: "未备案",
	1025: "未备案 && 小程序信息未填",
	1026: "未备案 && 小程序类目未填",
	1027: "未备案 && 小程序信息未填 && 小程序类目未填",
	1028: "未备案 && 小程序未认证",
	1029: "未备案 && 小程序信息未填 && 小程序未认证",
	1030: "未备案 && 小程序类目未填 && 小程序未认证",
	1031: "未备案 && 小程序信息未填 && 小程序类目未填 && 小程序未认证",
}

app document https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/record/getIcpEntranceInfo.html

View Source
var ICPFaceStatus = map[int32]string{
	0: "未开始", 1: "等待中", 2: "失败", 3: "成功",
}
View Source
var ICPStatuses = map[int32]string{
	2:    "平台审核中",
	3:    "平台审核驳回",
	4:    "管局审核中",
	5:    "管局审核驳回",
	6:    "已备案",
	1024: "未备案",
	1025: "未备案 && 小程序信息未填",
	1026: "未备案 && 小程序类目未填",
	1027: "未备案 && 小程序信息未填 && 小程序类目未填",
	1028: "未备案 && 小程序未认证",
	1029: "未备案 && 小程序信息未填 && 小程序未认证",
	1030: "未备案 && 小程序类目未填 && 小程序未认证",
	1031: "未备案 && 小程序信息未填 && 小程序类目未填 && 小程序未认证",
}
View Source
var PrivacyOptions = []*PrivacySettingDesc{
	{
		PrivacyKey:  "UserInfo",
		PrivacyDesc: "用户信息(微信昵称、头像)",
	},
	{
		PrivacyKey:  "Location",
		PrivacyDesc: "位置信息",
	},
	{
		PrivacyKey:  "Address",
		PrivacyDesc: "地址",
	},
	{
		PrivacyKey:  "Invoice",
		PrivacyDesc: "发票信息",
	},
	{
		PrivacyKey:  "RunData",
		PrivacyDesc: "微信运动数据",
	},
	{
		PrivacyKey:  "Record",
		PrivacyDesc: "麦克风",
	},
	{
		PrivacyKey:  "Album",
		PrivacyDesc: "选中的照片或视频信息",
	},
	{
		PrivacyKey:  "Camera",
		PrivacyDesc: "摄像头",
	},
	{
		PrivacyKey:  "PhoneNumber",
		PrivacyDesc: "手机号码",
	},
	{
		PrivacyKey:  "Contact",
		PrivacyDesc: "通讯录(仅写入)权限",
	},
	{
		PrivacyKey:  "DeviceInfo",
		PrivacyDesc: "设备信息",
	},
	{
		PrivacyKey:  "EXIDNumber",
		PrivacyDesc: "身份证号码",
	},
	{
		PrivacyKey:  "EXOrderInfo",
		PrivacyDesc: "订单信息",
	},
	{
		PrivacyKey:  "EXUserPublishContent",
		PrivacyDesc: "发布内容",
	},
	{
		PrivacyKey:  "EXUserFollowAcct",
		PrivacyDesc: "所关注账号",
	},
	{
		PrivacyKey:  "EXUserOpLog",
		PrivacyDesc: "操作日志",
	},
	{
		PrivacyKey:  "AlbumWriteOnly",
		PrivacyDesc: "相册(仅写入)权限",
	},
	{
		PrivacyKey:  "LicensePlate",
		PrivacyDesc: "车牌号",
	},
	{
		PrivacyKey:  "BlueTooth",
		PrivacyDesc: "蓝牙",
	},
	{
		PrivacyKey:  "CalendarWriteOnly",
		PrivacyDesc: "日历(仅写入)权限",
	},
	{
		PrivacyKey:  "Email",
		PrivacyDesc: "邮箱",
	},
	{
		PrivacyKey:  "MessageFile",
		PrivacyDesc: "选中的文件",
	},
}
View Source
var SecApllyStatuses = map[int32]string{
	0: "审核单不存在",
	1: "待支付",
	2: "审核中",
	3: "打回重填",
	4: "认证通过",
	5: "认证失败(无法修改)",
}
View Source
var SecApplyStatus = map[int32]string{
	0: "审核单不存在",
	1: "待支付",
	2: "审核中",
	3: "打回重填",
	4: "认证通过",
	5: "认证最终失败(不能再修改)",
}
View Source
var SecTaskStatus = map[int32]string{
	0:  "初始状态",
	1:  "任务超时, 24小时内有效",
	2:  "用户授权拒绝",
	3:  "用户授权同意 ",
	4:  "发起人脸流程",
	5:  "人脸认证失败",
	6:  "人脸认证ok",
	7:  "人脸认证后,已经提交手机号码下发验证码",
	8:  "手机验证失败",
	9:  "手机验证成功",
	11: "创建认证审核单失败",
	12: "创建认证审核审核单成功",
	14: "验证失败",
	15: "等待支付",
}
View Source
var SecTaskStatuses = map[int32]string{
	0:  "初始状态",
	1:  "任务超时",
	2:  "用户授权拒绝",
	3:  "用户授权同意",
	4:  "发起人脸流程",
	5:  "人脸认证失败",
	6:  "人脸认证成功",
	7:  "人脸认证后,已经提交手机号码下发验证码",
	8:  "手机验证失败",
	9:  "手机验证成功",
	11: "创建认证审核单失败",
	12: "创建认证审核审核单成功",
	14: "验证失败",
	15: "等待支付",
}

Functions

func TransContentLabel added in v0.0.88

func TransContentLabel(i ContentLabel) string

Types

type AddCategory

type AddCategory struct {
	First      int64                  `name:"first" json:"first"`
	Second     int64                  `name:"second" json:"second"`
	Certicates []AddCategoryCerticate `name:"certicates" json:"certicates"`
}

type AddCategoryCerticate

type AddCategoryCerticate struct {
	Key   string `name:"key" json:"key"`
	Value string `name:"value" json:"value"`
}

type AddCategoryRequest

type AddCategoryRequest struct {
	AccessToken string        `position:"query" name:"access_token"`
	Categories  []AddCategory `position:"body" name:"categories" json:"categories"`
}

type AddCategoryResponse

type AddCategoryResponse struct {
}

type AddToTemplateRequest

type AddToTemplateRequest struct {
	AccessToken  string `position:"query" name:"access_token" json:"-"`
	DraftID      int64  `position:"body" name:"draft_id" json:"draft_id"`
	TemplateType int64  `position:"body" name:"template_type" json:"template_type"`
}

type AddToTemplateResponse

type AddToTemplateResponse struct {
}

type AppVersion

type AppVersion struct {
	AppVersion  int64  `json:"app_version"`
	UserVersion string `json:"user_version"`
	UserDesc    string `json:"user_desc"`
	CommitTime  int64  `json:"commit_time"`
}

type AuthorizationInfo

type AuthorizationInfo struct {
	AuthorizerAppID        string `json:"authorizer_appid"`
	AuthorizerAccessToken  string `json:"authorizer_access_token"`
	ExpiresIn              int64  `json:"expires_in"`
	AuthorizerRefreshToken string `json:"authorizer_refresh_token"`
	FuncInfo               []struct {
		FuncScopeCategory struct {
			ID int64
		} `json:"funcscope_category"`
	} `json:"func_info"`
}

AuthorizationInfo 授权信息

type AuthorizationURL

type AuthorizationURL struct {
	PC string `json:"pc"`
	H5 string `json:"h5"`
}

type AuthorizerInfo

type AuthorizerInfo struct {
	Nickname        string `json:"nick_name"`
	HeadImage       string `json:"head_img"`
	ServiceTypeInfo struct {
		ID int64 `json:"id"`
	} `json:"service_type_info"`
	VerifyTypeInfo struct {
		ID int64 `json:"id"`
	} `json:"verify_type_info"`
	Username        string `json:"user_name"`
	PrincipalName   string `json:"principal_name"` //主体名称
	Alias           string `json:"alias"`          //公众号所设置的微信号
	Signature       string `json:"signature"`      //(小程序)账号介绍
	BusinessInfo    string `json:"business_info"`
	QRCodeURL       string `json:"qrcode_url"`
	MiniProgramInfo struct {
		Network    WxaNetwork    `json:"network"`
		Categories []WxaCategory `json:"categories"`
	} `json:"MiniProgramInfo"`
}

AuthorizerInfo 授权信息

type AuthorizerTokenRequest

type AuthorizerTokenRequest struct {
	ComponentAccessToken   string `position:"query" name:"component_access_token" json:"-"`
	ComponentAppID         string `position:"body" name:"component_appid" json:"component_appid"`
	AuthorizerAppID        string `position:"body" name:"authorizer_appid" json:"authorizer_appid"`
	AuthorizerRefreshToken string `position:"body" name:"authorizer_refresh_token" json:"authorizer_refresh_token"`
}

type AuthorizerTokenResponse

type AuthorizerTokenResponse struct {
	AuthorizerAccessToken  string `json:"authorizer_access_token"`
	ExpiresIn              int64  `json:"expires_in"`
	AuthorizerRefreshToken string `json:"authorizer_refresh_token"`
}

type BindTesterRequest

type BindTesterRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
	WeChatID    string `position:"body" name:"wechatid" json:"wechatid"`
}

type BindTesterResponse

type BindTesterResponse struct {
	UserString string `json:"userstr"`
}

type BusinessInfo

type BusinessInfo struct {
	OpenStore int64 `json:"open_store"` //是否开通微信门店功能
	OpenScan  int64 `json:"open_scan"`  //是否开通微信扫商品功能
	OpenPay   int64 `json:"open_pay"`   //是否开通微信支付功能
	OpenCard  int64 `json:"open_card"`  //是否开通微信卡券功能
	OpenShake int64 `json:"open_shake"` //是否开通微信摇一摇功能
}

BusinessInfo 开通信息

type Category

type Category struct {
	ID            int64   `json:"id"`
	Name          string  `json:"name"`
	Level         int64   `json:"level"`
	Father        int64   `json:"father"`
	Children      []int64 `json:"children"`
	SensitiveType int64   `json:"sensitive_type"`
	Qualify       struct {
		ExterList []struct {
			InnerList []struct {
				Name string `json:"name"`
				URL  string `json:"url"`
			} `json:"inner_list"`
		} `json:"exter_list"`
		Remark string `json:"remark"`
	} `json:"qualify"`
}

type ChangeWxaSearchStatusRequest

type ChangeWxaSearchStatusRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
	Status      string `position:"body" name:"status" json:"status"`
}

type ChangeWxaSearchStatusResponse

type ChangeWxaSearchStatusResponse struct {
}

type CheckWxVerifyNicknameRequest

type CheckWxVerifyNicknameRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
	Nickname    string `position:"body" name:"nick_name" json:"nick_name"`
}

type CheckWxVerifyNicknameResponse

type CheckWxVerifyNicknameResponse struct {
	HitCondition bool   `json:"hit_condition"`
	Wording      string `json:"wording"`
}

type CommonRequest

type CommonRequest struct {
	Method      string
	ContentType string
	URL         string
	Data        interface{}
}

func (*CommonRequest) BuildRequest

func (cr *CommonRequest) BuildRequest() (*http.Request, error)

func (*CommonRequest) WithContentType

func (cr *CommonRequest) WithContentType(ct string) *CommonRequest

func (*CommonRequest) WithData

func (cr *CommonRequest) WithData(data interface{}) *CommonRequest

func (*CommonRequest) WithMethod

func (cr *CommonRequest) WithMethod(method string) *CommonRequest

func (*CommonRequest) WithURL

func (cr *CommonRequest) WithURL(url string) *CommonRequest

type CommonResponse

type CommonResponse struct {
	ErrorCode    int64  `json:"errcode"`
	ErrorMessage string `json:"errmsg"`
}

func (CommonResponse) Error

func (r CommonResponse) Error() error

func (CommonResponse) Success

func (r CommonResponse) Success() bool

type ComponentTokenRequest

type ComponentTokenRequest struct {
	ComponentAppID        string `position:"body" name:"component_appid" json:"component_appid"`
	ComponentAppSecret    string `position:"body" name:"component_appsecret" json:"component_appsecret"`
	ComponentVerifyTicket string `position:"body" name:"component_verify_ticket" json:"component_verify_ticket"`
}

type ComponentTokenResponse

type ComponentTokenResponse struct {
	ComponentAccessToken string `json:"component_access_token"`
	ExpiresIn            int64  `json:"expires_in"`
}

type ContentCheckDetail added in v0.0.88

type ContentCheckDetail struct {
	Strategy  string `json:"strategy"`
	ErrorCode string `json:"errcode"`
	Suggest   string `json:"suggest"`
	Label     string `json:"label"`
	KeyWord   string `json:"keyword"`
	Prob      uint16 `json:"prob"`
}

type ContentCheckMediaRequest added in v0.0.88

type ContentCheckMediaRequest struct {
	AccessToken string       `position:"query" name:"access_token" json:"-"`
	MediaURL    string       `position:"body" name:"media_url" json:"media_url"`
	MediaType   string       `position:"body" name:"media_type" json:"media_type"`
	Version     uint16       `position:"body" name:"version" json:"version"`
	Scene       ContentScene `position:"body" name:"scene" json:"scene"`
	OpenID      string       `position:"body" name:"openid" json:"openid"`
}

type ContentCheckMediaResponse added in v0.0.88

type ContentCheckMediaResponse struct {
	TraceID string `json:"trace_id"`
}

type ContentCheckMessage added in v0.0.88

type ContentCheckMessage struct {
	Appid   string                `json:"appid" xml:"appid"`
	TraceID string                `json:"trace_id" xml:"trace_id"`
	Version uint16                `json:"version" xml:"version"`
	Result  *ContentCheckResult   `json:"result" xml:"result"`
	Detail  []*ContentCheckDetail `json:"detail" xml:"detail"`
}

type ContentCheckResult added in v0.0.88

type ContentCheckResult struct {
	Suggest string `json:"suggest"`
	Label   string `json:"label"`
}

type ContentCheckTextRequest added in v0.0.88

type ContentCheckTextRequest struct {
	AccessToken string       `position:"query" json:"-" name:"access_token"`
	Content     string       `position:"body" json:"-" name:"content"`
	Version     uint16       `position:"body" json:"" name:"version"`
	Scene       ContentScene `position:"body" json:"" name:"scene"`
	OpenID      string       `position:"body" json:"" name:"openid"`
	Title       string       `position:"body" json:"" name:"title"`
	Nickname    string       `position:"body" json:"" name:"nickname"`
	Signature   string       `position:"body" json:"" name:"signature"`
}

type ContentCheckTextResponse added in v0.0.88

type ContentCheckTextResponse struct {
	Detail  []*ContentCheckDetail `json:"detail"`
	TraceID string                `json:"trace_id"`
	Result  *ContentCheckResult   `json:"result"`
}

type ContentLabel added in v0.0.88

type ContentLabel uint16

type ContentScene added in v0.0.88

type ContentScene uint16

type CreatePreAuthCodeRequest

type CreatePreAuthCodeRequest struct {
	ComponentAccessToken string `position:"query" name:"component_access_token" json:"-"`
	ComponentAppID       string `position:"body" name:"component_appid" json:"component_appid"`
}

type CreatePreAuthCodeResponse

type CreatePreAuthCodeResponse struct {
	PreAuthCode string `json:"pre_auth_code"`
	ExpiresIn   int64  `json:"expires_in"` //有效期,单位:秒
}

type CustomImageMessage added in v0.0.75

type CustomImageMessage struct {
	MediaID string `json:"media_id"`
}

type CustomLinkMessage added in v0.0.75

type CustomLinkMessage struct {
	Title       string `json:"title"`
	Description string `json:"description"`
	URL         string `json:"url"`
	ThumbURL    string `json:"thumb_url"`
}

type CustomMessageType added in v0.0.75

type CustomMessageType string

type CustomMiniProgramPageMessage added in v0.0.75

type CustomMiniProgramPageMessage struct {
	Title        string `json:"title"`
	PagePath     string `json:"pagepath"`
	ThumbMediaID string `json:"thumb_media_id"`
}

type CustomTextMessage added in v0.0.75

type CustomTextMessage struct {
	Content string `json:"content"`
}

type DeleteCategoryRequest

type DeleteCategoryRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
	First       int64  `position:"body" name:"first" json:"first"`
	Second      int64  `position:"body" name:"second" json:"second"`
}

type DeleteCategoryResponse

type DeleteCategoryResponse struct {
}

type DeleteTemplateRequest

type DeleteTemplateRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
	TemplateID  string `position:"body" name:"template_id" json:"template_id"`
}

type DeleteTemplateResponse

type DeleteTemplateResponse struct {
}

type EventMessage added in v0.0.60

type EventMessage struct {
	AppID        string `xml:"appid"`
	ToUserName   string `xml:"ToUserName"`
	FromUserName string `xml:"FromUserName"`
	CreateTime   int64  `xml:"CreateTime"`
	MsgType      string `xml:"MsgType"`
	Event        string `xml:"Event"`
	Ret          string `xml:"ret"`
	Nickname     string `xml:"nickname"`
	Reason       string `xml:"reason"`
	First        int64  `xml:"first"`
	Second       int64  `xml:"second"`
}

type EventMessageProto added in v0.0.60

type EventMessageProto struct {
	AppID      string `xml:"AppId"`
	ToUserName string `xml:"ToUserName"`
	Encrypt    string `xml:"Encrypt"`
}

type FastRegister added in v0.0.7

type FastRegister struct {
	AuthCode string `xml:"auth_code"`
	Msg      string `xml:"msg"`
	Info     struct {
		Name               string `xml:"name"`
		Code               string `xml:"code"`
		CodeType           int64  `xml:"code_type"`
		LegalPersonaWechat string `xml:"legal_persona_wechat"`
		LegalPersonaName   string `xml:"legal_persona_name"`
		ComponentPhone     string `xml:"component_phone"`
		WxUser             string `xml:"wxuser"`
		IDName             string `xml:"idname"`
	} `xml:"info"`
}

type FastRegisterBetaWeAppRequest

type FastRegisterBetaWeAppRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
	Name        string `position:"body" name:"name" json:"name"`
	OpenID      string `position:"body" name:"openid" json:"openid"`
}

type FastRegisterBetaWeAppResponse

type FastRegisterBetaWeAppResponse struct {
	UniqueID     string `json:"unique_id"`
	AuthorizeURL string `json:"authorize_url"`
}

type FastRegisterPersonalWeAppQueryRequest added in v0.0.3

type FastRegisterPersonalWeAppQueryRequest struct {
	Action               string `position:"query" name:"action" json:"-"`
	ComponentAccessToken string `position:"query" name:"component_access_token" json:"-"`
	TaskID               string `position:"body" name:"taskid" json:"taskid"`
}

type FastRegisterPersonalWeAppQueryResponse added in v0.0.3

type FastRegisterPersonalWeAppQueryResponse FastRegisterPersonalWeAppResponse

type FastRegisterPersonalWeAppRequest

type FastRegisterPersonalWeAppRequest struct {
	Action               string `position:"query" name:"action" json:"-"`
	ComponentAccessToken string `position:"query" name:"component_access_token" json:"-"`
	IDName               string `position:"body" name:"idname" json:"idname"`
	WxUser               string `position:"body" name:"wxuser" json:"wxuser"`
	ComponentPhone       string `position:"body" name:"component_phone" json:"component_phone,omitempty"`
}

type FastRegisterPersonalWeAppResponse

type FastRegisterPersonalWeAppResponse struct {
	TaskID       string `json:"taskid"`
	AuthorizeURL string `json:"authorize_url"`
	Status       int64  `json:"status"`
}

type FastRegisterRequest

type FastRegisterRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
	Ticket      string `position:"body" name:"ticket" json:"ticket"`
}

type FastRegisterResponse

type FastRegisterResponse struct {
	AppID             string `json:"appid"`
	AuthorizationCode string `json:"authorization_code"`
	IsWxVerifySucc    string `json:"is_wx_verify_succ"`
	IsLinkSucc        string `json:"is_link_succ"`
}

type FastRegisterWeAppRequest

type FastRegisterWeAppRequest struct {
	Action               string `position:"query" name:"action" json:"-"`
	ComponentAccessToken string `position:"query" name:"component_access_token" json:"-"`
	Name                 string `position:"body" name:"name" json:"name"`
	Code                 string `position:"body" name:"code" json:"code"`
	CodeType             int64  `position:"body" name:"code_type" json:"code_type"`
	LegalPersonaWechat   string `position:"body" name:"legal_persona_wechat" json:"legal_persona_wechat"`
	LegalPersonaName     string `position:"body" name:"legal_persona_name" json:"legal_persona_name"`
	ComponentPhone       string `position:"body" name:"component_phone" json:"component_phone,omitempty"`
}

type FastRegisterWeAppResponse

type FastRegisterWeAppResponse struct {
}

type FetchDataSettingGetRequest

type FetchDataSettingGetRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
	Action      string `position:"body" name:"action" json:"action"`
}

type FetchDataSettingGetResponse

type FetchDataSettingGetResponse struct {
	IsPreFetchOpen     bool   `json:"is_pre_fetch_open"`
	PreFetchType       int64  `json:"pre_fetch_type"`
	PreFetchURL        string `json:"pre_fetch_url"`
	PreEnv             string `json:"pre_env"`
	PreFunctionName    string `json:"pre_function_name"`
	IsPeriodFetchOpen  bool   `json:"is_period_fetch_open"`
	PeriodFetchType    int64  `json:"period_fetch_type"`
	PeriodFetchURL     string `json:"period_fetch_url"`
	PeriodEnv          string `json:"period_env"`
	PeriodFunctionName string `json:"period_function_name"`
}

type FetchDataSettingSetPreFetchRequest

type FetchDataSettingSetPreFetchRequest struct {
	AccessToken     string `position:"query" name:"access_token" json:"-"`
	Action          string `position:"body" name:"action" json:"action"`
	IsPreFetchOpen  bool   `position:"body" name:"is_pre_fetch_open" json:"is_pre_fetch_open"`
	PreFetchType    int64  `position:"body" name:"pre_fetch_type" json:"pre_fetch_type"`
	PreFetchURL     string `position:"body" name:"pre_fetch_url" json:"pre_fetch_url"`
	PreEnv          string `position:"body" name:"pre_env" json:"pre_env"`
	PreFunctionName string `position:"body" name:"pre_function_name" json:"pre_function_name"`
}

type FetchDataSettingSetPreFetchResponse

type FetchDataSettingSetPreFetchResponse struct {
}

type GetAccountBasicInfoRequest

type GetAccountBasicInfoRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
}

type GetAccountBasicInfoResponse

type GetAccountBasicInfoResponse struct {
	AppID             string        `json:"appid"`
	AccountType       int64         `json:"account_type"`
	PrincipalType     int64         `json:"principal_type"`
	PrincipalName     string        `json:"principal_name"`
	Credential        string        `json:"credential"`
	RealNameStatus    int64         `json:"realname_status"` //实名验证状态
	WxVerifyInfo      VerifyInfo    `json:"wx_verify_info"`
	SignatureInfo     SignatureInfo `json:"signature_info"`
	HeadImageInfo     HeadImageInfo `json:"head_image_info"`
	NicknameInfo      NicknameInfo  `json:"nickname_info"`
	RegisteredCountry int64         `json:"registered_country"`
}

type GetAppCategoriesRequest

type GetAppCategoriesRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
}

type GetAppCategoriesResponse

type GetAppCategoriesResponse struct {
	CategoriesList struct {
		Categories []Category `json:"categories"`
	} `json:"categories_list"`
}

type GetAuthorizerInfoRequest

type GetAuthorizerInfoRequest struct {
	ComponentAccessToken string `position:"query" name:"component_access_token" json:"-"`
	ComponentAppID       string `position:"body" name:"component_appid" json:"component_appid"`
	AuthorizerAppID      string `position:"body" name:"authorizer_appid" json:"authorizer_appid"`
}

type GetAuthorizerInfoResponse

type GetAuthorizerInfoResponse struct {
	AuthorizerInfo    AuthorizerInfo    `json:"authorizer_info"`
	AuthorizationInfo AuthorizationInfo `json:"authorization_info"`
}

type GetCategoriesByTypeRequest

type GetCategoriesByTypeRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
	VerifyType  string `position:"body" name:"verify_type" json:"verify_type"`
}

type GetCategoriesByTypeResponse

type GetCategoriesByTypeResponse struct {
	CategoriesList struct {
		Categories []WxaCategory `json:"categories"`
	} `json:"categories_list"`
}

type GetCategoryRequest

type GetCategoryRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
}

type GetCategoryResponse

type GetCategoryResponse struct {
	Categories []*WxaCategory `json:"categories"`
	Limit      int64          `json:"limit"` //?access_token=TOKEN
}

type GetDomainConfirmFileRequest added in v0.0.71

type GetDomainConfirmFileRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
}

type GetDomainConfirmFileResponse added in v0.0.71

type GetDomainConfirmFileResponse struct {
	FileName    string `json:"file_name"`
	FileContent string `json:"file_content"`
}

type GetMpAdminAuthRequest

type GetMpAdminAuthRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
	MpAppID     string `position:"body" name:"mp_appid" json:"mp_appid"`
	SameAdmin   int64  `position:"body" name:"same_admin" json:"same_admin"`
}

type GetMpAdminAuthResponse

type GetMpAdminAuthResponse struct {
	AuthorizerURL string `json:"authorizer_url"`
}

type GetPrivacySettingRequest added in v0.0.70

type GetPrivacySettingRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
}

type GetPrivacySettingResponse added in v0.0.70

type GetPrivacySettingResponse struct {
	CodeExist    int64                 `json:"code_exist"`
	PrivacyList  []string              `json:"privacy_list"`
	SettingList  []*PrivacySettingItem `json:"setting_list"`
	UpdateTime   int64                 `json:"update_time"`
	OwnerSetting PrivacyOwnerSetting   `json:"owner_stting"`
	PrivacyDesc  PrivacySettingDesc    `json:"privacy_desc"`
}

type GetTemplateDraftListRequest

type GetTemplateDraftListRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
}

type GetTemplateDraftListResponse

type GetTemplateDraftListResponse struct {
	DraftList []TemplateDraft `json:"draft_list"`
}

type GetTemplateListRequest

type GetTemplateListRequest struct {
	AccessToken  string `position:"query" name:"access_token" json:"-"`
	TemplateType string `position:"query" name:"template_type" json:"-"`
}

type GetTemplateListResponse

type GetTemplateListResponse struct {
	TemplateList []Template `json:"template_list"`
}

type GetUserPhoneNumberRequest added in v0.0.72

type GetUserPhoneNumberRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
	Code        string `json:"code"`
}

type GetUserPhoneNumberResponse added in v0.0.72

type GetUserPhoneNumberResponse struct {
	PhoneInfo *UserPhoneInfo `json:"phone_info"`
}

type GetWeAppSupportVersionRequest

type GetWeAppSupportVersionRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
}

type GetWeAppSupportVersionResponse

type GetWeAppSupportVersionResponse struct {
	NowVersion string `json:"now_version"`
	UVInfo     struct {
		Items []struct {
			Percentage float64 `json:"percentage"`
			Version    string  `json:"version"`
		} `json:"items"`
	} `json:"uv_info"`
}

type GetWxaSearchStatusRequest

type GetWxaSearchStatusRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
}

type GetWxaSearchStatusResponse

type GetWxaSearchStatusResponse struct {
	Status int64 `json:"status"`
}

type HeadImageInfo

type HeadImageInfo struct {
	HeadImageURL    string `json:"head_image_url"`
	ModifyUsedCount int64  `json:"modify_used_count"`
	ModifyQuota     int64  `json:"modify_quota"`
}

HeadImageInfo 头像信息

type ICPApplets added in v0.0.73

type ICPApplets struct {
	BaseInfo      *ICPAppletsBaseInfo      `json:"base_info"`
	PrincipalInfo *ICPAppletsPrincipalInfo `json:"principal_info"`
}

type ICPAppletsBaseInfo added in v0.0.73

type ICPAppletsBaseInfo struct {
	APPID               string                  `json:"appid"`                 // 小程序ID,不用填写,后台自动拉取
	Name                string                  `json:"name"`                  // 小程序名称,不用填写,后台自动拉取
	ServiceContentTypes []int32                 `json:"service_content_types"` // 小程序服务内容类型,只能填写二级服务内容类型,最多5个,示例值:[3, 4](参考:获取小程序服务类型接口)
	NRLXDetail          []*ICPAppletsNRLXDetail `json:"nrlx_details"`          // 前置审批项,列表中不能存在重复的前置审批类型id,如不涉及前置审批项,也需要填“以上都不涉及”
	Comment             string                  `json:"comment"`               // 请具体描述小程序实际经营内容、主要服务内容,该信息为主管部门审核重要依据,备注内容字数限制20-200字,请认真填写。(特殊备注要求请查看注意事项)
	RecodeNumber        string                  `json:"record_number"`         // 小程序备案号,示例值:粤B2-20090059-1626X(申请小程序备案时不用填写,查询已备案详情时会返回)
}

type ICPAppletsNRLXDetail added in v0.0.73

type ICPAppletsNRLXDetail struct {
	Type  int32  `json:"type"`  // 前置审批类型,示例值:2(参考:获取前置审批项接口)
	Code  string `json:"code"`  // 前置审批号,如果前置审批类型不是“以上都不涉及”,则必填,示例值:"粤-12345号"
	Media string `json:"media"` // 前置审批媒体材料 media_id,如果前置审批类型不是“以上都不涉及”,则必填
}

type ICPAppletsPrincipalInfo added in v0.0.73

type ICPAppletsPrincipalInfo struct {
	Name                         string `json:"name"`                            // 负责人姓名,示例值:"张三"
	Mobile                       string `json:"mobile"`                          // 负责人联系方式,示例值:"13012344321"
	Email                        string `json:"email"`                           // 负责人电子邮件,示例值:"zhangsan@zhangsancorp.com"
	EmergencyContact             string `json:"emergency_contact"`               // 负责人应急联系方式,示例值:"17743211234"
	CertificateType              int32  `json:"certificate_type"`                // 负责人证件类型,示例值:2(参考:获取证件类型接口,此处只能填入单位性质属于个人的证件类型)
	CertificateNumber            string `json:"certificate_number"`              // 负责人证件号码,示例值:"110105199001011234"
	CertificateValidityDateStart string `json:"certificate_validity_date_start"` // 负责人证件有效期起始日期,格式为 YYYYmmdd,示例值:"20230815"
	CertificateValidityDateEnd   string `json:"certificate_validity_date_end"`   // 负责人证件有效期终止日期,格式为 YYYYmmdd,如证件长期有效,请填写 "长期",示例值:"20330815"
	CertificatePhotoFront        string `json:"certificate_photo_front"`         // 负责人证件正面照片 media_id(身份证为人像面)
	CertificatePhotoBack         string `json:"certificate_photo_back"`          // 负责人证件背面照片 media_id(身份证为国徽面)
	AuthorizationLetter          string `json:"authorization_letter"`            // 授权书 media_id,当主体负责人不是法人时需要主体负责人授权书,当小程序负责人不是法人时需要小程序负责人授权书,
	VerifyTaskID                 string `json:"verify_task_id"`                  // 扫脸认证任务id(扫脸认证接口返回的task_id),仅小程序负责人需要扫脸,主体负责人无需扫脸
}

type ICPApplyFilingRequest added in v0.0.73

type ICPApplyFilingRequest struct {
	AccessToken  string        `position:"query" name:"access_token" json:"-"`
	ICPSubject   *ICPSubject   `position:"body" name:"icp_subject" json:"icp_subject"`
	ICPApplets   *ICPApplets   `position:"body" name:"icp_applets" json:"icp_applets"`
	ICPMaterials *ICPMaterials `position:"body" name:"icp_materials" json:"icp_materials"`
}

type ICPApplyFilingResponse added in v0.0.73

type ICPApplyFilingResponse struct {
}

type ICPCancelApplyFilingRequest added in v0.0.73

type ICPCancelApplyFilingRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
}

type ICPCancelApplyFilingResponse added in v0.0.73

type ICPCancelApplyFilingResponse struct {
}

type ICPCancelApplyType added in v0.0.73

type ICPCancelApplyType int32

type ICPCancelFilingRequest added in v0.0.73

type ICPCancelFilingRequest struct {
	AccessToken string        `position:"query" name:"access_token" json:"-"`
	CancelType  ICPCancelType `position:"cancel_type" name:"cancel_type" json:"cancel_type"`
}

type ICPCancelFilingResponse added in v0.0.73

type ICPCancelFilingResponse struct {
}

type ICPCancelType added in v0.0.73

type ICPCancelType int32
const (
	ICPCancelTypePrincipal ICPCancelType = 1 // 注销主体,
	ICPCancelTypeApp       ICPCancelType = 2 // 注销小程序
	ICPCancelTypeWxa       ICPCancelType = 3 // 注销微信小程序
)

type ICPCertificateItem added in v0.0.73

type ICPCertificateItem struct {
	Type        int32  `json:"type"`
	SubjectType int32  `json:"subject_type"`
	Name        string `json:"name"`
	Remark      string `json:"remark"`
}

type ICPCreateVerifyTaskRequest added in v0.0.73

type ICPCreateVerifyTaskRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
}

type ICPCreateVerifyTaskResponse added in v0.0.73

type ICPCreateVerifyTaskResponse struct {
	TaskID string `json:"task_id"`
}

type ICPDistrictCodeItem added in v0.0.73

type ICPDistrictCodeItem struct {
	Type    ICPDistrictType        `json:"type"`               // 区域类型
	Code    int32                  `json:"code"`               // 区域代码
	Name    string                 `json:"name"`               // 区域名称
	SubList []*ICPDistrictCodeItem `json:"sub_list,omitempty"` // 下级区域信息列表
}

type ICPDistrictType added in v0.0.73

type ICPDistrictType int32
const (
	ICPDistrictTypeProvince ICPDistrictType = 1
	ICPDistrictTypeCity     ICPDistrictType = 2
	ICPDistrictTypeDistrict ICPDistrictType = 3
)

type ICPEntranceAuditData added in v0.0.73

type ICPEntranceAuditData struct {
	KeyName string `json:"key_name"` // 审核不通过的字段中文名
	Error   string `json:"error"`    // 字段不通过的原因
	Suggest string `json:"suggest"`  // 修改建议
}

type ICPEntranceInfo added in v0.0.73

type ICPEntranceInfo struct {
	Status      int32                   `json:"status"`       // 备案状态,取值参考备案状态枚举,示例值:1024
	IsCanceling bool                    `json:"is_canceling"` // 是否正在注销备案
	Available   int32                   `json:"available"`    // 备案入口是否对该小程序开放,0:不开放,1:开放。特定情况下入口不会开放,如小程序昵称包含某些关键词时、管局系统不可用时,当备案入口开放时才能提交备案申请。
	AuditData   []*ICPEntranceAuditData `json:"audit_data"`   //驳回原因,备案不通过时返回
}

type ICPGetEntranceInfoRequest added in v0.0.73

type ICPGetEntranceInfoRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
}

type ICPGetEntranceInfoResponse added in v0.0.73

type ICPGetEntranceInfoResponse struct {
	Info *ICPEntranceInfo `json:"info"`
}

type ICPGetOnlineOrderRequest added in v0.0.73

type ICPGetOnlineOrderRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
}

type ICPGetOnlineOrderResponse added in v0.0.73

type ICPGetOnlineOrderResponse struct {
	ICPSubject *ICPSubject `json:"icp_subject"`
	ICPApplets *ICPApplets `json:"icp_applets"`
}

type ICPMaterials added in v0.0.73

type ICPMaterials struct {
	CommitmentLetter                 []string `json:"commitment_letter"`                  // 互联网信息服务承诺书 media_id,最多上传1个
	BusinessNameChangeLetter         []string `json:"business_name_change_letter"`        // 主体更名函 media_id(非个人类型,且发生过更名时需要上传),最多上传1个
	PartyBuildingConfirmationLetter  []string `json:"party_building_confirmation_letter"` // 党建确认函 media_id,最多上传1个
	PromiseVideo                     []string `json:"promise_video"`                      // 承诺视频 media_id,最多上传1个
	AuthenticityResponsibilityLetter []string `json:"authenticity_responsibility_letter"` // 网站备案信息真实性责任告知书 media_id,最多上传1个
	AUthenticityCommitmentLetter     []string `json:"authenticity_commitment_letter"`     // 小程序备案信息真实性承诺书 media_id,最多上传1个
	WebsiteConstructionProposal      []string `json:"website_construction_proposal"`      // 小程序建设方案书 media_id,最多上传1个
	SubjectOtherMaterials            []string `json:"subject_other_materials"`            // 主体其它附件 media_id,最多上传10个
	AppletsOtherMaterials            []string `json:"applets_other_materials"`            // 小程序其它附件 media_id,最多上传10个
	HoldingCertificatePhoto          []string `json:"holding_certificate_photo"`          // 手持证件照 media_id,最多上传1个
}

type ICPMediaType added in v0.0.73

type ICPMediaType string

type ICPNRLXItem added in v0.0.73

type ICPNRLXItem struct {
	Type int32  `json:"type"`
	Name string `json:"name"`
}

type ICPQueryCertificateTypesRequest added in v0.0.73

type ICPQueryCertificateTypesRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
}

type ICPQueryCertificateTypesResponse added in v0.0.73

type ICPQueryCertificateTypesResponse struct {
	Items []*ICPCertificateItem `json:"items"`
}

type ICPQueryDistrictCodeRequest added in v0.0.73

type ICPQueryDistrictCodeRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
}

type ICPQueryDistrictCodeResponse added in v0.0.73

type ICPQueryDistrictCodeResponse struct {
	Items []*ICPDistrictCodeItem `json:"items"`
}

type ICPQueryNRLXTypesRequest added in v0.0.73

type ICPQueryNRLXTypesRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
}

type ICPQueryNRLXTypesResponse added in v0.0.73

type ICPQueryNRLXTypesResponse struct {
	Items []*ICPNRLXItem `json:"items"`
}

type ICPQueryServiceContentTypesRequest added in v0.0.73

type ICPQueryServiceContentTypesRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
}

type ICPQueryServiceContentTypesResponse added in v0.0.73

type ICPQueryServiceContentTypesResponse struct {
	Items []*ICPServiceContentItem `json:"items"`
}

type ICPQuerySubjectTypesRequest added in v0.0.73

type ICPQuerySubjectTypesRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
}

type ICPQuerySubjectTypesResponse added in v0.0.73

type ICPQuerySubjectTypesResponse struct {
	Items []*ICPSubjectItem `json:"items"`
}

type ICPQueryVerifyTaskRequest added in v0.0.73

type ICPQueryVerifyTaskRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
	TaskID      string `position:"body" name:"task_id" json:"task_id"`
}

type ICPQueryVerifyTaskResponse added in v0.0.73

type ICPQueryVerifyTaskResponse struct {
	IsFinished bool  `json:"is_finished"`
	FaceStatus int32 `json:"face_status"`
}

type ICPServiceContentItem added in v0.0.73

type ICPServiceContentItem struct {
	Type       int32  `json:"type"`
	ParentType int32  `json:"parent_type"`
	Name       string `json:"name"`
	Remark     string `json:"remark"`
}

type ICPSubject added in v0.0.73

type ICPSubject struct {
	BaseInfo        *ICPSubjectBaseInfo        `json:"base_info"`                   // 主体基本信息
	PersonalInfo    *ICPSubjectPersonalInfo    `json:"personal_info,omitempty"`     // 个人主体额外信息 (非必填)
	OrganizeInfo    *ICPSubjectOrganizeInfo    `json:"organiaze_info"`              // 主体额外信息(个人备案时,如果存在与主体负责人信息相同的字段,则填入相同的值)
	PrincipalInfo   *ICPSubjectPrincipalInfo   `json:"principal_info"`              // 主体负责人信息
	LegalPersonInfo *ICPSubjectLegalPersonInfo `json:"legal_person_info,omitempty"` // 法人信息(非个人备案,且主体负责人不是法人时,必填)
}

type ICPSubjectBaseInfo added in v0.0.73

type ICPSubjectBaseInfo struct {
	Type         int32  `json:"type"`          // 主体性质,示例值:5
	Name         string `json:"name"`          // 主办单位名称,示例值:"张三"
	Province     string `json:"province"`      // 备案省份,使用省份代码,示例值:"110000"(参考:获取区域信息接口)
	City         string `json:"city"`          // 备案城市,使用城市代码,示例值:"110100"(参考:获取区域信息接口)
	District     string `json:"district"`      // 备案县区,使用县区代码,示例值:"110105"(参考:获取区域信息接口)
	Address      string `json:"address"`       // 通讯地址,必须属于备案省市区,地址开头的省市区不用填入,例如:通信地址为“北京市朝阳区高碑店路181号1栋12345室”时,只需要填写 "高碑店路181号1栋12345室" 即可
	Comment      string `json:"comment"`       // 主体信息备注,根据需要,如实填写
	RecordNumber string `json:"record_number"` // 主体备案号,示例值:粤B2-20090059(申请小程序备案时不用填写,查询已备案详情时会返回)
}

type ICPSubjectItem added in v0.0.73

type ICPSubjectItem struct {
	Type   int32  `json:"type"`
	Name   string `json:"name"`
	Remark string `json:"remark"`
}

type ICPSubjectLegalPersonInfo added in v0.0.73

type ICPSubjectLegalPersonInfo struct {
	Name              string `json:"name"`               // 法人代表姓名
	CertificateNumber string `json:"certificate_number"` // 法人证件号码
}

type ICPSubjectOrganizeInfo added in v0.0.73

type ICPSubjectOrganizeInfo struct {
	CertificateType    int32  `json:"certificate_type"`    // 主体证件类型,示例值:2(参考:获取证件类型接口)
	CertificateNumber  string `json:"certificate_number"`  //主体证件号码,示例值:"110105199001011234"
	CertificateAddress string `json:"certificate_address"` //主体证件住所,示例值:"北京市朝阳区高碑店路181号1栋12345室"
	CertificatePhoto   string `json:"certificate_photo"`   //	主体证件照片 media_id,如果小程序主体为非个人类型,则必填,
}

type ICPSubjectPersonalInfo added in v0.0.73

type ICPSubjectPersonalInfo struct {
	ResidencePermit string `json:"residence_permit"` // 临时居住证明照片 media_id,个人备案且非本省人员,需要提供居住证、暂住证、社保证明、房产证等临时居住证明
}

type ICPSubjectPrincipalInfo added in v0.0.73

type ICPSubjectPrincipalInfo struct {
	Name                         string `json:"name"`                            // 负责人姓名
	Mobile                       string `json:"mobile"`                          // 负责人联系方式
	Email                        string `json:"email"`                           // 负责人电子邮件
	EmergencyContact             string `json:"emergency_contact"`               // 负责人应急联系方式
	CertificateType              int32  `json:"certificate_type"`                // 负责人证件类型,示例值:2(参考:获取证件类型接口,此处只能填入单位性质属于个人的证件类型)
	CertificateNumber            string `json:"certificate_number"`              // 负责人证件号码
	CertificateValidityDateStart string `json:"certificate_validity_date_start"` // 负责人证件有效期起始日期,格式为 YYYYmmdd,示例值:"20230815"
	CertificateValidityDate_end  string `json:"certificate_validity_date_end"`   // 负责人证件有效期终止日期,格式为 YYYYmmdd,如证件长期有效,请填写 "长期",示例值:"20330815"
	CertificatePhotoFront        string `json:"certificate_photo_front"`         // 负责人证件正面照片 media_id(身份证为人像面)
	CertificatePhotoBack         string `json:"certificate_photo_back"`          // 负责人证件背面照片 media_id(身份证为国徽面)
	AuthorizationLetter          string `json:"authorization_letter"`            // 授权书 media_id,当主体负责人不是法人时需要主体负责人授权书,当小程序负责人不是法人时需要小程序负责人授权书
	VerifyTaskId                 string `json:"verify_task_id"`                  // 	扫脸认证任务id(扫脸认证接口返回的task_id),仅小程序负责人需要扫脸,主体负责人无需扫脸,
}

type ICPUploadMediaRequest added in v0.0.73

type ICPUploadMediaRequest struct {
	AccessToken     string       `position:"query" name:"access_token" json:"-"`
	Type            ICPMediaType `position:"body" name:"type" json:"type"`
	CertificateType int32        `position:"body" name:"certificate_type" json:"certificate_type"`
	Media           []byte       `position:"body" name:"media" json:"media"`
}

type ICPUploadMediaResponse added in v0.0.73

type ICPUploadMediaResponse struct {
	Type      string `json:"type"`
	MediaID   string `json:"media_id"`
	CreatedAt int64  `json:"created_at"`
}

type JSCodeToSessionRequest added in v0.0.3

type JSCodeToSessionRequest struct {
	AppID                string `position:"query" name:"appid" json:"-"`
	JSCode               string `position:"query" name:"js_code" json:"-"`
	GrantType            string `position:"query" name:"grant_type" json:"-"`
	ComponentAppID       string `position:"query" name:"component_appid" json:"-"`
	ComponentAccessToken string `position:"query" name:"component_access_token" json:"-"`
}

type JSCodeToSessionResponse added in v0.0.3

type JSCodeToSessionResponse struct {
	OpenID     string `json:"openid"`
	SessionKey string `json:"session_key"`
	UnionID    string `json:"unionid"`
}

type MediaUploadRequest added in v0.0.18

type MediaUploadRequest struct {
	AccessToken string    `position:"query" name:"access_token" json:"-"`
	Type        string    `position:"query" name:"type" json:"-"`
	Media       io.Reader `position:"body" name:"media" json:"media"`
}

type MediaUploadResponse added in v0.0.18

type MediaUploadResponse struct {
	Type      string `json:"type"`
	MediaID   string `json:"media_id"`
	CreatedAt int64  `json:"created_at"`
}

type MemberAuthRequest

type MemberAuthRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
	Action      string `position:"body" name:"action" json:"action"`
}

type MemberAuthResponse

type MemberAuthResponse struct {
	Members []struct {
		UserString string `json:"userstr"`
	} `json:"members"`
}

type ModifyCategoryCerticate

type ModifyCategoryCerticate struct {
	Key   string `name:"key" json:"key"`
	Value string `name:"value" json:"value"`
}

type ModifyCategoryRequest

type ModifyCategoryRequest struct {
	AccessToken string                    `position:"query" name:"access_token" json:"-"`
	First       int64                     `position:"body" name:"first" json:"first"`
	Second      int64                     `position:"body" name:"second" json:"second"`
	Certicates  []ModifyCategoryCerticate `position:"body" name:"certicates" json:"certicates"`
}

type ModifyCategoryResponse

type ModifyCategoryResponse struct {
}

type ModifyDomainRequest

type ModifyDomainRequest struct {
	AccessToken     string   `position:"query" name:"access_token" json:"-"`
	Action          string   `position:"body" name:"action" json:"action"`
	RequestDomain   []string `position:"body" name:"requestdomain" json:"requestdomain"`
	WsRequestDomain []string `position:"body" name:"wsrequestdomain" json:"wsrequestdomain"`
	UploadDomain    []string `position:"body" name:"uploaddomain" json:"uploaddomain"`
	DownloadDomain  []string `position:"body" name:"downloaddomain" json:"downloaddomain"`
}

type ModifyDomainResponse

type ModifyDomainResponse struct {
	RequestDomain   []string `position:"body" name:"requestdomain" json:"requestdomain"`
	WsRequestDomain []string `position:"body" name:"wsrequestdomain" json:"wsrequestdomain"`
	UploadDomain    []string `position:"body" name:"uploaddomain" json:"uploaddomain"`
	DownloadDomain  []string `position:"body" name:"downloaddomain" json:"downloaddomain"`
}

type ModifyHeadImageRequest

type ModifyHeadImageRequest struct {
	AccessToken      string `position:"query" name:"access_token" json:"-"`
	HeadImageMediaID string `position:"body" name:"head_img_media_id" json:"head_img_media_id"`
	X1               int64  `position:"body" name:"x1" json:"x1"`
	Y1               int64  `position:"body" name:"y1" json:"y1"`
	X2               int64  `position:"body" name:"x2" json:"x2"`
	Y2               int64  `position:"body" name:"y2" json:"y2"`
}

type ModifyHeadImageResponse

type ModifyHeadImageResponse struct {
}

type ModifySignatureRequest

type ModifySignatureRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
	Signature   string `position:"body" name:"signature" json:"signature"`
}

type ModifySignatureResponse

type ModifySignatureResponse struct {
}

type ModifyWxaJumpDomainRequest added in v0.0.71

type ModifyWxaJumpDomainRequest struct {
	AccessToken               string `position:"query" name:"access_token" json:"-"`
	Action                    string `json:"action"`
	WxaJumpH5Domain           string `json:"wxa_jump_h5_domain"`
	IsModifyPublishedTogether bool   `json:"is_modify_published_together"`
}

type ModifyWxaJumpDomainResponse added in v0.0.71

type ModifyWxaJumpDomainResponse struct {
	PublishedWxaJumpH5Domain string `json:"published_wxa_jump_h5_domain"`
	TestingWxaJumpH5Domain   string `json:"testing_wxa_jump_h5_domain"`
	InvalidWxaJumpH5Domain   string `json:"invalid_wxa_jump_h5_domain"`
}

type ModifyWxaServerDomainRequest added in v0.0.71

type ModifyWxaServerDomainRequest struct {
	AccessToken              string `position:"query" name:"access_token" json:"-"`
	Action                   string `json:"action"`
	WxaServerDomain          string `json:"wxa_server_domain"`            // 以;分隔的域名
	IsModifyPublishedTogeter bool   `json:"is_modify_published_together"` // false 只改test
}

type ModifyWxaServerDomainResponse added in v0.0.71

type ModifyWxaServerDomainResponse struct {
	PublishedWxaServerDomain string `json:"published_wxa_server_domain"`
	TestingWxaServerDoamin   string `json:"testing_wxa_server_domain"`
	InvalidWxaServerDomain   string `json:"invalid_wxa_server_domain"`
}

type MpVerifyBetaWeAppRequest

type MpVerifyBetaWeAppRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
	MpAppID     string `position:"body" name:"mp_appid" json:"mp_appid"`
	Ticket      string `position:"body" name:"ticket" json:"ticket"`
}

type MpVerifyBetaWeAppResponse

type MpVerifyBetaWeAppResponse struct {
	AuthorizerURL string `json:"authorizer_url"`
}

type NicknameInfo

type NicknameInfo struct {
	Nickname        string `json:"nickname"`
	ModifyUsedCount int64  `json:"modify_used_count"`
	ModifyQuota     int64  `json:"modify_quota"`
}

NicknameInfo 名称信息

type Notification

type Notification struct {
	AppID                        string `xml:"AppId"`                        // 票据、
	APPID                        string `xml:"appid"`                        // 快速注册、认证
	InfoType                     string `xml:"InfoType"`                     // All
	CreateTime                   int64  `xml:"CreateTime"`                   // All
	ComponentVerifyTicket        string `xml:"ComponentVerifyTicket"`        // 验证票据
	AuthorizerAppID              string `xml:"AuthorizerAppid"`              // 授权
	AuthorizationCode            string `xml:"AuthorizationCode"`            // 授权
	AuthorizationCodeExpiredTime int64  `xml:"AuthorizationCodeExpiredTime"` // 授权
	PreAuthCode                  string `xml:"PreAuthCode"`                  // 授权
	Status                       string `xml:"status"`                       // 快速注册
	FastRegister
	NotificationICPApply
	NotificationICPVerify
	NotificationVerification
}

type NotificationICPApply added in v0.0.76

type NotificationICPApply struct {
	AuthorizerAPPID string `xml:"authorizer_appid"`
	BeianStatus     int32  `xml:"beian_status"`
}

type NotificationICPVerify added in v0.0.76

type NotificationICPVerify struct {
	TaskID      string `xml:"task_id"`
	VerifyAPPID string `xml:"verify_appid"`
	Result      int32  `xml:"result"`
}

type NotificationMessage added in v0.0.75

type NotificationMessage struct {
	ToUserName   string `json:"ToUserName" xml:"ToUserName"`
	FromUserName string `json:"FromUserName" xml:"FromUserName"`
	CreateTime   int64  `json:"CreateTime" xml:"CreateTime"`
	MessageType  string `json:"MsgType" xml:"MsgType"`
	Content      string `json:"Content" xml:"Content"`
	MessageID    string `json:"MsgId" xml:"MsgId"`
	Event        string `json:"Even" xml:"Event"`
	ContentCheckMessage
}

type NotificationProto

type NotificationProto struct {
	AppID   string `xml:"AppId"`
	Encrypt string `xml:"Encrypt"`
}

type NotificationVerification added in v0.0.76

type NotificationVerification struct {
	TaskID      string                           `xml:"taskid"`
	TaskStatus  int32                            `xml:"task_status"`
	ApplyStatus int32                            `xml:"apply_status"`
	Dispatch    NotificationVerificationDispatch `xml:"dispatch_info"`
	Message     string                           `xml:"message"`
}

type NotificationVerificationDispatch added in v0.0.76

type NotificationVerificationDispatch struct {
	Provider     string `xml:"provider"`
	Contact      string `xml:"contact"`
	DispatchTime int64  `xml:"dispatch_time"`
}

type NotifySignature

type NotifySignature struct {
	Signature        string
	Nonce            string
	EncryptType      string
	MessageSignature string
}

type PluginRequest added in v0.0.60

type PluginRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
	Action      string `json:"action"`
	PluginAppid string `json:"plugin_appid,omitempty"`
	Reason      string `json:"reason,omitempty"`
}

type PluginResponse added in v0.0.62

type PluginResponse struct {
	PluginList []*PluginResponseItem `json:"plugin_list"`
}

type PluginResponseItem added in v0.0.60

type PluginResponseItem struct {
	Appid        string `json:"appid"`
	Status       int64  `json:"status"`
	Nickname     string `json:"nickname"`
	HeadImageURL string `json:"headimgurl"`
}

type PrivacyOwnerSetting added in v0.0.70

type PrivacyOwnerSetting struct {
	ContactEmail         string `json:"contact_email"`
	ContactPhone         string `json:"contact_phone"`
	ContactQQ            string `json:"contact_qq"`
	ContactWeixin        string `json:"contact_weixin"`
	ExtFileMediaID       string `json:"ext_file_media_id"`
	NoticeMethod         string `json:"notice_method"`
	StoreExpireTimestamp string `json:"store_expire_timestamp"`
}

type PrivacySettingDesc added in v0.0.70

type PrivacySettingDesc struct {
	PrivacyKey  string `json:"privacy_key"`
	PrivacyDesc string `json:"privacy_desc"`
}

type PrivacySettingItem added in v0.0.70

type PrivacySettingItem struct {
	PrivacyKey   string `json:"privacy_key"`
	PrivacyText  string `json:"privacy_text,omitempty"`
	PrivacyLabel string `json:"privacy_label,omitempty"`
}

type QueryAuthRequest

type QueryAuthRequest struct {
	ComponentAccessToken string `position:"query" name:"component_access_token" json:"-"`
	ComponentAppID       string `position:"body" name:"component_appid" json:"component_appid"`
	AuthorizationCode    string `position:"body" name:"authorization_code" json:"authorization_code"`
}

type QueryAuthResponse

type QueryAuthResponse struct {
	AuthorizationInfo AuthorizationInfo `json:"authorization_info"`
}

type RGBColor added in v0.0.3

type RGBColor struct {
	R int64 `json:"r"`
	G int64 `json:"g"`
	B int64 `json:"b"`
}

type Request

type Request interface {
	BuildRequest() (*http.Request, error)
}

type Response

type Response interface {
	Success() bool
	Error() error
}

type RevertGrayReleaseRequest

type RevertGrayReleaseRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
}

type RevertGrayReleaseResponse

type RevertGrayReleaseResponse struct {
}

type SecAuthidentity added in v0.0.73

type SecAuthidentity struct {
	Name     string                   `json:"name"`                //名称
	NodeID   int64                    `json:"node_id"`             //节点编号
	NodeList []*SecAuthidentity       `json:"node_list"`           //节点列表
	LeafInfo *SecAuthidentityLeafInfo `json:"leaf_info,"`          //叶子节点信息
	RootType *SecAuthidentityRootInfo `json:"root_type,omitempty"` // 根节点信息
}

type SecAuthidentityLeafInfo added in v0.0.73

type SecAuthidentityLeafInfo struct {
	Requirement string `json:"requirement"` //
}

type SecAuthidentityRootInfo added in v0.0.73

type SecAuthidentityRootInfo struct {
	Type int64 `json:"type"`
}

type SecAuthidentityTreeRequest added in v0.0.73

type SecAuthidentityTreeRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
}

type SecAuthidentityTreeResponse added in v0.0.73

type SecAuthidentityTreeResponse struct {
	IdentityTreeList []*SecAuthidentity `json:"identity_tree_list"`
}

type SecContactInfo added in v0.0.73

type SecContactInfo struct {
	Name  string `json:"name"`  // 联系人姓名
	Email string `json:"email"` // 联系人电邮
}

联系人信息

type SecCustomerType added in v0.0.73

type SecCustomerType int32

type SecElectronicInvoice added in v0.0.73

type SecElectronicInvoice struct {
	ID   string `json:"id"`   // 纳税识别号(15位、17、18或20位)
	Desc string `json:"desc"` // 发票备注(选填)
}

电子发票

type SecInvoiceInfo added in v0.0.73

type SecInvoiceInfo struct {
	InvoiceType  SecInvoiceType        `json:"invoice_info"`  // 发票类型 1: 不开发票 2: 电子发票 3: 增值税专票
	Electronic   *SecElectronicInvoice `json:"electronic"`    // 发票类型=2时必填 电子发票开票信息
	Vat          *SecVatInvoice        `json:"vat"`           // 发票类型=3时必填 增值税专票开票信息
	InvoiceTitle string                `json:"invoice_title"` // 发票抬头,需要和认证主体名称一样
}

发票信息

type SecInvoiceType added in v0.0.73

type SecInvoiceType int32

type SecQueryWxaAuthRequest added in v0.0.73

type SecQueryWxaAuthRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
	TaskID      string `position:"body" name:"taskid" json:"taskid"`
}

type SecQueryWxaAuthResponse added in v0.0.73

type SecQueryWxaAuthResponse struct {
	ApplyStatus  int32  `json:"apply_status"`  // 当前任务流程的状态码
	TaskStatus   int32  `json:"task_status"`   //  小程序管理员授权链接
	AuthURL      string `json:"auth_url"`      // 审核单状态,创建认证审核审核单成功后该值有效
	OrderID      int64  `json:"order_id"`      // 小程序后台展示的认证订单号
	APPID        string `json:"appid"`         // 小程序appid
	RefillReason string `json:"refill_reason"` // 当审核单被打回重填(apply_status=3)时有效
	FailReason   string `json:"fail_reason"`   // 审核最终失败的原因(apply_status=5)时有效
}

type SecUploadWxaAuthMaterialRequest added in v0.0.73

type SecUploadWxaAuthMaterialRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
	Media       []byte `position:"body" name:"media" json:"media"`
}

type SecUploadWxaAuthMaterialResponse added in v0.0.73

type SecUploadWxaAuthMaterialResponse struct {
	Type    string `json:"type"`
	MediaID string `json:"media_id"`
}

type SecVatInvoice added in v0.0.73

type SecVatInvoice struct {
	EnterprisePhone   string `json:"enterprise_phone"`   // 企业电话
	ID                string `json:"id"`                 // 纳税识别号(15位、17、18或20位)
	EnterpriseAddress string `json:"enterprise_address"` // 企业注册地址
	BankName          string `json:"bank_name"`          // 企业开户银行
	BankAccount       string `json:"bank_account"`       // 企业银行账号
	MailingAddress    string `json:"mailing_address"`    // 发票邮寄地址邮编
	Address           string `json:"address"`            // 街道地址
	Name              string `json:"name"`               // 联系人
	Phone             string `json:"phone"`              // 联系电话
	Province          string `json:"province"`           // 省份
	City              string `json:"city"`               // 城市
	District          string `json:"district"`           // 县区
	Desc              string `json:"desc"`               // 发票备注(选填)
}

直至发票

type SecWxaAuthRequest added in v0.0.73

type SecWxaAuthRequest struct {
	AccessToken         string          `position:"query" name:"access_token" json:"-"`                           //
	CustomerType        SecCustomerType `position:"body" name:"customer_type" json:"customer_type"`               // 企业为1,个体工商户 为12,个人是15
	TaskID              string          `position:"body" name:"task_id" json:"task_id"`                           // 认证任务id,打回重审调用reauth时为必填
	ContactInfo         *SecContactInfo `position:"body" name:"contact_info" json:"contact_info"`                 // 联系人信息
	InvoiceInfo         *SecInvoiceInfo `position:"body" name:"invoice_info" json:"invoice_info"`                 // 发票信息,如果是服务商代缴模式,不需要改参数
	Qualification       string          `position:"body" name:"qualification" json:"qualification"`               // 非个人类型必填。主体资质材料 media_id 支持jpg,jpeg .bmp.gif .png格式,仅支持一张图片
	QualificationOther  []string        `position:"body" name:"qualifacation_other" json:"qualifacation_other"`   // 主体资质其他证明材料 media_id 支持jpg,jpeg .bmp.gif .png格式,最多上传10张图片
	AccountName         string          `position:"body" name:"account_name" json:"account_name"`                 // 小程序账号名称
	AccountNameType     int32           `position:"body" name:"account_name_type" json:"account_name_type"`       // 小程序账号名称命名类型 1:基于自选词汇命名 2:基于商标命名
	AccountSupplemental []string        `position:"body" name:"account_supplemental" json:"account_supplemental"` // 名称命中关键词-补充材料 media_id 支持jpg,jpeg .bmp.gif .png格式,支持上传多张图片
	PayType             int32           `position:"body" name:"pay_type" json:"pay_type"`                         // 支付方式 1:消耗服务商预购包 2:小程序开发者自行支付
	AuthIdentification  string          `position:"body" name:"auth_identification" json:"auth_identification"`   // 认证类型为个人类型时可以选择要认证的身份,从/wxa/sec/authidentitytree 里获取,填叶节点的name
	AuthIdentMaterial   []string        `position:"body" name:"auth_ident_material" json:"auth_ident_material"`   // 填了auth_identification则必填。身份证明材料 media_id (1)基于不同认证身份上传不同的材料;(2)认证类型=1时选填,支持上传10张图片(3)支持jpg,jpeg .bmp.gif .png格式
	ThirdPartyPhone     string          `position:"body" name:"third_party_phone" json:"third_party_phone"`       // 第三方联系电话
	ServiceAPPID        string          `position:"body" name:"service_appid" json:"service_appid"`               // 选择服务商代缴模式时必填。服务市场appid,该服务市场账号主体必须与服务商账号主体一致
}

type SecWxaAuthResponse added in v0.0.73

type SecWxaAuthResponse struct {
	TaskID  string `json:"taskid"`   // 认证任务ID
	AuthURL string `json:"auth_url"` // 小程序管理员授权链接
}

type SecWxaReauthRequest added in v0.0.73

type SecWxaReauthRequest SecWxaAuthRequest

type SecWxaReauthResponse added in v0.0.73

type SecWxaReauthResponse SecWxaAuthResponse

type SendCustomMessageRequest added in v0.0.75

type SendCustomMessageRequest struct {
	AccessToken     string                        `position:"query" name:"access_token" json:"-"`
	ToUser          string                        `position:"body" name:"touser" json:"touser"`
	MessageType     CustomMessageType             `position:"body" name:"msgtype" json:"msgtype"`
	Text            *CustomTextMessage            `position:"body" name:"text" json:"text,omitempty"`
	Image           *CustomImageMessage           `position:"body" name:"image" json:"image,omitempty"`
	Link            *CustomLinkMessage            `position:"body" name:"link" json:"link,omitempty"`
	MiniProgramPage *CustomMiniProgramPageMessage `position:"body" name:"miniprogrampage" json:"miniprogrampage,omitempty"`
}

type SendCustomMessageResponse added in v0.0.75

type SendCustomMessageResponse struct {
}

type SetBetaWeAppNicknameRequest

type SetBetaWeAppNicknameRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
	Name        string `position:"Body" name:"name" json:"name"`
}

type SetBetaWeAppNicknameResponse

type SetBetaWeAppNicknameResponse struct {
	Wording string `json:"wording"`
	AuditID int64  `json:"audit_id"`
}

type SetDataSettingSetPeriodFetchRequest

type SetDataSettingSetPeriodFetchRequest struct {
	AccessToken        string `position:"query" name:"access_token" json:"-"`
	Action             string `position:"body" name:"action" json:"action"`
	IsPeriodFetchOpen  bool   `position:"body" name:"is_period_fetch_open" json:"is_period_fetch_open"`
	PeriodFetchType    int64  `position:"body" name:"period_fetch_type" json:"period_fetch_type"`
	PeriodFetchURL     string `position:"body" name:"period_fetch_url" json:"period_fetch_url"`
	PeriodEnv          string `position:"body" name:"period_env" json:"period_env"`
	PeriodFunctionName string `position:"body" name:"period_function_name" json:"period_function_name"`
}

type SetDataSettingSetPeriodFetchResponse

type SetDataSettingSetPeriodFetchResponse struct {
}

type SetPrivacySettingRequest added in v0.0.70

type SetPrivacySettingRequest struct {
	AccessToken  string                `position:"query" name:"access_token" json:"-"`
	OwnerSetting PrivacyOwnerSetting   `json:"owner_setting"`
	SettingList  []*PrivacySettingItem `json:"setting_list"`
}

type SetPrivacySettingResponse added in v0.0.70

type SetPrivacySettingResponse struct {
}

type SetWeAppSupportVersionRequest

type SetWeAppSupportVersionRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
	Version     string `position:"body" name:"version" json:"version"`
}

type SetWeAppSupportVersionResponse

type SetWeAppSupportVersionResponse struct {
}

type SetWebViewDomainRequest

type SetWebViewDomainRequest struct {
	AccessToken   string   `position:"query" name:"access_token" json:"-"`
	Action        string   `position:"body" name:"action" json:"action"`
	WebViewDomain []string `position:"body" name:"webviewdomain" json:"webviewdomain"`
}

type SetWebViewDomainResponse

type SetWebViewDomainResponse struct {
}

type SignatureInfo

type SignatureInfo struct {
	Signature       string `json:"signature"`
	ModifyUsedCount int64  `json:"modify_used_count"`
	ModifyQuota     int64  `json:"modify_quota"` //功能介绍修改次数总额度(本月)
}

SignatureInfo 功能介绍信息

type StartPushTicketRequest

type StartPushTicketRequest struct {
	ComponentAppID  string `position:"body" name:"component_appid" json:"component_appid"`
	ComponentSecret string `position:"body" name:"component_secret" json:"component_secret"`
}

type StartPushTicketResponse

type StartPushTicketResponse struct {
}

type Template added in v0.0.10

type Template struct {
	CreateTime   int64  `json:"create_time"`
	UserVersion  string `json:"user_version"`
	UserDesc     string `json:"user_desc"`
	TemplateID   int64  `json:"template_id"`
	TemplateType int64  `json:"template_type"`
}

type TemplateDraft added in v0.0.10

type TemplateDraft struct {
	CreateTime  int64  `json:"create_time"`
	UserVersion string `json:"user_version"`
	UserDesc    string `json:"user_desc"`
	DraftID     int64  `json:"draft_id"`
}

type UnbindTesterRequest

type UnbindTesterRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
	WeChatID    string `position:"body" name:"wechatid" json:"wechatid"`
	UserString  string `position:"body" name:"userstr" json:"userstr"`
}

type UnbindTesterResponse

type UnbindTesterResponse struct {
}

type UndoCodeAuditRequest

type UndoCodeAuditRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
}

type UndoCodeAuditResponse

type UndoCodeAuditResponse struct {
}

type UserPhoneInfo added in v0.0.59

type UserPhoneInfo struct {
	PhoneNumber     string `json:"phoneNumber"`
	PurePhoneNumber string `json:"purePhoneNumber"`
	CountryCode     string `json:"countryCode"`
	Watermark       struct {
		Appid string `json:"appid"`
	} `json:"watermark"`
}

type VerifyBetaWeAppInfo

type VerifyBetaWeAppInfo struct {
	EnterpriseName     string `name:"enterprise_name" json:"enterprise_name"`
	Code               string `name:"code" json:"code"`
	CodeType           int64  `name:"code_type" json:"code_type"`
	LegalPersonaWechat string `name:"legal_persona_wechat" json:"legal_persona_wechat"`
	LegalPersonaName   string `name:"legal_persona_name" json:"legal_persona_name"`
	LegalPersonaIDCard string `name:"legal_persona_idcard" json:"legal_persona_idcard"`
	ComponentPhone     string `name:"component_phone" json:"component_phone"`
}

type VerifyBetaWeAppRequest

type VerifyBetaWeAppRequest struct {
	AccessToken string              `position:"query" name:"access_token" json:"-"`
	VerifyInfo  VerifyBetaWeAppInfo `position:"body" name:"verify_info" json:"verify_info"`
}

type VerifyBetaWeAppResponse

type VerifyBetaWeAppResponse struct {
}

type VerifyInfo

type VerifyInfo struct {
	QualificationVerify   bool  `json:"qualification_verify"` //是否资质认证,若是,拥有微信认证相关的权限。
	NamingVerify          bool  `json:"naming_verify"`
	AnnualReview          bool  `json:"annual_review"` //是否需要年审
	AnnualReviewBeginTime int64 `json:"annual_review_begin_time"`
	AnnualReviewEndTime   int64 `json:"annual_review_end_time"`
}

VerifyInfo 微信认证信息

type WeChatClient

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

func NewWeChatClient

func NewWeChatClient() *WeChatClient

func (*WeChatClient) AddCategory

func (client *WeChatClient) AddCategory(data *AddCategoryRequest) error

func (*WeChatClient) AddToTemplate

func (client *WeChatClient) AddToTemplate(data *AddToTemplateRequest) error

func (*WeChatClient) AuthorizerToken

func (client *WeChatClient) AuthorizerToken(data *AuthorizerTokenRequest) (*AuthorizerTokenResponse, error)

AuthorizerToken 获取授权Token

func (*WeChatClient) BindTester

func (client *WeChatClient) BindTester(data *BindTesterRequest) (*BindTesterResponse, error)

func (*WeChatClient) BuildAddCategoryRequest added in v0.0.3

func (client *WeChatClient) BuildAddCategoryRequest() *AddCategoryRequest

func (*WeChatClient) BuildAddToTemplateRequest added in v0.0.3

func (client *WeChatClient) BuildAddToTemplateRequest() *AddToTemplateRequest

func (*WeChatClient) BuildAuthorizationURL

func (client *WeChatClient) BuildAuthorizationURL(preCode, redirectURL, authType string) *AuthorizationURL

func (WeChatClient) BuildAuthorizerTokenRequest

func (client WeChatClient) BuildAuthorizerTokenRequest() *AuthorizerTokenRequest

func (*WeChatClient) BuildBindTesterRequest added in v0.0.3

func (client *WeChatClient) BuildBindTesterRequest() *BindTesterRequest

func (*WeChatClient) BuildChangeWxaSearchStatusRequest added in v0.0.3

func (client *WeChatClient) BuildChangeWxaSearchStatusRequest() *ChangeWxaSearchStatusRequest

func (*WeChatClient) BuildCheckWxVerifyNicknameRequest added in v0.0.2

func (client *WeChatClient) BuildCheckWxVerifyNicknameRequest() *CheckWxVerifyNicknameRequest

func (*WeChatClient) BuildComponentTokenRequest

func (client *WeChatClient) BuildComponentTokenRequest() *ComponentTokenRequest

func (*WeChatClient) BuildContentCheckMediaRequest added in v0.0.88

func (client *WeChatClient) BuildContentCheckMediaRequest() *ContentCheckMediaRequest

func (*WeChatClient) BuildContentCheckTextRequest added in v0.0.88

func (client *WeChatClient) BuildContentCheckTextRequest() *ContentCheckTextRequest

func (*WeChatClient) BuildCreatePreAuthCodeRequest

func (client *WeChatClient) BuildCreatePreAuthCodeRequest() *CreatePreAuthCodeRequest

func (*WeChatClient) BuildDataSettingGetRequest added in v0.0.3

func (client *WeChatClient) BuildDataSettingGetRequest() *FetchDataSettingGetRequest

func (*WeChatClient) BuildDeleteCategoryRequest added in v0.0.3

func (client *WeChatClient) BuildDeleteCategoryRequest() *DeleteCategoryRequest

func (*WeChatClient) BuildDeleteTemplateRequest added in v0.0.3

func (client *WeChatClient) BuildDeleteTemplateRequest() *DeleteTemplateRequest

func (*WeChatClient) BuildFastRegisterBetaWeAppRequest added in v0.0.3

func (client *WeChatClient) BuildFastRegisterBetaWeAppRequest() *FastRegisterBetaWeAppRequest

func (*WeChatClient) BuildFastRegisterPersonalWeAppQueryRequest added in v0.0.3

func (client *WeChatClient) BuildFastRegisterPersonalWeAppQueryRequest() *FastRegisterPersonalWeAppQueryRequest

func (*WeChatClient) BuildFastRegisterPersonalWeAppRequest added in v0.0.3

func (client *WeChatClient) BuildFastRegisterPersonalWeAppRequest() *FastRegisterPersonalWeAppRequest

func (*WeChatClient) BuildFastRegisterRequest added in v0.0.3

func (client *WeChatClient) BuildFastRegisterRequest() *FastRegisterRequest

func (*WeChatClient) BuildFastRegisterWeAppRequest added in v0.0.2

func (client *WeChatClient) BuildFastRegisterWeAppRequest() *FastRegisterWeAppRequest

func (*WeChatClient) BuildFetchDataSettingSetPreFetchRequest added in v0.0.3

func (client *WeChatClient) BuildFetchDataSettingSetPreFetchRequest() *FetchDataSettingSetPreFetchRequest

func (*WeChatClient) BuildGetAccountBasicInfoRequest added in v0.0.3

func (client *WeChatClient) BuildGetAccountBasicInfoRequest() *GetAccountBasicInfoRequest

func (*WeChatClient) BuildGetAppCategoriesRequest added in v0.0.3

func (client *WeChatClient) BuildGetAppCategoriesRequest() *GetAppCategoriesRequest

func (*WeChatClient) BuildGetAuthorizerInfoRequest added in v0.0.3

func (client *WeChatClient) BuildGetAuthorizerInfoRequest() *GetAuthorizerInfoRequest

func (*WeChatClient) BuildGetCategoriesByTypeRequest added in v0.0.3

func (client *WeChatClient) BuildGetCategoriesByTypeRequest() *GetCategoriesByTypeRequest

func (*WeChatClient) BuildGetCategoryRequest added in v0.0.3

func (client *WeChatClient) BuildGetCategoryRequest() *GetCategoryRequest

func (*WeChatClient) BuildGetDomainConfirmFileRequest added in v0.0.71

func (client *WeChatClient) BuildGetDomainConfirmFileRequest() *GetDomainConfirmFileRequest

func (*WeChatClient) BuildGetMpAdminAuthRequest added in v0.0.3

func (client *WeChatClient) BuildGetMpAdminAuthRequest() *GetMpAdminAuthRequest

func (*WeChatClient) BuildGetPrivacySettingRequest added in v0.0.70

func (client *WeChatClient) BuildGetPrivacySettingRequest() *GetPrivacySettingRequest

func (*WeChatClient) BuildGetTemplateDraftListRequest added in v0.0.3

func (client *WeChatClient) BuildGetTemplateDraftListRequest() *GetTemplateDraftListRequest

func (*WeChatClient) BuildGetTemplateListRequest added in v0.0.3

func (client *WeChatClient) BuildGetTemplateListRequest() *GetTemplateListRequest

func (WeChatClient) BuildGetUserPhoneNumberRequest added in v0.0.72

func (client WeChatClient) BuildGetUserPhoneNumberRequest() *GetUserPhoneNumberRequest

func (WeChatClient) BuildGetWeAppSupportVersionRequest added in v0.0.3

func (client WeChatClient) BuildGetWeAppSupportVersionRequest() *GetWeAppSupportVersionRequest

func (*WeChatClient) BuildGetWxaSearchStatusRequest added in v0.0.3

func (client *WeChatClient) BuildGetWxaSearchStatusRequest() *GetWxaSearchStatusRequest

func (*WeChatClient) BuildICPApplyFilingRequest added in v0.0.73

func (client *WeChatClient) BuildICPApplyFilingRequest() *ICPApplyFilingRequest

func (*WeChatClient) BuildICPCancelApplyFilingRequest added in v0.0.73

func (client *WeChatClient) BuildICPCancelApplyFilingRequest() *ICPCancelApplyFilingRequest

func (*WeChatClient) BuildICPCancelFilingRequest added in v0.0.73

func (client *WeChatClient) BuildICPCancelFilingRequest() *ICPCancelFilingRequest

func (*WeChatClient) BuildICPCreateVerifyTaskRequest added in v0.0.73

func (client *WeChatClient) BuildICPCreateVerifyTaskRequest() *ICPCreateVerifyTaskRequest

func (*WeChatClient) BuildICPGetEntranceInfoRequest added in v0.0.73

func (client *WeChatClient) BuildICPGetEntranceInfoRequest() *ICPGetEntranceInfoRequest

func (*WeChatClient) BuildICPGetOnlineOrderRequest added in v0.0.73

func (client *WeChatClient) BuildICPGetOnlineOrderRequest() *ICPGetOnlineOrderRequest

func (*WeChatClient) BuildICPQueryCertificateTypesRequest added in v0.0.73

func (client *WeChatClient) BuildICPQueryCertificateTypesRequest() *ICPQueryCertificateTypesRequest

func (*WeChatClient) BuildICPQueryDistrictCodeRequest added in v0.0.73

func (client *WeChatClient) BuildICPQueryDistrictCodeRequest() *ICPQueryDistrictCodeRequest

func (*WeChatClient) BuildICPQueryNRLXTypesRequest added in v0.0.73

func (client *WeChatClient) BuildICPQueryNRLXTypesRequest() *ICPQueryNRLXTypesRequest

func (*WeChatClient) BuildICPQueryServiceContentTypesRequest added in v0.0.73

func (client *WeChatClient) BuildICPQueryServiceContentTypesRequest() *ICPQueryServiceContentTypesRequest

func (*WeChatClient) BuildICPQuerySubjectTypesRequest added in v0.0.73

func (client *WeChatClient) BuildICPQuerySubjectTypesRequest() *ICPQuerySubjectTypesRequest

func (*WeChatClient) BuildICPQueryVerifyTaskRequest added in v0.0.73

func (client *WeChatClient) BuildICPQueryVerifyTaskRequest() *ICPQueryVerifyTaskRequest

func (*WeChatClient) BuildICPUploadMediaRequest added in v0.0.73

func (client *WeChatClient) BuildICPUploadMediaRequest() *ICPUploadMediaRequest

func (*WeChatClient) BuildJSCodeToSessionRequest added in v0.0.3

func (client *WeChatClient) BuildJSCodeToSessionRequest() *JSCodeToSessionRequest

func (*WeChatClient) BuildMediaUploadRequest added in v0.0.19

func (client *WeChatClient) BuildMediaUploadRequest() *MediaUploadRequest

func (WeChatClient) BuildMemberAuthRequest added in v0.0.3

func (client WeChatClient) BuildMemberAuthRequest() *MemberAuthRequest

func (*WeChatClient) BuildModifyCategoryRequest added in v0.0.3

func (client *WeChatClient) BuildModifyCategoryRequest() *ModifyCategoryRequest

func (WeChatClient) BuildModifyDomainRequest added in v0.0.3

func (client WeChatClient) BuildModifyDomainRequest() *ModifyDomainRequest

func (*WeChatClient) BuildModifyHeadImageRequest added in v0.0.3

func (client *WeChatClient) BuildModifyHeadImageRequest() *ModifyHeadImageRequest

func (*WeChatClient) BuildModifySignatureRequest added in v0.0.3

func (client *WeChatClient) BuildModifySignatureRequest() *ModifySignatureRequest

func (*WeChatClient) BuildModifyWxaJumpDomain added in v0.0.71

func (client *WeChatClient) BuildModifyWxaJumpDomain() *ModifyWxaJumpDomainRequest

func (*WeChatClient) BuildModifyWxaServerDomainRequest added in v0.0.71

func (client *WeChatClient) BuildModifyWxaServerDomainRequest() *ModifyWxaServerDomainRequest

func (*WeChatClient) BuildMpVerifyBetaWeAppRequest added in v0.0.3

func (client *WeChatClient) BuildMpVerifyBetaWeAppRequest() *MpVerifyBetaWeAppRequest

func (*WeChatClient) BuildPluginRequest added in v0.0.60

func (client *WeChatClient) BuildPluginRequest() *PluginRequest

func (*WeChatClient) BuildQueryAuthRequest added in v0.0.2

func (client *WeChatClient) BuildQueryAuthRequest() *QueryAuthRequest

func (*WeChatClient) BuildRevertGrayReleaseRequest added in v0.0.3

func (client *WeChatClient) BuildRevertGrayReleaseRequest() *RevertGrayReleaseRequest

func (*WeChatClient) BuildSecAuthidentityTreeRequest added in v0.0.73

func (client *WeChatClient) BuildSecAuthidentityTreeRequest() *SecAuthidentityTreeRequest

func (*WeChatClient) BuildSecQueryWxaAuthRequest added in v0.0.73

func (client *WeChatClient) BuildSecQueryWxaAuthRequest() *SecQueryWxaAuthRequest

func (*WeChatClient) BuildSecUploadWxaAuthMaterialRequest added in v0.0.73

func (client *WeChatClient) BuildSecUploadWxaAuthMaterialRequest() *SecUploadWxaAuthMaterialRequest

func (*WeChatClient) BuildSecWxaAuthRequest added in v0.0.73

func (client *WeChatClient) BuildSecWxaAuthRequest() *SecWxaAuthRequest

func (*WeChatClient) BuildSecWxaReauthRequest added in v0.0.73

func (client *WeChatClient) BuildSecWxaReauthRequest() *SecWxaReauthRequest

func (*WeChatClient) BuildSendCustomMessageRequest added in v0.0.75

func (client *WeChatClient) BuildSendCustomMessageRequest() *SendCustomMessageRequest

func (*WeChatClient) BuildSetBataWeAppNicknameRequest added in v0.0.3

func (client *WeChatClient) BuildSetBataWeAppNicknameRequest() *SetBetaWeAppNicknameRequest

func (*WeChatClient) BuildSetDataSettingSetPeriodFetchRequest added in v0.0.3

func (client *WeChatClient) BuildSetDataSettingSetPeriodFetchRequest() *SetDataSettingSetPeriodFetchRequest

func (*WeChatClient) BuildSetPrivacySettingRequest added in v0.0.70

func (client *WeChatClient) BuildSetPrivacySettingRequest() *SetPrivacySettingRequest

func (*WeChatClient) BuildSetWeAppSupportVersionRequest added in v0.0.3

func (client *WeChatClient) BuildSetWeAppSupportVersionRequest() *SetWeAppSupportVersionRequest

func (*WeChatClient) BuildSetWebViewDomainRequest added in v0.0.3

func (client *WeChatClient) BuildSetWebViewDomainRequest() *SetWebViewDomainRequest

func (*WeChatClient) BuildUnbindTesterRequest added in v0.0.3

func (client *WeChatClient) BuildUnbindTesterRequest() *UnbindTesterRequest

func (*WeChatClient) BuildUndoCodeAuditRequest added in v0.0.3

func (client *WeChatClient) BuildUndoCodeAuditRequest() *UndoCodeAuditRequest

func (*WeChatClient) BuildVerifyBeataWeAppRequest added in v0.0.3

func (client *WeChatClient) BuildVerifyBeataWeAppRequest() *VerifyBetaWeAppRequest

func (*WeChatClient) BuildWxaChangeVisitStatusRequest added in v0.0.3

func (client *WeChatClient) BuildWxaChangeVisitStatusRequest() *WxaChangeVisitStatusRequest

func (*WeChatClient) BuildWxaCommitRequest added in v0.0.3

func (client *WeChatClient) BuildWxaCommitRequest() *WxaCommitRequest

func (*WeChatClient) BuildWxaGetAuditStatusRequest added in v0.0.3

func (client *WeChatClient) BuildWxaGetAuditStatusRequest() *WxaGetAuditStatusRequest

func (*WeChatClient) BuildWxaGetCategoryRequest added in v0.0.3

func (client *WeChatClient) BuildWxaGetCategoryRequest() *WxaGetCategoryRequest

func (*WeChatClient) BuildWxaGetGrayReleasePlanRequest added in v0.0.3

func (client *WeChatClient) BuildWxaGetGrayReleasePlanRequest() *WxaGetGrayReleasePlanRequest

func (*WeChatClient) BuildWxaGetLastAuditStatusRequest added in v0.0.3

func (client *WeChatClient) BuildWxaGetLastAuditStatusRequest() *WxaGetLastAuditStatusRequest

func (*WeChatClient) BuildWxaGetPageRequest added in v0.0.3

func (client *WeChatClient) BuildWxaGetPageRequest() *WxaGetPageRequest

func (*WeChatClient) BuildWxaGetQRCodeRequest added in v0.0.39

func (client *WeChatClient) BuildWxaGetQRCodeRequest() *WxaGetQRCodeRequest

func (*WeChatClient) BuildWxaGetWxaCodeUnlimitRequest added in v0.0.3

func (client *WeChatClient) BuildWxaGetWxaCodeUnlimitRequest() *WxaGetWxaCodeUnlimitRequest

func (*WeChatClient) BuildWxaGrayReleaseRequest added in v0.0.3

func (client *WeChatClient) BuildWxaGrayReleaseRequest() *WxaGrayReleaseRequest

func (*WeChatClient) BuildWxaQueryNicknameRequest added in v0.0.3

func (client *WeChatClient) BuildWxaQueryNicknameRequest() *WxaQueryNicknameRequest

func (*WeChatClient) BuildWxaQueryQuotaRequest added in v0.0.3

func (client *WeChatClient) BuildWxaQueryQuotaRequest() *WxaQueryQuotaRequest

func (*WeChatClient) BuildWxaReleaseRequest added in v0.0.3

func (client *WeChatClient) BuildWxaReleaseRequest() *WxaReleaseRequest

func (*WeChatClient) BuildWxaRevertCodeReleaseHistoryVersionRequest added in v0.0.3

func (client *WeChatClient) BuildWxaRevertCodeReleaseHistoryVersionRequest() *WxaRevertCodeReleaseHistoryVersionRequest

func (*WeChatClient) BuildWxaRevertCodeReleaseRequest added in v0.0.3

func (client *WeChatClient) BuildWxaRevertCodeReleaseRequest() *WxaRevertCodeReleaseRequest

func (*WeChatClient) BuildWxaSetNicknameRequest added in v0.0.2

func (client *WeChatClient) BuildWxaSetNicknameRequest() *WxaSetNicknameRequest

func (*WeChatClient) BuildWxaSpeedupAuditRequest added in v0.0.3

func (client *WeChatClient) BuildWxaSpeedupAuditRequest() *WxaSpeedupAuditRequest

func (*WeChatClient) BuildWxaSubmitAuditRequest added in v0.0.3

func (client *WeChatClient) BuildWxaSubmitAuditRequest() *WxaSubmitAuditRequest

func (*WeChatClient) ChangeWxaSearchStatus

func (client *WeChatClient) ChangeWxaSearchStatus(data *ChangeWxaSearchStatusRequest) error

func (*WeChatClient) CheckWxVerifyNickname

func (client *WeChatClient) CheckWxVerifyNickname(data *CheckWxVerifyNicknameRequest) (*CheckWxVerifyNicknameResponse, error)

func (*WeChatClient) ComponentToken

func (client *WeChatClient) ComponentToken(data *ComponentTokenRequest) (*ComponentTokenResponse, error)

func (*WeChatClient) ContentCheckMedia added in v0.0.88

func (client *WeChatClient) ContentCheckMedia(data *ContentCheckTextRequest) (*ContentCheckMediaResponse, error)

func (*WeChatClient) ContentCheckText added in v0.0.88

func (client *WeChatClient) ContentCheckText(data *ContentCheckTextRequest) (*ContentCheckTextResponse, error)

func (*WeChatClient) CreatePreAuthCode

func (client *WeChatClient) CreatePreAuthCode(data *CreatePreAuthCodeRequest) (*CreatePreAuthCodeResponse, error)

func (*WeChatClient) DeleteCategory

func (client *WeChatClient) DeleteCategory(data *DeleteCategoryRequest) error

func (*WeChatClient) DeleteTemplate

func (client *WeChatClient) DeleteTemplate(data *DeleteTemplateRequest) error

func (*WeChatClient) DoRequest

func (client *WeChatClient) DoRequest(input Request, output Response) error

func (*WeChatClient) DoStream added in v0.0.56

func (client *WeChatClient) DoStream(input Request) (io.ReadCloser, error)

func (*WeChatClient) FastRegister

func (client *WeChatClient) FastRegister(data *FastRegisterRequest) (*FastRegisterResponse, error)

func (*WeChatClient) FastRegisterBetaWeApp

func (client *WeChatClient) FastRegisterBetaWeApp(data *FastRegisterBetaWeAppRequest) (*FastRegisterBetaWeAppResponse, error)

func (*WeChatClient) FastRegisterPersonalWeApp

func (client *WeChatClient) FastRegisterPersonalWeApp(data *FastRegisterPersonalWeAppRequest) (*FastRegisterPersonalWeAppResponse, error)

func (*WeChatClient) FastRegisterPersonalWeAppQuery added in v0.0.3

func (client *WeChatClient) FastRegisterPersonalWeAppQuery(data *FastRegisterPersonalWeAppQueryRequest) (*FastRegisterPersonalWeAppQueryResponse, error)

func (*WeChatClient) FastRegisterWeApp

func (client *WeChatClient) FastRegisterWeApp(data *FastRegisterWeAppRequest) error

FastRegisterWeApp 快速注册小程序

func (*WeChatClient) FetchDataSettingGet

func (client *WeChatClient) FetchDataSettingGet(data *FetchDataSettingGetRequest) (*FetchDataSettingGetResponse, error)

func (*WeChatClient) FetchDataSettingSetPreFetch

func (client *WeChatClient) FetchDataSettingSetPreFetch(data FetchDataSettingSetPreFetchRequest) error

func (*WeChatClient) GetAccountBasicInfo

func (client *WeChatClient) GetAccountBasicInfo(data *GetAccountBasicInfoRequest) (*GetAccountBasicInfoResponse, error)

GetAccountBasicInfo 获取基本信息

func (*WeChatClient) GetAllCategories

func (client *WeChatClient) GetAllCategories(data *GetAppCategoriesRequest) (*GetAppCategoriesResponse, error)

func (*WeChatClient) GetAuthorizerInfo

func (client *WeChatClient) GetAuthorizerInfo(data *GetAuthorizerInfoRequest) (*GetAccountBasicInfoResponse, error)

func (*WeChatClient) GetCategoriesByType

func (client *WeChatClient) GetCategoriesByType(data *GetCategoriesByTypeRequest) (*GetCategoriesByTypeResponse, error)

GetCategoriesByType 获取不同主体类型的类目

func (*WeChatClient) GetCategory

func (client *WeChatClient) GetCategory(data *GetCategoryRequest) (*GetCategoryResponse, error)

func (*WeChatClient) GetDomainConfirmFile added in v0.0.71

func (client *WeChatClient) GetDomainConfirmFile(data *GetDomainConfirmFileRequest) (*GetDomainConfirmFileResponse, error)

func (*WeChatClient) GetHttpProxy

func (client *WeChatClient) GetHttpProxy() string

func (*WeChatClient) GetHttpsProxy

func (client *WeChatClient) GetHttpsProxy() string

func (*WeChatClient) GetMpAdminAuth

func (client *WeChatClient) GetMpAdminAuth(data *GetMpAdminAuthRequest) (*GetMpAdminAuthResponse, error)

func (*WeChatClient) GetOptions

func (client *WeChatClient) GetOptions() *WeChatOption

func (*WeChatClient) GetPrivacySetting added in v0.0.70

func (client *WeChatClient) GetPrivacySetting(data *GetPrivacySettingRequest) (*GetPrivacySettingResponse, error)

func (*WeChatClient) GetTemplateDraftList

func (client *WeChatClient) GetTemplateDraftList(data *GetTemplateDraftListRequest) (*GetTemplateDraftListResponse, error)

func (*WeChatClient) GetTemplateList

func (client *WeChatClient) GetTemplateList(data *GetTemplateListRequest) (*GetTemplateListResponse, error)

func (*WeChatClient) GetUserPhoneNumber added in v0.0.72

func (client *WeChatClient) GetUserPhoneNumber(data *GetUserPhoneNumberRequest) (*GetUserPhoneNumberResponse, error)

func (*WeChatClient) GetWeAppSupportVersion

func (client *WeChatClient) GetWeAppSupportVersion(data *GetWeAppSupportVersionRequest) (*GetWeAppSupportVersionResponse, error)

func (*WeChatClient) GetWxaSearchStatus

func (client *WeChatClient) GetWxaSearchStatus(data *GetWxaSearchStatusRequest) (*GetWxaSearchStatusResponse, error)

func (*WeChatClient) ICPApplyFiling added in v0.0.73

func (client *WeChatClient) ICPApplyFiling(data *ICPApplyFilingRequest) error

func (*WeChatClient) ICPCancelApplyFiling added in v0.0.73

func (client *WeChatClient) ICPCancelApplyFiling(data *ICPCancelApplyFilingRequest) error

func (*WeChatClient) ICPCancelFiling added in v0.0.73

func (client *WeChatClient) ICPCancelFiling(data *ICPCancelFilingRequest) error

func (*WeChatClient) ICPCreateVerifyTask added in v0.0.73

func (client *WeChatClient) ICPCreateVerifyTask(data *ICPCreateVerifyTaskRequest) (*ICPCreateVerifyTaskResponse, error)

func (*WeChatClient) ICPGetEntranceInfo added in v0.0.73

func (client *WeChatClient) ICPGetEntranceInfo(data *ICPGetEntranceInfoRequest) (*ICPGetEntranceInfoResponse, error)

func (*WeChatClient) ICPGetOnlineOrder added in v0.0.73

func (client *WeChatClient) ICPGetOnlineOrder(data *ICPGetOnlineOrderRequest) error

func (*WeChatClient) ICPQueryCertificateTypes added in v0.0.73

func (client *WeChatClient) ICPQueryCertificateTypes(data *ICPQueryCertificateTypesRequest) (*ICPQueryCertificateTypesResponse, error)

func (*WeChatClient) ICPQueryDistrictCode added in v0.0.73

func (client *WeChatClient) ICPQueryDistrictCode(data *ICPQueryDistrictCodeRequest) (*ICPQueryDistrictCodeResponse, error)

func (*WeChatClient) ICPQueryNRLXTypes added in v0.0.73

func (client *WeChatClient) ICPQueryNRLXTypes(data *ICPQueryNRLXTypesRequest) (*ICPQueryNRLXTypesResponse, error)

func (*WeChatClient) ICPQueryServiceContentTypes added in v0.0.73

func (client *WeChatClient) ICPQueryServiceContentTypes(data *ICPQueryServiceContentTypesRequest) (*ICPQueryServiceContentTypesResponse, error)

func (*WeChatClient) ICPQuerySubjectTypes added in v0.0.73

func (client *WeChatClient) ICPQuerySubjectTypes(data *ICPQuerySubjectTypesRequest) (*ICPQuerySubjectTypesResponse, error)

func (*WeChatClient) ICPQueryVerifyTask added in v0.0.73

func (client *WeChatClient) ICPQueryVerifyTask(data *ICPQueryVerifyTaskRequest) (*ICPQueryVerifyTaskResponse, error)

func (*WeChatClient) ICPUploadMedia added in v0.0.73

func (client *WeChatClient) ICPUploadMedia(data *ICPUploadMediaRequest) (*ICPUploadMediaResponse, error)

func (*WeChatClient) JSCodeToSession added in v0.0.3

func (client *WeChatClient) JSCodeToSession(data *JSCodeToSessionRequest) (*JSCodeToSessionResponse, error)

func (*WeChatClient) MediaUpload added in v0.0.18

func (client *WeChatClient) MediaUpload(data *MediaUploadRequest) (*MediaUploadResponse, error)

func (*WeChatClient) MemberAuth

func (client *WeChatClient) MemberAuth(data *MemberAuthRequest) (*MemberAuthResponse, error)

func (*WeChatClient) ModifyCategory

func (client *WeChatClient) ModifyCategory(data *ModifyCategoryRequest) error

func (*WeChatClient) ModifyDomain

func (client *WeChatClient) ModifyDomain(data *ModifyDomainRequest) (*ModifyDomainResponse, error)

func (*WeChatClient) ModifyHeadImage

func (client *WeChatClient) ModifyHeadImage(data *ModifyHeadImageRequest) error

func (*WeChatClient) ModifySignature

func (client *WeChatClient) ModifySignature(data *ModifySignatureRequest) error

func (*WeChatClient) ModifyWxaJumpDomain added in v0.0.71

func (client *WeChatClient) ModifyWxaJumpDomain(data *ModifyWxaJumpDomainRequest) (*ModifyWxaJumpDomainResponse, error)

func (*WeChatClient) ModifyWxaServerDomain added in v0.0.71

func (client *WeChatClient) ModifyWxaServerDomain(data *ModifyWxaServerDomainRequest) (*ModifyWxaServerDomainResponse, error)

func (*WeChatClient) MpVerifyBetaWeApp

func (client *WeChatClient) MpVerifyBetaWeApp(data *MpVerifyBetaWeAppRequest) (*MpVerifyBetaWeAppResponse, error)

func (*WeChatClient) ParseEvent added in v0.0.60

func (client *WeChatClient) ParseEvent(raw []byte) (*EventMessage, error)

func (*WeChatClient) ParseJSONMessage added in v0.0.88

func (client *WeChatClient) ParseJSONMessage(raw []byte, data any) error

func (*WeChatClient) ParseMessage added in v0.0.81

func (client *WeChatClient) ParseMessage(raw []byte, data any) error

func (*WeChatClient) ParseNotification

func (client *WeChatClient) ParseNotification(raw []byte) (*Notification, error)

func (*WeChatClient) Plugin added in v0.0.60

func (client *WeChatClient) Plugin(data *PluginRequest) (*PluginResponse, error)

func (*WeChatClient) QueryAuth

func (client *WeChatClient) QueryAuth(data *QueryAuthRequest) (*QueryAuthResponse, error)

func (*WeChatClient) RevertGrayRelease

func (client *WeChatClient) RevertGrayRelease(data *RevertGrayReleaseRequest) error

func (*WeChatClient) SecAuthidentityTree added in v0.0.73

func (client *WeChatClient) SecAuthidentityTree(data *SecAuthidentityTreeRequest) (*SecAuthidentityTreeResponse, error)

func (*WeChatClient) SecQueryWxaAuth added in v0.0.73

func (client *WeChatClient) SecQueryWxaAuth(data *SecQueryWxaAuthRequest) (*SecQueryWxaAuthResponse, error)

func (*WeChatClient) SecUploadWxaAuthMaterial added in v0.0.73

func (client *WeChatClient) SecUploadWxaAuthMaterial(data *SecUploadWxaAuthMaterialRequest) (*SecUploadWxaAuthMaterialResponse, error)

func (*WeChatClient) SecWxaAuth added in v0.0.73

func (client *WeChatClient) SecWxaAuth(data *SecWxaAuthRequest) (*SecWxaAuthResponse, error)

func (*WeChatClient) SecWxaReauth added in v0.0.73

func (client *WeChatClient) SecWxaReauth(data *SecWxaReauthRequest) (*SecWxaReauthResponse, error)

func (*WeChatClient) SendCustomMessage added in v0.0.75

func (client *WeChatClient) SendCustomMessage(data *SendCustomMessageRequest) error

func (*WeChatClient) SetBetaWeAppNickname

func (client *WeChatClient) SetBetaWeAppNickname(data *SetBetaWeAppNicknameRequest) (*SetBetaWeAppNicknameResponse, error)

func (*WeChatClient) SetDataSettingSetPeriodFetch

func (client *WeChatClient) SetDataSettingSetPeriodFetch(data *SetDataSettingSetPeriodFetchRequest) error

func (*WeChatClient) SetHttpClient

func (client *WeChatClient) SetHttpClient(httpClient *http.Client)

func (*WeChatClient) SetHttpProxy

func (client *WeChatClient) SetHttpProxy(proxy string)

func (*WeChatClient) SetHttpsProxy

func (client *WeChatClient) SetHttpsProxy(proxy string)

func (*WeChatClient) SetOptions

func (client *WeChatClient) SetOptions(options *WeChatOption)

func (*WeChatClient) SetPrivacySetting added in v0.0.70

func (client *WeChatClient) SetPrivacySetting(data *SetPrivacySettingRequest) error

func (*WeChatClient) SetWeAppSupportVersion

func (client *WeChatClient) SetWeAppSupportVersion(data *SetWeAppSupportVersionRequest) error

func (*WeChatClient) SetWebViewDomain

func (client *WeChatClient) SetWebViewDomain(data *SetWebViewDomainRequest) error

func (*WeChatClient) StartPushTicket

func (client *WeChatClient) StartPushTicket(data *StartPushTicketRequest) error

func (*WeChatClient) UnbindTester

func (client *WeChatClient) UnbindTester(data *UnbindTesterRequest) error

func (*WeChatClient) UndoCodeAudit

func (client *WeChatClient) UndoCodeAudit(data *UndoCodeAuditRequest) error

func (*WeChatClient) VerifyBetaWeApp

func (client *WeChatClient) VerifyBetaWeApp()

func (*WeChatClient) WxaChangeVisitStatus

func (client *WeChatClient) WxaChangeVisitStatus(data *WxaChangeVisitStatusRequest) error

func (*WeChatClient) WxaCommit

func (client *WeChatClient) WxaCommit(data *WxaCommitRequest) error

func (*WeChatClient) WxaGetAuditStatus

func (client *WeChatClient) WxaGetAuditStatus(data *WxaGetAuditStatusRequest) (*WxaGetAuditStatusResponse, error)

func (*WeChatClient) WxaGetCategory

func (client *WeChatClient) WxaGetCategory(data *WxaGetCategoryRequest) (*WxaGetCategoryResponse, error)

func (*WeChatClient) WxaGetGrayReleasePlan

func (client *WeChatClient) WxaGetGrayReleasePlan(data *WxaGetGrayReleasePlanRequest) (*WxaGetGrayReleasePlanResponse, error)

func (*WeChatClient) WxaGetLastAuditStatus

func (client *WeChatClient) WxaGetLastAuditStatus(data *WxaGetLastAuditStatusRequest) (*WxaGetLastAuditStatusResponse, error)

func (*WeChatClient) WxaGetPage

func (client *WeChatClient) WxaGetPage(data *WxaGetPageRequest) (*WxaGetPageResponse, error)

func (*WeChatClient) WxaGetQRCode

func (client *WeChatClient) WxaGetQRCode(data *WxaGetQRCodeRequest) (io.ReadCloser, error)

func (*WeChatClient) WxaGetWxaCodeUnlimit added in v0.0.3

func (client *WeChatClient) WxaGetWxaCodeUnlimit(data *WxaGetWxaCodeUnlimitRequest) (io.ReadCloser, error)

func (*WeChatClient) WxaGrayRelease

func (client *WeChatClient) WxaGrayRelease(data *WxaGrayReleaseRequest) error

func (*WeChatClient) WxaQueryNickname

func (client *WeChatClient) WxaQueryNickname(data *WxaQueryNicknameRequest) (*WxaQueryNicknameResponse, error)

func (*WeChatClient) WxaQueryQuota

func (client *WeChatClient) WxaQueryQuota(data *WxaQueryQuotaRequest) (*WxaQueryQuotaResponse, error)

func (*WeChatClient) WxaRelease

func (client *WeChatClient) WxaRelease(data *WxaReleaseRequest) error

func (*WeChatClient) WxaRevertCodeRelease

func (client *WeChatClient) WxaRevertCodeRelease(data *WxaRevertCodeReleaseRequest) error

func (*WeChatClient) WxaSetNickname added in v0.0.2

func (client *WeChatClient) WxaSetNickname(data *WxaSetNicknameRequest) (*WxaSetNicknameResponse, error)

func (*WeChatClient) WxaSpeedupAudit

func (client *WeChatClient) WxaSpeedupAudit(data *WxaSpeedupAuditRequest) error

func (*WeChatClient) WxaSubmitAudit

func (client *WeChatClient) WxaSubmitAudit(data *WxaSubmitAuditRequest) (*WxaSubmitAuditResponse, error)

type WeChatOption

type WeChatOption struct {
	AppID      string
	AppSecret  string
	VerifyKey  string
	EncryptKey string
}

type WxaCategory

type WxaCategory struct {
	First       int64  `json:"first"`
	FirstName   string `json:"first_name"`
	Second      int64  `json:"second"`
	SecondName  string `json:"second_name"`
	Third       int64  `json:"third"`
	ThirdName   string `json:"third_name"`
	AuditStatus int32  `json:"audit_status"` // 1.审核中 2.审核不通过 3.审核通过
	AuditReason string `json:"autit_reason"`
}

type WxaChangeVisitStatusRequest

type WxaChangeVisitStatusRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
	Action      string `position:"body" name:"action" json:"action"`
}

type WxaChangeVisitStatusResponse

type WxaChangeVisitStatusResponse struct {
}

type WxaCommitRequest

type WxaCommitRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
	TemplateID  string `position:"body" name:"template_id" json:"template_id"`
	ExtJson     string `position:"body" name:"ext_json" json:"ext_json"`
	UserVersion string `position:"body" name:"user_version" json:"user_version"`
	UserDesc    string `position:"body" name:"user_desc" json:"user_desc"`
}

type WxaCommitResponse

type WxaCommitResponse struct {
}

type WxaGetAuditStatusRequest

type WxaGetAuditStatusRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
	AuditID     int64  `position:"body" name:"auditid" json:"auditid"`
}

type WxaGetAuditStatusResponse

type WxaGetAuditStatusResponse struct {
	Status     int64  `json:"status"`
	Reason     string `json:"reason"`
	ScreenShot string `json:"screen_shot"`
}

type WxaGetCategoryRequest

type WxaGetCategoryRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
}

type WxaGetCategoryResponse

type WxaGetCategoryResponse struct {
	CategoriesList []WxaCategory `json:"categories_list"`
}

type WxaGetGrayReleasePlanRequest

type WxaGetGrayReleasePlanRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
}

type WxaGetGrayReleasePlanResponse

type WxaGetGrayReleasePlanResponse struct {
	GrayReleasePlan struct {
		Status         int64 `json:"status"`
		CreateTime     int64 `json:"create_time"`
		GrayPercentage int64 `json:"gray_percentage"`
	} `json:"gray_release_plan"`
}

type WxaGetLastAuditStatusRequest

type WxaGetLastAuditStatusRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
}

type WxaGetLastAuditStatusResponse

type WxaGetLastAuditStatusResponse struct {
	AuditID    int64  `json:"auditid"`
	Status     int64  `json:"status"`
	Reason     string `json:"reason"`
	ScreenShot string `json:"ScreenShot"`
}

type WxaGetPageRequest

type WxaGetPageRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
}

type WxaGetPageResponse

type WxaGetPageResponse struct {
	PageList []string `json:"page_list"`
}

type WxaGetQRCodeRequest

type WxaGetQRCodeRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
	Path        string `position:"query" name:"path" json:"path"`
}

type WxaGetWxaCodeUnlimitRequest added in v0.0.3

type WxaGetWxaCodeUnlimitRequest struct {
	AccessToken string    `position:"query" name:"access_token" json:"-"`
	Scene       string    `position:"body" name:"scene"  json:"scene"`
	Page        string    `position:"body" name:"page"  json:"page"`
	Width       int64     `position:"body" name:"width"  json:"width"`
	AutoColor   bool      `position:"body" name:"auto_color"  json:"auto_color,omitempty"`
	LineColor   *RGBColor `position:"body" name:"line_color"  json:"line_color,omitempty"`
	IsHyaline   bool      `position:"body" name:"is_hyaline"  json:"is_hyaline,omitempty"`
}

type WxaGetWxaCodeUnlimitResponse added in v0.0.3

type WxaGetWxaCodeUnlimitResponse io.Reader

type WxaGrayReleaseRequest

type WxaGrayReleaseRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
	GrayPercent int64  `position:"body" name:"gray_percent" json:"gray_percent"`
}

type WxaGrayReleaseResponse

type WxaGrayReleaseResponse struct {
}

type WxaNetwork

type WxaNetwork 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"`
}

type WxaQueryNicknameRequest

type WxaQueryNicknameRequest struct {
	AccessToken string `position:"access_token" name:"access_token" json:"-"`
	AuditID     string `position:"body" name:"audit_id" json:"audit_id"`
}

type WxaQueryNicknameResponse

type WxaQueryNicknameResponse struct {
	Nickname    string `json:"nickname"`
	AuditStatus int64  `json:"audit_stat"`
	FailReason  string `json:"fail_reason"`
	CreateTime  int64  `json:"create_time"`
	AuditTime   int64  `json:"audit_time"`
}

type WxaQueryQuotaRequest

type WxaQueryQuotaRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
}

type WxaQueryQuotaResponse

type WxaQueryQuotaResponse struct {
	Rest         int64 `json:"rest"`
	Limit        int64 `json:"limit"`
	SpeedupRest  int64 `json:"speedup_rest"`
	SpeedupLimit int64 `json:"speedup_limit"`
}

type WxaReleaseRequest

type WxaReleaseRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
}

type WxaReleaseResponse

type WxaReleaseResponse struct {
}

type WxaRevertCodeReleaseHistoryVersionRequest

type WxaRevertCodeReleaseHistoryVersionRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
	Action      string `position:"query" name:"action" json:"action"`
}

type WxaRevertCodeReleaseHistoryVersionResponse

type WxaRevertCodeReleaseHistoryVersionResponse struct {
	VersionList []AppVersion `json:"version_list"`
}

type WxaRevertCodeReleaseRequest

type WxaRevertCodeReleaseRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
	AppVersion  int64  `position:"query" name:"app_version" json:"app_version"`
}

type WxaRevertCodeReleaseResponse

type WxaRevertCodeReleaseResponse struct {
}

type WxaSetNicknameRequest added in v0.0.2

type WxaSetNicknameRequest struct {
	AccessToken       string `position:"query" name:"access_token" json:"-"`
	Nickname          string `position:"body" name:"nick_name" json:"nick_name"`
	IDCard            string `position:"body" name:"id_card" json:"id_card"`
	License           string `position:"body" name:"license" json:"license"`
	NamingOtherStuff1 string `position:"body" name:"naming_other_staff_1" json:"naming_other_stuff_1"`
	NamingOtherStuff2 string `position:"body" name:"naming_other_stuff_2" json:"naming_other_stuff_2"`
	NamingOtherStuff3 string `position:"body" name:"naming_other_stuff_3" json:"naming_other_stuff_3"`
	NamingOtherStuff4 string `position:"body" name:"naming_other_stuff_4" json:"naming_other_stuff_4"`
	NamingOtherStuff5 string `position:"body" name:"naming_other_stuff_5" json:"naming_other_stuff_5"`
}

type WxaSetNicknameResponse added in v0.0.2

type WxaSetNicknameResponse struct {
	Wording string `json:"wording"`
	AuditID int64  `json:"audit_id"`
}

type WxaSpeedupAuditRequest

type WxaSpeedupAuditRequest struct {
	AccessToken string `position:"query" name:"access_token" json:"-"`
	AuditID     int64  `position:"body" name:"auditid" json:"audit_id"`
}

type WxaSpeedupAuditResponse

type WxaSpeedupAuditResponse struct {
}

type WxaSubmitAuditItem

type WxaSubmitAuditItem struct {
	Address     string `name:"address" json:"address"`
	Tag         string `name:"tag" json:"tag"`
	FirstClass  string `name:"first_class" json:"first_class"`
	SecondClass string `name:"second_class" json:"second_class"`
	ThirdClass  string `name:"third_class" json:"third_class"`
	FirstID     int64  `name:"first_id" json:"first_id"`
	SecondID    int64  `name:"second_id" json:"second_id"`
	ThirdID     int64  `name:"third_id" json:"third_id"`
	Title       int64  `name:"title" json:"title"`
}

type WxaSubmitAuditPreview

type WxaSubmitAuditPreview struct {
	VideoIDList   []string `name:"video_id_list" json:"video_id_list"`
	PictureIDList []string `name:"pic_id_list" json:"picture_id_list"`
}

type WxaSubmitAuditRequest

type WxaSubmitAuditRequest struct {
	AccessToken   string                  `position:"query" name:"access_token" json:"-"`
	ItemList      []WxaSubmitAuditItem    `position:"body" name:"item_list" json:"item_list,omitempty"`
	PreviewInfo   []WxaSubmitAuditPreview `position:"body" name:"preview_info" json:"preview_info,omitempty"`
	VersionDesc   string                  `position:"body" name:"version_desc" json:"version_desc,omitempty"`
	FeedbackInfo  string                  `position:"body" name:"feedback_info" json:"feedback_info,omitempty"`
	FeedbackStuff string                  `position:"body" name:"feedback_stuff" json:"feedback_stuff"`
	UgcDeclare    *WxaSubmitAuditUGC      `position:"body" name:"ugc_declare" json:"ugc_declare,omitempty"`
}

type WxaSubmitAuditResponse

type WxaSubmitAuditResponse struct {
	AuditID int64 `json:"auditid"`
}

type WxaSubmitAuditUGC

type WxaSubmitAuditUGC struct {
	Scene          int64  `name:"scene" json:"scene"`
	OtherSceneDesc string `name:"other_scene_desc" json:"other_scene_desc"`
	Method         int64  `name:"method" json:"method"`
	HasAuditTeam   int64  `name:"has_audit_team" json:"has_audit_team"`
	AuditDesc      string `name:"audit_desc" json:"audit_desc"`
}

Source Files

Directories

Path Synopsis
crypt
aes

Jump to

Keyboard shortcuts

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