Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WeChatProvider ¶
type WeChatProvider struct { }
func (*WeChatProvider) GetAuthDataFromJson ¶
func (m *WeChatProvider) GetAuthDataFromJson(data io.Reader) string
func (*WeChatProvider) GetIdentifier ¶
func (m *WeChatProvider) GetIdentifier() string
func (*WeChatProvider) GetUserFromJson ¶
func (m *WeChatProvider) GetUserFromJson(data io.Reader) *model.User
type WeChatUser ¶
type WeChatUser struct { OpenId string `json:"openid"` NickName string `json:"nickname"` Sex int `json:"sex"` Language string `json:"Language"` City string `json:"city"` Province string `json:"province"` Country string `json:"country"` HeadImgUrl string `json:"headimgurl"` Privilege []string `json:"privilege"` Unionid string `json:"unionid"` }
func (*WeChatUser) IsValid ¶
func (wcu *WeChatUser) IsValid() bool
func (*WeChatUser) ToJson ¶
func (wcu *WeChatUser) ToJson() string
Click to show internal directories.
Click to hide internal directories.