session

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: Zlib Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Scope  string `json:"scope,omitempty"`  //用户授权的作用域,使用逗号(,)分隔
	Openid string `json:"openid,omitempty"` //每个应用有对应的openid
}

type Session

type Session struct {
	access.Token
	Info
	AppId string `json:"-"`
}

func GetToken

func GetToken(appid string, url string) (*Session, error)

Jump to

Keyboard shortcuts

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