multi_party_login

package module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: MIT Imports: 3 Imported by: 0

README

multi-party-login

聚合第三方登录

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginDriver

type LoginDriver interface {
	SetConf(*proto.Conf)
	Login(ctx context.Context, params interface{}) (*proto.LoginRsp, error)
	GetPhoneInfo(encryptData, iv, sessionKey string) (*proto.PhoneInfo, error)
}

func GetDriver

func GetDriver(platform Platform) LoginDriver

type Platform

type Platform int8
const (
	MpWechat Platform = iota + 1 // 微信小程序
	MpQQ                         // qq小程序
	MpAlipay                     // 阿里小程序
	QQ                           // qq
	Wechat                       // 微信
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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