third

package
v0.0.0-...-cc65f9c Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Third

type Third interface {
	GetAuthorizeURL(state string) string
	GetUser(code string) (*User, error)
	GetType() string
}

Third .

type User

type User struct {
	OpenID   string `json:"open_id"`  // id
	TP       string `json:"tp"`       // 类型
	Nickname string `json:"nickname"` // 昵称
	Mobile   string `json:"mobile"`   // 手机号
	Avatar   string `json:"avatar"`   // 头像
	Gender   string `json:"gender"`   // 性别
	Province string `json:"province"` // 省
	City     string `json:"city"`     // 市
	Ext      string `json:"ext"`      //扩展字段
}

User .

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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