result

package
v0.0.0-...-70261f9 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeResult

type CodeResult struct {
	Code int `json:"code"`
}

临时票据结果

type Credentials

type Credentials struct {
	OpenId  string `json:"openId"`
	Unionid string `json:"unionid"`
}

type RefreshResult

type RefreshResult struct {
	AccessToken      string `json:"access_token"`       // 访问令牌
	TokenType        string `json:"token_type"`         // 令牌类型
	ExpiresIn        int    `json:"expires_in"`         // 令牌过期时间(秒)
	RefreshToken     string `json:"refresh_token"`      // 刷新令牌
	RefreshExpiresIn int    `json:"refresh_expires_in"` // 刷新令牌过期时间(秒)
}

type TokenResult

type TokenResult struct {
	AccessToken      string `json:"access_token"`       // 访问令牌
	TokenType        string `json:"token_type"`         // 令牌类型
	ExpiresIn        int    `json:"expires_in"`         // 令牌过期时间(秒)
	RefreshToken     string `json:"refresh_token"`      // 刷新令牌
	RefreshExpiresIn int    `json:"refresh_expires_in"` // 刷新令牌过期时间(秒)
	Scope            string `json:"scope"`              // 作用域
}

type UserResult

type UserResult struct {
	Sub          string `json:"sub"`           // 用户ID
	Name         string `json:"name"`          // 用户名
	Picture      string `json:"picture"`       // 头像URL
	OpenID       string `json:"open_id"`       // 用户在开放平台的唯一标识
	UnionID      string `json:"union_id"`      // 用户在开放平台的统一标识
	EnName       string `json:"en_name"`       // 用户英文名
	TenantKey    string `json:"tenant_key"`    // 租户Key
	AvatarURL    string `json:"avatar_url"`    // 头像URL
	AvatarThumb  string `json:"avatar_thumb"`  // 头像缩略图URL
	AvatarMiddle string `json:"avatar_middle"` // 头像中等尺寸URL
	AvatarBig    string `json:"avatar_big"`    // 头像大尺寸URL
	Email        string `json:"email"`         // 邮箱
	UserID       string `json:"user_id"`       // 用户ID
	EmployeeNo   string `json:"employee_no"`   // 员工工号
	Mobile       string `json:"mobile"`        // 手机号码
}

Jump to

Keyboard shortcuts

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