qq

package
v0.0.0-...-ff8c6a7 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QQInfo

type QQInfo struct {
	Nickname string `json:"nickname"`     // 昵称
	Gender   string `json:"gender"`       // 性别
	Avatar   string `json:"figureurl_qq"` // 头像大图
	OpenID   string `json:"open_id"`
}

func NewQQLogin

func NewQQLogin(code string) (qqInfo QQInfo, err error)

type QQLogin

type QQLogin struct {
	// contains filtered or unexported fields
}

func (*QQLogin) GetAccessToken

func (q *QQLogin) GetAccessToken() error

GetAccessToken 获取token

func (*QQLogin) GetOpenID

func (q *QQLogin) GetOpenID() error

GetOpenID 获取openid

func (*QQLogin) GetUserInfo

func (q *QQLogin) GetUserInfo() (qqInfo QQInfo, err error)

GetUserInfo 获取用户信息

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳