Documentation ¶
Index ¶
- Constants
- type AccountQrActionInfo
- type AccountQrCreateData
- type AccountQrCreateRes
- type AccountQrScene
- type AccountShortUrlData
- type AccountShortUrlRes
- type BasicInformationTokenQuery
- type BasicInformationTokenRes
- type CallbackCheckData
- type CallbackCheckRes
- type CustomMenuCurrentSelfMenuInfoRes
- type GetApiDomainIpRes
- type GuideAccountAddData
- type GuideAddBuyerData
- type GuideBuyer
- type JsSDKTicketType
- type KfAccountData
- type MediaType
- type MediaUploadImgRes
- type MediaUploadQuery
- type MediaUploadRes
- type MenuButton
- type MenuCreateData
- type MessageCustomSendArticle
- type MessageCustomSendData
- type MessageCustomSendMsgCustomService
- type MessageCustomSendMsgImage
- type MessageCustomSendMsgMenu
- type MessageCustomSendMsgMenuItem
- type MessageCustomSendMsgMiniProgramPage
- type MessageCustomSendMsgMpNews
- type MessageCustomSendMsgMusic
- type MessageCustomSendMsgNews
- type MessageCustomSendMsgText
- type MessageCustomSendMsgVideo
- type MessageCustomSendMsgVoice
- type MessageCustomSendMsgWxCard
- type MessageCustomSendType
- type MessageCustomServiceKfAccountUploadHeadImgQuery
- type MessageCustomServiceKfListRes
- type MessageData
- type MessageMassSendData
- type MessageMassSendImages
- type MessageMassSendMediaId
- type MessageMassSendMpVideo
- type MessageMassSendRes
- type MessageMassSendText
- type MessageMassSendType
- type MessageMassSendWxCard
- type MessageQuery
- type MessageTemplateMiniProgram
- type MessageTemplateSendData
- type MessageTemplateSendDataItem
- type MessageTemplateSendRes
- type MpApi
- type MpBaseResp
- type MsgInfo
- type OaWebAppsJsSDKTicketQuery
- type OaWebAppsJsSDKTicketRes
- type OaWebAppsSnsAuth2AccessTokenQuery
- type OaWebAppsSnsAuth2AccessTokenRes
- type OaWebAppsSnsUserInfoQuery
- type OaWebAppsSnsUserInfoRes
- type OcrBandCardResp
- type OcrBaseQuery
- type OcrBusinessLicenseResp
- type OcrIdCardResp
- type QrActionType
- type ServerHost
- type SnsJsCode2SessionQuery
- type SnsJsCode2SessionRes
- type TokenGrantType
- type UserGetQuery
- type UserGetRes
- type UserInfoBatchGetData
- type UserInfoBatchGetDataItem
- type UserInfoBatchGetRes
- type UserInfoQuery
- type UserInfoRes
- type UserInfoUpdateRemarkData
- type UserTag
- type UserTagGetQuery
- type UserTagGetRes
- type UserTagMembersBatchData
- type UserTagMembersBatchUnTagData
- type UserTagsCreateData
- type UserTagsCreateRes
- type UserTagsDeleteData
- type UserTagsGetIdListData
- type UserTagsGetIdListRes
- type UserTagsGetRes
- type UserTagsUpdateData
- type WXACodeReq
- type WXACodeReqColor
- type WXACodeUnLimitReq
Constants ¶
View Source
const ( // ServerHostUniversal 通用域名 ServerHostUniversal = "api.weixin.qq.com" // ServerHostUniversal2 通用异地容灾域名 ServerHostUniversal2 = "api2.weixin.qq.com" // ServerHostShangHai 上海域名 ServerHostShangHai = "sh.api.weixin.qq.com" // ServerHostShenZhen 深圳域名 ServerHostShenZhen = "sz.api.weixin.qq.com" // ServerHostHK 香港域名 ServerHostHK = "hk.api.weixin.qq.com" )
View Source
const ( // BasicInformationToken 获取Access token BasicInformationToken = "cgi-bin/token" // BasicInformationApiDomainIp 获取微信服务器IP地址 BasicInformationApiDomainIp = "cgi-bin/get_api_domain_ip" // BasicInformationCallbackCheck 网络检测 BasicInformationCallbackCheck = "cgi-bin/callback/check" // CustomMenuCreate 创建自定义菜单 CustomMenuCreate = "cgi-bin/menu/create" // CustomMenuCurrentSelfMenuInfo 查询自定义菜单 CustomMenuCurrentSelfMenuInfo = "cgi-bin/get_current_selfmenu_info" // CustomMenuDelete 删除默认菜单及全部个性化菜单 CustomMenuDelete = "cgi-bin/menu/delete" // MessageCustomServiceKfAccountAdd 添加客服 MessageCustomServiceKfAccountAdd = "customservice/kfaccount/add" // MessageCustomServiceKfAccountUpdate 修改客服 MessageCustomServiceKfAccountUpdate = "customservice/kfaccount/update" // MessageCustomServiceKfAccountDel 删除客服 MessageCustomServiceKfAccountDel = "customservice/kfaccount/del" // MessageCustomServiceKfAccountUploadHeadImg 上传客服头像 MessageCustomServiceKfAccountUploadHeadImg = "customservice/kfaccount/uploadheadimg" // MessageCustomServiceKfList 获取所有客服 MessageCustomServiceKfList = "cgi-bin/customservice/getkflist" // MessageCustomSend 客服接口-发消息 MessageCustomSend = "cgi-bin/message/custom/send" // MessageTemplateSend 发送模板消息 MessageTemplateSend = "cgi-bin/message/template/send" // MessageMassSend 根据OpenID列表群发 MessageMassSend = "cgi-bin/message/mass/send" // MediaUploadImg 上传图文消息内的图片获取URL MediaUploadImg = "cgi-bin/media/uploadimg" // MediaUpload 新增临时素材 MediaUpload = "cgi-bin/media/upload" // OaWebAppsSnsAuth2AccessToken 通过code换取网页授权access_token OaWebAppsSnsAuth2AccessToken = "sns/oauth2/access_token" // OaWebAppsSnsUserInfo 拉取用户信息(需scope为 snsapi_userinfo) OaWebAppsSnsUserInfo = "sns/userinfo" // OaWebAppsJsSDKTicket 获取JsSDK ticket OaWebAppsJsSDKTicket = "cgi-bin/ticket/getticket" // UserTagsCreate 创建标签 UserTagsCreate = "cgi-bin/tags/create" // UserTagsGet 获取公众号已创建的标签 UserTagsGet = "cgi-bin/tags/get" // UserTagsUpdate 编辑标签 UserTagsUpdate = "cgi-bin/tags/update" // UserTagsDelete 删除标签 UserTagsDelete = "cgi-bin/tags/delete" // UserTagGet 获取标签下粉丝列表 UserTagGet = "cgi-bin/user/tag/get" // UserTagMembersBatch 批量为用户打标签 UserTagMembersBatch = "cgi-bin/tags/members/batchtagging" // UserTagMembersBatchUnTag 批量为用户取消标签 UserTagMembersBatchUnTag = "cgi-bin/tags/members/batchuntagging" // UserTagsGetIdList 获取用户身上的标签列表 UserTagsGetIdList = "cgi-bin/tags/getidlist" // UserInfoUpdateRemark 用户设置备注名 UserInfoUpdateRemark = "cgi-bin/user/info/updateremark" // UserInfo 获取用户基本信息(包括UnionID机制) UserInfo = "cgi-bin/user/info" // UserInfoBatchGet 批量获取用户基本信息 UserInfoBatchGet = "cgi-bin/user/info/batchget" // UserGet 获取关注者列表 UserGet = "cgi-bin/user/get" // AccountQrCreate 二维码 AccountQrCreate = "cgi-bin/qrcode/create" // AccountShortUrl 长链接转成短链接 AccountShortUrl = "cgi-bin/shorturl" // GuideAccountAdd 添加顾问 GuideAccountAdd = "cgi-bin/guide/addguideacct" // GuideAddBuyer 为顾问分配客户 GuideAddBuyer = "cgi-bin/guide/addguidebuyerrelation" // SnsJsCode2Session 登录凭证校验 SnsJsCode2Session = "sns/jscode2session" // WXACode 获取小程序码 WXACode = "wxa/getwxacode" // WXACodeUnLimit 获取不限制的小程序码 WXACodeUnLimit = "wxa/getwxacodeunlimit" // WXAQrCode 获取小程序二维码 WXAQrCode = "cgi-bin/wxaapp/createwxaqrcode" // OcrBandCard 银行卡识别 OcrBandCard = "cv/ocr/bankcard" // OcrBusinessLicense 营业执照识别 OcrBusinessLicense = "cv/ocr/bizlicense" // OcrDrivingLicense 营业执照识别 OcrDrivingLicense = "cv/ocr/drivinglicense" // OcrIdCard 身份证识别 OcrIdCard = "cv/ocr/idcard" // OcrText 普通文字识别 OcrText = "cv/ocr/comm" )
View Source
const ( MessageCustomSendTypeText = "text" MessageCustomSendTypeImage = "image" MessageCustomSendTypeVideo = "video" MessageCustomSendTypeMusic = "music" MessageCustomSendTypeNews = "news" MessageCustomSendTypeMpNews = "mpnews" MessageCustomSendTypeMsgMenu = "msgmenu" MessageCustomSendTypeWxCard = "wxcard" MessageCustomSendTypeMiniProgramPage = "miniprogrampage" )
View Source
const ( MessageMassSendTypeMpNews = "mpnews" MessageMassSendTypeText = "text" MessageMassSendTypeVoice = "voice" MessageMassSendTypeImages = "images" MessageMassSendTypeMpVideo = "mpvideo" MessageMassSendTypeWxCard = "wxcard" )
View Source
const ( MediaTypeImage = "image" MediaTypeVoice = "voice" MediaTypeVideo = "video" MediaTypeThumb = "thumb" )
View Source
const ( QrActionTypeScene = "QR_SCENE" QrActionTypeStrScene = "QR_STR_SCENE" QrActionTypeLimitScene = "QR_LIMIT_SCENE" QrActionTypeLimitStrScene = "QR_LIMIT_STR_SCENE" )
View Source
const ( TokenGrantTypeClientCredential = "client_credential" TokenGrantTypeAuthCode = "authorization_code" )
View Source
const ( JsSDKTicketTypeJSAPI = "jsapi" JsSDKTicketTypeWxCard = "wx_card" )
View Source
const ShortUrlAction = "long2short"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountQrActionInfo ¶ added in v1.1.1
type AccountQrActionInfo struct {
Scene AccountQrScene `json:"scene"`
}
type AccountQrCreateData ¶
type AccountQrCreateData struct { ExpireSeconds int64 `json:"expire_seconds,omitempty"` ActionName QrActionType `json:"action_name"` ActionInfo AccountQrActionInfo `json:"action_info"` }
type AccountQrCreateRes ¶
type AccountQrCreateRes struct { MpBaseResp Ticket string `json:"ticket"` ExpireSeconds int64 `json:"expire_seconds,omitempty"` Url string `json:"url"` }
type AccountQrScene ¶ added in v1.1.1
type AccountShortUrlData ¶
type AccountShortUrlRes ¶
type AccountShortUrlRes struct { MpBaseResp ShortUrl string `json:"short_url"` }
type BasicInformationTokenRes ¶
type BasicInformationTokenRes struct { MpBaseResp AccessToken string `json:"access_token"` ExpiresIn int64 `json:"expires_in"` }
type CallbackCheckData ¶
type CallbackCheckRes ¶
type CallbackCheckRes struct { MpBaseResp Dns []struct { Ip string `json:"ip"` RealOperator string `json:"real_operator"` } `json:"dns"` Ping []struct { Ip string `json:"ip"` FromOperator string `json:"from_operator"` PackageLoss string `json:"package_loss"` Time string `json:"time"` } `json:"ping"` }
type CustomMenuCurrentSelfMenuInfoRes ¶
type CustomMenuCurrentSelfMenuInfoRes struct { MpBaseResp IsMenuOpen int64 `json:"is_menu_open"` SelfMenuInfo struct { Button []MenuButton `json:"button"` } `json:"selfmenu_info"` }
type GetApiDomainIpRes ¶
type GetApiDomainIpRes struct { MpBaseResp IpList []string `json:"ip_list"` }
type GuideAccountAddData ¶
type GuideAddBuyerData ¶
type GuideAddBuyerData struct { GuideAccount string `json:"guide_account,omitempty"` GuideOpenid string `json:"guide_openid,omitempty"` GuideBuyer BuyerList []GuideBuyer `json:"buyer_list,omitempty"` }
type GuideBuyer ¶
type JsSDKTicketType ¶
type JsSDKTicketType string
type KfAccountData ¶
type MediaUploadImgRes ¶
type MediaUploadImgRes struct { MpBaseResp Url string `json:"url"` }
type MediaUploadQuery ¶
type MediaUploadQuery struct {
Type MediaType `url:"type"`
}
type MediaUploadRes ¶
type MediaUploadRes struct { MpBaseResp Type string `json:"type"` MediaId string `json:"media_id"` CreatedAt int64 `json:"created_at"` }
type MenuButton ¶
type MenuButton struct { Type string `json:"type"` Name string `json:"name"` Key string `json:"key,omitempty"` Url string `json:"url,omitempty"` MediaId string `json:"media_id,omitempty"` AppId string `json:"appid,omitempty"` PagePath string `json:"pagepath,omitempty"` SubButton []MenuButton `json:"sub_button,omitempty"` }
type MenuCreateData ¶
type MenuCreateData struct {
Button []MenuButton `json:"button"`
}
type MessageCustomSendData ¶
type MessageCustomSendData struct { ToUser string `json:"touser"` MsgType MessageCustomSendType `json:"msgtype"` Text MessageCustomSendMsgText `json:"text"` Image MessageCustomSendMsgImage `json:"image"` Voice MessageCustomSendMsgVoice `json:"voice"` Video MessageCustomSendMsgVideo `json:"video"` Music MessageCustomSendMsgMusic `json:"music"` News MessageCustomSendMsgNews `json:"news"` MpNews MessageCustomSendMsgMpNews `json:"mpnews"` MsgMenu MessageCustomSendMsgMenu `json:"msgmenu"` WxCard MessageCustomSendMsgWxCard `json:"wxcard"` MiniProgramPage MessageCustomSendMsgMiniProgramPage `json:"miniprogrampage"` CustomService MessageCustomSendMsgCustomService `json:"customservice"` }
type MessageCustomSendMsgCustomService ¶ added in v1.1.1
type MessageCustomSendMsgCustomService struct {
KfAccount string `json:"kf_account"`
}
type MessageCustomSendMsgImage ¶ added in v1.1.1
type MessageCustomSendMsgImage struct {
MediaId string `json:"media_id"`
}
type MessageCustomSendMsgMenu ¶ added in v1.1.1
type MessageCustomSendMsgMenu struct { HeadContent string `json:"head_content"` List []MessageCustomSendMsgMenuItem `json:"list"` TailContent string `json:"tail_content"` }
type MessageCustomSendMsgMiniProgramPage ¶ added in v1.1.1
type MessageCustomSendMsgMpNews ¶ added in v1.1.1
type MessageCustomSendMsgMpNews MessageCustomSendMsgImage
type MessageCustomSendMsgMusic ¶ added in v1.1.1
type MessageCustomSendMsgNews ¶ added in v1.1.1
type MessageCustomSendMsgNews struct {
Articles []MessageCustomSendArticle `json:"articles"`
}
type MessageCustomSendMsgText ¶ added in v1.1.1
type MessageCustomSendMsgText struct {
Content string `json:"content"`
}
type MessageCustomSendMsgVideo ¶ added in v1.1.1
type MessageCustomSendMsgVoice ¶ added in v1.1.1
type MessageCustomSendMsgVoice MessageCustomSendMsgImage
type MessageCustomSendMsgWxCard ¶ added in v1.1.1
type MessageCustomSendMsgWxCard struct {
CardId string `json:"card_id"`
}
type MessageCustomSendType ¶
type MessageCustomSendType string
type MessageCustomServiceKfAccountUploadHeadImgQuery ¶
type MessageCustomServiceKfAccountUploadHeadImgQuery struct {
KfAccount string `url:"kf_account"`
}
type MessageCustomServiceKfListRes ¶
type MessageCustomServiceKfListRes struct { MpBaseResp KfList []KfAccountData `json:"kf_list"` }
type MessageData ¶
type MessageData struct { ToUserName string `xml:"ToUserName" json:"to_user_name,omitempty"` Encrypt string `xml:"Encrypt" json:"encrypt,omitempty"` FromUserName string `xml:"FromUserName" json:"from_user_name,omitempty"` CreateTime int64 `xml:"CreateTime" json:"create_time,omitempty"` MsgType string `xml:"MsgType" json:"msg_type,omitempty"` Content string `xml:"Content" json:"content,omitempty"` MsgId int64 `xml:"MsgId" json:"msg_id,omitempty"` PicUrl string `xml:"PicUrl" json:"pic_url,omitempty"` MediaId string `xml:"MediaId" json:"media_id,omitempty"` Format string `xml:"Format" json:"format,omitempty"` Recognition string `xml:"Recognition" json:"recognition,omitempty"` ThumbMediaId string `xml:"ThumbMediaId" json:"thumb_media_id,omitempty"` LocationX float64 `xml:"Location_X" json:"location_x,omitempty"` LocationY float64 `xml:"Location_Y" json:"location_y,omitempty"` Scale int64 `xml:"Scale" json:"scale,omitempty"` Label string `xml:"Label" json:"label,omitempty"` Title string `xml:"Title" json:"title,omitempty"` Description string `xml:"Description" json:"description,omitempty"` Url string `xml:"Url" json:"url,omitempty"` Event string `xml:"Event" json:"event,omitempty"` EventKey string `xml:"EventKey" json:"event_key,omitempty"` Ticket string `xml:"Ticket" json:"ticket,omitempty"` Latitude float64 `xml:"Latitude" json:"latitude,omitempty"` Longitude float64 `xml:"Longitude" json:"longitude,omitempty"` Precision float64 `xml:"Precision" json:"precision,omitempty"` SessionFrom string `xml:"SessionFrom" json:"session_from,omitempty"` Status string `xml:"Status" json:"status,omitempty"` MsgID int64 `xml:"MsgID" json:"msgID,omitempty"` SentCount int64 `xml:"SentCount" json:"sent_count,omitempty"` AppId string `xml:"AppId,omitempty" json:"app_id,omitempty"` InfoType string `xml:"InfoType,omitempty" json:"info_type,omitempty"` Msg string `xml:"msg,omitempty" json:"msg,omitempty"` Info MsgInfo `xml:"info,omitempty" json:"info,omitempty"` }
MessageData 公众号消息
func (*MessageData) ShouldDecode ¶
func (msg *MessageData) ShouldDecode(EncodingAESKey string) (err error)
ShouldDecode 公众号消息解密
type MessageMassSendData ¶ added in v1.1.1
type MessageMassSendData struct { ToUser []string `json:"touser"` MsgType MessageMassSendType `json:"msgtype"` MpNews *MessageMassSendMediaId `json:"mpnews,omitempty"` Text *MessageMassSendText `json:"text,omitempty"` Voice *MessageMassSendMediaId `json:"voice,omitempty"` Images *MessageMassSendImages `json:"images,omitempty"` MpVideo *MessageMassSendMpVideo `json:"mpvideo,omitempty"` WxCard *MessageMassSendWxCard `json:"wxcard,omitempty"` SendIgnoreReprint int `json:"send_ignore_reprint"` }
type MessageMassSendImages ¶ added in v1.1.1
type MessageMassSendMediaId ¶ added in v1.1.1
type MessageMassSendMediaId struct {
MediaId string `json:"media_id"`
}
type MessageMassSendMpVideo ¶ added in v1.1.1
type MessageMassSendRes ¶ added in v1.1.1
type MessageMassSendRes struct { MpBaseResp MsgId int64 `json:"msg_id"` MsgDataId int64 `json:"msg_data_id"` }
type MessageMassSendText ¶ added in v1.1.1
type MessageMassSendText struct {
Content string `json:"content"`
}
type MessageMassSendType ¶ added in v1.1.1
type MessageMassSendType string
type MessageMassSendWxCard ¶ added in v1.1.1
type MessageMassSendWxCard struct {
CardId string `json:"card_id"`
}
type MessageQuery ¶
type MessageQuery struct { Signature string `param:"signature" binding:"required"` Timestamp string `param:"timestamp" binding:"required"` Nonce string `param:"nonce" binding:"required"` EchoStr string `param:"echostr"` OpenId string `param:"openid"` EncryptType string `param:"encrypt_type"` MsgSignature string `param:"msg_signature"` }
MessageQuery 消息通知`query`数据
func (MessageQuery) Validate ¶
func (mq MessageQuery) Validate(PrivateToken string) (err error)
Validate 安全验证
type MessageTemplateMiniProgram ¶ added in v1.1.1
type MessageTemplateSendData ¶
type MessageTemplateSendData struct { ToUser string `json:"touser"` TemplateId string `json:"template_id"` Url string `json:"url"` MiniProgram MessageTemplateMiniProgram `json:"miniprogram"` Data map[string]MessageTemplateSendDataItem `json:"data"` }
type MessageTemplateSendRes ¶
type MessageTemplateSendRes struct { MpBaseResp MsgId int64 `json:"msgid"` }
type MpBaseResp ¶
type MpBaseResp struct { ErrCode int64 `json:"errcode,omitempty"` ErrMsg string `json:"errmsg,omitempty"` }
func (MpBaseResp) IsError ¶ added in v1.3.1
func (mbr MpBaseResp) IsError() bool
func (MpBaseResp) ToError ¶ added in v1.3.1
func (mbr MpBaseResp) ToError() error
type MsgInfo ¶ added in v1.3.1
type MsgInfo struct { ComponentVerifyTicket string `xml:"ComponentVerifyTicket,omitempty" json:"component_verify_ticket,omitempty"` Status2 int64 `xml:"status,omitempty" json:"status_2,omitempty"` AuthCode string `xml:"auth_code,omitempty" json:"auth_code,omitempty,omitempty"` Name string `xml:"name,omitempty" json:"name,omitempty"` Code string `xml:"code,omitempty" json:"code,omitempty"` CodeType int64 `xml:"code_type,omitempty" json:"codeType,omitempty"` LegalPersonaWechat string `xml:"legal_persona_wechat,omitempty" json:"legalPersonaWechat,omitempty"` LegalPersonaName string `xml:"legal_persona_name,omitempty" json:"legalPersonaName,omitempty"` ComponentPhone string `xml:"component_phone,omitempty" json:"componentPhone,omitempty"` }
type OaWebAppsJsSDKTicketQuery ¶
type OaWebAppsJsSDKTicketQuery struct {
Type JsSDKTicketType `url:"type"`
}
type OaWebAppsJsSDKTicketRes ¶
type OaWebAppsJsSDKTicketRes struct { MpBaseResp Ticket string `json:"ticket"` ExpiresIn int64 `json:"expires_in"` }
type OaWebAppsSnsUserInfoRes ¶
type OaWebAppsSnsUserInfoRes struct { MpBaseResp OpenId string `json:"openid"` NickName string `json:"nickname"` Sex int64 `json:"sex"` Province string `json:"province"` City string `json:"city"` Country string `json:"country"` HeadImgUrl string `json:"headimgurl"` Privilege []string `json:"privilege"` UnionId string `json:"unionid"` }
type OcrBandCardResp ¶ added in v1.3.1
type OcrBandCardResp struct { MpBaseResp Number string `json:"number"` }
type OcrBaseQuery ¶ added in v1.3.1
type OcrBaseQuery struct {
ImgUrl string `url:"img_url"`
}
type OcrBusinessLicenseResp ¶ added in v1.3.1
type OcrBusinessLicenseResp struct { MpBaseResp RegNum string `json:"reg_num"` Serial string `json:"serial"` LegalRepresentative string `json:"legal_representative"` EnterpriseName string `json:"enterprise_name"` TypeOfOrganization string `json:"type_of_organization"` Address string `json:"address"` TypeOfEnterprise string `json:"type_of_enterprise"` BusinessScope string `json:"business_scope"` RegisteredCapital string `json:"registered_capital"` PaidInCapital string `json:"paid_in_capital"` ValidPeriod string `json:"valid_period"` RegisteredDate string `json:"registered_date"` }
type OcrIdCardResp ¶ added in v1.3.1
type QrActionType ¶
type QrActionType string
type ServerHost ¶
type ServerHost string
type SnsJsCode2SessionQuery ¶ added in v1.3.1
type SnsJsCode2SessionRes ¶ added in v1.3.1
type SnsJsCode2SessionRes struct { MpBaseResp OpenId string `json:"openid"` SessionKey string `json:"session_key"` UnionId string `json:"unionid"` }
type TokenGrantType ¶
type TokenGrantType string
type UserGetQuery ¶
type UserGetQuery struct {
NextOpenId string `url:"next_openid"`
}
type UserGetRes ¶
type UserGetRes struct { MpBaseResp Total int64 `json:"total"` Count int64 `json:"count"` Data struct { OpenId []string `json:"openid"` } `json:"data"` NextOpenId string `json:"next_openid"` }
type UserInfoBatchGetData ¶
type UserInfoBatchGetData struct {
UserList []UserInfoBatchGetDataItem `json:"user_list"`
}
type UserInfoBatchGetRes ¶
type UserInfoBatchGetRes struct { MpBaseResp UserInfoList []UserInfoRes `json:"user_info_list"` }
type UserInfoQuery ¶
type UserInfoRes ¶
type UserInfoRes struct { MpBaseResp Subscribe int64 `json:"subscribe"` OpenId string `json:"openid"` NickName string `json:"nickname"` Sex int64 `json:"sex"` Language string `json:"language"` City string `json:"city"` Province string `json:"province"` Country string `json:"country"` HeadImgUrl string `json:"headimgurl"` SubscribeTime int64 `json:"subscribe_time"` UnionId string `json:"unionid"` Remark string `json:"remark"` GroupId int64 `json:"group_id"` TagIdList []int64 `json:"tagid_list"` SubscribeScene string `json:"subscribe_scene"` QrScene int64 `json:"qr_scene"` QrSceneStr string `json:"qr_scene_str"` }
type UserTagGetQuery ¶
type UserTagGetRes ¶
type UserTagMembersBatchData ¶
type UserTagsCreateData ¶
type UserTagsCreateData struct {
Tag UserTag `json:"tag"`
}
type UserTagsCreateRes ¶
type UserTagsCreateRes struct { MpBaseResp Tag UserTag `json:"tag"` }
type UserTagsDeleteData ¶
type UserTagsDeleteData struct {
Tag UserTag `json:"tag"`
}
type UserTagsGetIdListData ¶
type UserTagsGetIdListData struct {
OpenId string `json:"openid"`
}
type UserTagsGetIdListRes ¶
type UserTagsGetIdListRes struct { MpBaseResp TagIdList []int64 `json:"tagid_list"` }
type UserTagsGetRes ¶
type UserTagsGetRes struct { MpBaseResp Tags []UserTag `json:"tags"` }
type UserTagsUpdateData ¶
type UserTagsUpdateData struct {
Tag UserTag `json:"tag"`
}
type WXACodeReq ¶ added in v1.3.1
type WXACodeReq struct { Path string `json:"path"` Width int64 `json:"width,omitempty"` AutoColor bool `json:"auto_color,omitempty"` LineColor *WXACodeReqColor `json:"line_color,omitempty"` IsHyaline bool `json:"is_hyaline"` }
type WXACodeReqColor ¶ added in v1.3.1
type WXACodeUnLimitReq ¶ added in v1.3.1
type WXACodeUnLimitReq struct { Scene string `json:"scene"` Page string `json:"page,omitempty"` CheckPath bool `json:"check_path"` EnvVersion string `json:"env_version,omitempty"` Width int64 `json:"width,omitempty"` AutoColor bool `json:"auto_color,omitempty"` LineColor *WXACodeReqColor `json:"line_color,omitempty"` IsHyaline bool `json:"is_hyaline,omitempty"` }
Click to show internal directories.
Click to hide internal directories.