Versions in this module Expand all Collapse all v2 v2.1.8 Mar 10, 2024 Changes in this version + type Auth struct + func NewAuth(ctx *context.Context) *Auth + func (auth *Auth) CheckEncryptedData(encryptedMsgHash string) (result RspCheckEncryptedData, err error) + func (auth *Auth) CheckEncryptedDataContext(ctx context2.Context, encryptedMsgHash string) (result RspCheckEncryptedData, err error) + func (auth *Auth) Code2Session(jsCode string) (result ResCode2Session, err error) + func (auth *Auth) Code2SessionContext(ctx context2.Context, jsCode string) (result ResCode2Session, err error) + func (auth *Auth) GetPaidUnionID() + func (auth *Auth) GetPhoneNumber(code string) (*GetPhoneNumberResponse, error) + func (auth *Auth) GetPhoneNumberContext(ctx context2.Context, code string) (*GetPhoneNumberResponse, error) + type GetPhoneNumberResponse struct + PhoneInfo PhoneInfo + type PhoneInfo struct + CountryCode string + PhoneNumber string + PurePhoneNumber string + WaterMark struct{ ... } + type ResCode2Session struct + OpenID string + SessionKey string + UnionID string + type RspCheckEncryptedData struct + CreateTime uint64 + Vaild bool