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 AuthorizationUrl + const AuthorizerInfoUrl + const AuthorizerListUrl + const AuthorizerOptionUrl + const AuthorizerTokenUrl + const ClearQuotaUrl + const CreatePreAuthCodeUrl + const OpenBindUrl + const OpenCreateUrl + const OpenGetUrl + const OpenUnbindUrl + const QueryAuthUrl + const SetAuthorizerOptionUrl + const TokenUrl + func AuthorizationMessageAdapter(call func(common.CallbackModel, common.Adapter) string) common.Adapter + func VerifyTicketMessageAdapter(call func(common.CallbackModel, common.Adapter) string) common.Adapter + type AuthorizationInfoModel struct + AuthorizationInfo common.AuthorizationInfo + type AuthorizationMessage struct + AuthorizationCode string + AuthorizationCodeExpiredTime int64 + AuthorizerAppid string + PreAuthCode string + type AuthorizerInfo struct + Alias string + BusinessInfo struct{ ... } + HeadImg string + Idc int + MiniProgramInfo struct{ ... } + NickName string + PrincipalName string + QrcodeUrl string + ServiceTypeInfo struct{ ... } + Signature string + UserName string + VerifyTypeInfo struct{ ... } + type AuthorizerInfoListModel struct + List []struct{ ... } + TotalCount int64 + type AuthorizerInfoModel struct + AuthorizationInfo common.AuthorizationInfo + AuthorizerInfo AuthorizerInfo + type AuthorizerOption string + const CustomerService + const LocationReport + const VoiceRecognize + type AuthorizerOptionModel struct + AuthorizerAppid string + OptionName string + OptionValue string + type AuthorizerTokenModel struct + AuthorizerAccessToken string + AuthorizerRefreshToken string + ExpiresIn int + type OpenPlatformModel struct + OpenAppId string + type PlatformMessage struct + AppId string + CreateTime int64 + InfoType string + type PreAuthCodeModel struct + ExpiresIn int + PreAuthCode string + type ThirdPlatform struct + func NewThirdPlatform(cp cache.Provider, log *log.Slf4g, cfg ThirdPlatformConfig) *ThirdPlatform + func (op *ThirdPlatform) AuthorizationInfo(authCode string) (t bool, aim AuthorizationInfoModel) + func (op *ThirdPlatform) AuthorizerInfo(authorizerAppId string) (t bool, aim AuthorizerInfoModel) + func (op *ThirdPlatform) AuthorizerList(offset, count int) (t bool, ail AuthorizerInfoListModel) + func (op *ThirdPlatform) AuthorizerOption(authorizerAppId string, option AuthorizerOption) (t bool, aom AuthorizerOptionModel) + func (op *ThirdPlatform) AuthorizerToken(authorizerAppId string) (t bool) + func (op *ThirdPlatform) ClearQuota(appId string) (t bool, em common.ErrorModel) + func (op *ThirdPlatform) CreatePreAuthCode() (t bool, pac PreAuthCodeModel) + func (op *ThirdPlatform) MaskAuthorizationUrl(preAuthCode string) string + func (op *ThirdPlatform) OpenBind(appId, openAppId string) (bool, common.ErrorModel) + func (op *ThirdPlatform) OpenCreate(appId string) (t bool, ocm OpenPlatformModel) + func (op *ThirdPlatform) OpenGet(appId string) (t bool, ocm OpenPlatformModel) + func (op *ThirdPlatform) OpenUnbind(appId, openAppId string) (bool, common.ErrorModel) + func (op *ThirdPlatform) SetAuthorizerOption(authorizerAppId string, option AuthorizerOption, value string) (t bool, em common.ErrorModel) + func (op *ThirdPlatform) SyncToken(ticket string) bool + type ThirdPlatformAdapter interface + AuthorizationMessageAdapter func() common.Adapter + VerifyTicketMessageAdapter func() common.Adapter + type ThirdPlatformConfig struct + AesKey string + AppId string + AuthorizationUrl string + Refreshed []string + Secret string + Token string + type TokenModel struct + AccessToken string + ExpiresIn int + type VerifyTicketMessage struct + ComponentVerifyTicket string