Documentation ¶
Index ¶
- Constants
- type AuthConfig
- type AuthorizationInfo
- type Config
- type FuncInfo
- type FuncscopeCategory
- type QueryWechatTpAuthToken
- type QueryWechatTpToken
- type RefreshResponse
- type Response
- type WechatTpAuthKey
- type WechatTpAuthToken
- type WechatTpConfig
- type WechatTpInfoData
- type WechatTpMpInfo
- type WechatTpMsgMap
- type WechatTpPreAuthCodeResponse
- type WechatTpQueryAuthResponse
- type WechatTpToken
Constants ¶
View Source
const DefaultAuthMpLoginProxyURL = "https://api.weixin.qq.com/sns/component/"
View Source
const DefaultAuthProxyURL = "https://api.weixin.qq.com/"
View Source
const DefaultProxyURL = "https://api.weixin.qq.com/"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthConfig ¶
type AuthorizationInfo ¶
type FuncInfo ¶
type FuncInfo struct {
FuncscopeCategory FuncscopeCategory `json:"funcscope_category"`
}
type FuncscopeCategory ¶
type FuncscopeCategory struct {
Id int `json:"id"`
}
type QueryWechatTpAuthToken ¶
type QueryWechatTpAuthToken struct { WechatTpAuthToken AuthorizerRefreshToken string Updated string ExpireTime int64 }
type QueryWechatTpToken ¶
type QueryWechatTpToken struct { WechatTpToken Updated string ExpireTime int64 }
func (*QueryWechatTpToken) GetExpireTime ¶
func (q *QueryWechatTpToken) GetExpireTime() int64
func (*QueryWechatTpToken) GetUpdated ¶
func (q *QueryWechatTpToken) GetUpdated() string
type RefreshResponse ¶
type WechatTpAuthKey ¶
type WechatTpAuthToken ¶
type WechatTpConfig ¶
type WechatTpInfoData ¶
type WechatTpInfoData struct { XMLName xml.Name `xml:"xml" json:"-"` AppId string `xml:"AppId"` CreateTime string `xml:"CreateTime"` InfoType string `xml:"InfoType"` ComponentVerifyTicket string `xml:"ComponentVerifyTicket"` AuthorizerAppId string `xml:"AuthorizerAppid"` AuthorizationCode string `xml:"AuthorizationCode"` AuthorizationCodeExpiredTime string `xml:"AuthorizationCodeExpiredTime"` PreAuthCode string `xml:"PreAuthCode"` // InfoType == "notify_third_fasteregister" 快速创建小程序 事件回调通知 MpAppId string `xml:"appid"` // 创建小程序appid MpStatus string `xml:"status"` // 0 MpAuthCode string `xml:"auth_code"` // 第三方授权码 MpMsg string `xml:"msg"` // OK MpInfo WechatTpMpInfo `xml:"info"` }
type WechatTpMpInfo ¶
type WechatTpMpInfo struct { MpName string `xml:"name"` // 企业名称 MpCode string `xml:"code"` // 企业代码 MpCodeType string `xml:"code_type"` // 企业代码类型 MpLegalPersonaWechat string `xml:"legal_persona_wechat"` // 法人微信号 MpLegalPersonaName string `xml:"legal_persona_name"` // 法人姓名 MpComponentPhone string `xml:"component_phone"` // 第三方联系电话 }
type WechatTpMsgMap ¶
func (WechatTpMsgMap) MarshalXML ¶
func (m WechatTpMsgMap) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (*WechatTpMsgMap) UnmarshalXML ¶
func (m *WechatTpMsgMap) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
type WechatTpQueryAuthResponse ¶
type WechatTpQueryAuthResponse struct {
AuthorizationInfo AuthorizationInfo `json:"authorization_info"`
}
type WechatTpToken ¶
Click to show internal directories.
Click to hide internal directories.