session

package
v1.8.101 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Zlib Imports: 4 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