obj

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: Apache-2.0 Imports: 2 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthToken

type AuthToken struct {
	APPID                string `json:"appid"`
	Secret               string `json:"secret"`
	OpenID               string `json:"open_id"`
	AccessToken          string `json:"access_token"`           // 网页授权接口调用凭证,注意:此access_token与基础支持的access_token不同
	AccessTokenTimeline  int64  `json:"access_token_timeline"`  // access_token 到期时间毫秒
	RefreshToken         string `json:"refresh_token"`          // 用户刷新access_token
	RefreshTokenTimeline int64  `json:"refresh_token_timeline"` // refresh_token 到期时间毫秒
	Scope                string `json:"scope"`                  // 用户授权的作用域,使用逗号(,)分隔
}

func (AuthToken) AccessTokenExpired

func (a AuthToken) AccessTokenExpired() bool

func (AuthToken) GetExpiresIn

func (a AuthToken) GetExpiresIn() int64

func (AuthToken) RefreshTokenExpired

func (a AuthToken) RefreshTokenExpired() bool

func (AuthToken) TOSimple

func (a AuthToken) TOSimple() dto.AuthTokenSimple

type CodeOpenId

type CodeOpenId struct {
	Code   string `json:"code"`
	OpenID string `json:"open_id"`
	APPID  string `json:"appid"`
	Scope  string `json:"scope"`
}

Jump to

Keyboard shortcuts

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