oauthwechat

package
v0.2.56 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2020 License: MIT Imports: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL