Versions in this module Expand all Collapse all v0 v0.0.4 Jul 9, 2021 v0.0.3 Jun 8, 2021 v0.0.2 Jun 3, 2021 v0.0.1 Jun 3, 2021 Changes in this version + const ApiDomainIpUrl + const CheckNetworkUrl + const ClearQuotaUrl + const OpenSnsAccessTokenUrl + const QrcodeUrl + const SnsAccessTokenUrl + const SnsUserinfoUrl + const UserInfoBatchGetUrl + const UserInfoUrl + func EventLocationMessageAdapter(call func(common.CallbackModel, common.Adapter) string) common.Adapter + func EventMessageAdapter(call func(common.CallbackModel, common.Adapter) string) common.Adapter + func EventSubscribeMessageAdapter(call func(common.CallbackModel, common.Adapter) string) common.Adapter + func ImageMessageAdapter(call func(common.CallbackModel, common.Adapter) string) common.Adapter + func LinkMessageAdapter(call func(common.CallbackModel, common.Adapter) string) common.Adapter + func LocationMessageAdapter(call func(common.CallbackModel, common.Adapter) string) common.Adapter + func TextMessageAdapter(call func(common.CallbackModel, common.Adapter) string) common.Adapter + func VideoMessageAdapter(call func(common.CallbackModel, common.Adapter) string) common.Adapter + func VoiceMessageAdapter(call func(common.CallbackModel, common.Adapter) string) common.Adapter + type ActionType string + const AllActionType + const DnsActionType + const PingActionType + type Article struct + Description string + PicURL string + Title string + URL string + type BaseEventMessage struct + Event string + type BaseUserInfo struct + City string + Country string + HeadImgUrl string + Language string + Nickname string + Openid string + Privilege []string + Province string + Sex int + Unionid string + type BaseUserInfoModel struct + type CheckNetworkModel struct + Dns []struct{ ... } + Ping []struct{ ... } + type CheckOperator string + const CapCheckOperator + const ChinanetCheckOperator + const DefaultCheckOperator + const UnicomCheckOperator + type EventLocationMessage struct + Latitude float64 + Longitude float64 + Precision float64 + type EventMessage struct + EventKey string + type EventSubscribeMessage struct + Ticket string + type ImageMessage struct + MediaId string + MsgId int64 + PicUrl string + type ImageResponse struct + Image struct{ ... } + XMLName struct{} + func NewImageResponse(to, from, mediaId string) *ImageResponse + type IpListModel struct + IpList []string + type JsApiTicketModel struct + Expires int + Ticket string + type LinkMessage struct + Description string + MsgId int64 + Title string + Url string + type LocationMessage struct + Label float64 + Latitude float64 + Longitude float64 + MsgId int64 + Scale float64 + type MessageHeader struct + CreateTime int64 + FromUserName string + MsgType common.MsgType + ToUserName string + func NewMessageHeader(to, from string, msgType common.MsgType) MessageHeader + type MusicResponse struct + Music struct{ ... } + XMLName struct{} + func NewMusicResponse(to, from, title, description, musicURL, hqMusicURL, mediaId string) *MusicResponse + type NewsResponse struct + ArticleCount int + Articles []Article + XMLName struct{} + func NewNewsResponse(to, from string, articles []Article) *NewsResponse + type OfficialAccounts struct + func NewOfficialAccounts(cp cache.Provider, log *log.Slf4g, cfg OfficialAccountsConfig) *OfficialAccounts + func (oa *OfficialAccounts) AccessTokenByCode(code string, componentAppId string) (s SnsAccessTokenModel, err error) + func (oa *OfficialAccounts) ApiDomainIp() (t bool, ilm IpListModel) + func (oa *OfficialAccounts) CheckNetwork(action ActionType, checkOperator CheckOperator) (t bool, cnm CheckNetworkModel) + func (oa *OfficialAccounts) ClearQuota(appId string) (t bool, em common.ErrorModel) + func (oa *OfficialAccounts) CreateLimitQrCode(sceneId int) (qr *QrCodeResponse, err error) + func (oa *OfficialAccounts) CreateQrCode(sceneId int, expireSeconds int) (qr *QrCodeResponse, err error) + func (oa *OfficialAccounts) JsApiTicket() (jst JsApiTicketModel, err error) + func (oa *OfficialAccounts) SnsUserInfo(model SnsAccessTokenModel) (user *BaseUserInfoModel, err error) + func (oa *OfficialAccounts) UserInfo(openId, lang string) (t bool, uim UserInfoModel) + func (oa *OfficialAccounts) UserInfoBatchGet(uip []UserInfoParm) (t bool, uil UserInfoListModel) + func (oa *OfficialAccounts) UserTags() + type OfficialAccountsConfig struct + AesKey string + AppId string + OpenPlatform bool + Secret string + Token string + type OfficialAccountsReceivingAdapter interface + EventLocationMessageAdapter func() common.Adapter + EventMessageAdapter func() common.Adapter + EventSubscribeMessageAdapter func() common.Adapter + ImageMessageAdapter func() common.Adapter + LinkMessageAdapter func() common.Adapter + LocationMessageAdapter func() common.Adapter + TextAdapter func() common.Adapter + VideoMessageAdapter func() common.Adapter + VoiceMessageAdapter func() common.Adapter + type QrCodeResponse struct + ExpireSeconds int + Ticket string + Url string + type SnsAccessTokenModel struct + AccessToken string + Expires int + Openid string + RefreshToken string + Scope string + type SubscribeScene string + const AddSceneAccountMigration + const AddSceneOthers + const AddScenePaid + const AddSceneProfileCard + const AddSceneProfileItem + const AddSceneProfileLink + const AddSceneQrcode + const AddSceneSearch + const AddSceneWechatAdvertisement + type TextMessage struct + Content string + MsgId int64 + type TextResponse struct + Content string + XMLName struct{} + func NewTextResponse(to, from, content string) *TextResponse + type UserInfo struct + Groupid uint32 + QrScene int + QrSceneStr string + Remark string + Subscribe int + SubscribeScene SubscribeScene + SubscribeTime string + TagIdList []int + type UserInfoListModel struct + UserInfoList []UserInfo + type UserInfoModel struct + type UserInfoParm struct + Lang string + OpenId string + type VideoMessage struct + MediaId string + MsgId int64 + ThumbMediaId string + type VideoResponse struct + Video struct{ ... } + XMLName struct{} + func NewVideoResponse(to, from, mediaId, title, description string) *VideoResponse + type VoiceMessage struct + Format string + MediaId string + MsgId int64 + Recognition string + type VoiceResponse struct + Voice struct{ ... } + XMLName struct{} + func NewVoiceResponse(to, from, mediaId string) *VoiceResponse