Documentation
¶
Index ¶
Constants ¶
View Source
const (
WxOK = 0
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MiniProgram ¶
type MiniProgramAuthMobile ¶ added in v0.1.6
type MiniProgramAuthMobile struct { FullMobile string `json:"phoneNumber"` Mobile string `json:"purePhoneNumber"` CountryCode string `json:"countryCode"` }
func (*MiniProgramAuthMobile) ToValidMobile ¶ added in v0.1.6
func (s *MiniProgramAuthMobile) ToValidMobile() string
type MiniProgramAuthResponse ¶
type OAuthResponse ¶
type ReqAccessToken ¶ added in v0.1.6
type ReqMiniProgramAuthMobile ¶ added in v0.1.6
type ReqMiniProgramAuthMobile struct {
Code string `json:"code"`
}
type RespAccessToken ¶ added in v0.1.6
type RespMiniProgramAuthMobile ¶ added in v0.1.6
type RespMiniProgramAuthMobile struct { Response Mobile *MiniProgramAuthMobile `json:"phone_info"` }
type UserInfo ¶
type UserInfo struct { OpenID string `json:"openid"` UnionID string `json:"unionid"` NickName string `json:"nickname"` Sex int `json:"sex"` Province string `json:"province"` City string `json:"city"` Country string `json:"country"` HeadImgUrl string `json:"headimgurl"` Privileges []string `json:"privilege"` }
type UserInfoResponse ¶
Click to show internal directories.
Click to hide internal directories.