session

package
v1.8.103 Latest Latest
Warning

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

Go to latest
Published: May 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
	IsSnapShotUser int    `json:"is_snapshotuser"`  //是否为快照页模式虚拟账号,只有当用户是快照页模式虚拟账号时返回,值为1
	Unionid        string `json:"unionid"`          //用户统一标识(针对一个微信开放平台账号下的应用,同一用户的 unionid 是唯一的),只有当scope为"snsapi_userinfo"时返回
}

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