v1

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessTokenReqBody

type AccessTokenReqBody struct {
	GrantType string `json:"grant_type"`
	Code      string `json:"code"`
}

type AccessTokenReqCall

type AccessTokenReqCall struct {
	// contains filtered or unexported fields
}

func (*AccessTokenReqCall) Do

type AccessTokenResult

type AccessTokenResult struct {
	AccessToken      string `json:"access_token"`
	AvatarUrl        string `json:"avatar_url"`
	AvatarThumb      string `json:"avatar_thumb"`
	AvatarMiddle     string `json:"avatar_middle"`
	AvatarBig        string `json:"avatar_big"`
	ExpiresIn        int    `json:"expires_in"`
	Name             string `json:"name"`
	EnName           string `json:"en_name"`
	OpenID           string `json:"open_id"`
	UnionID          string `json:"union_id"`
	UserID           string `json:"user_id"`
	TenantKey        string `json:"tenant_key"`
	RefreshExpiresIn int    `json:"refresh_expires_in"`
	RefreshToken     string `json:"refresh_token"`
	TokenType        string `json:"token_type"`
}

type AuthenService

type AuthenService struct {
	// contains filtered or unexported fields
}

func (*AuthenService) AccessToken

func (authens *AuthenService) AccessToken(ctx *core.Context, body *AccessTokenReqBody, optFns ...request.OptFn) *AccessTokenReqCall

func (*AuthenService) RefreshAccessToken

func (authens *AuthenService) RefreshAccessToken(ctx *core.Context, body *RefreshAccessTokenReqBody,
	optFns ...request.OptFn) *RefreshAccessTokenReqCall

func (*AuthenService) UserInfo

func (authens *AuthenService) UserInfo(ctx *core.Context, optFns ...request.OptFn) *UserInfoReqCall

type RefreshAccessTokenReqBody

type RefreshAccessTokenReqBody struct {
	GrantType    string `json:"grant_type"`
	RefreshToken string `json:"refresh_token"`
}

type RefreshAccessTokenReqCall

type RefreshAccessTokenReqCall struct {
	// contains filtered or unexported fields
}

func (*RefreshAccessTokenReqCall) Do

type Service

type Service struct {
	Authens *AuthenService
	// contains filtered or unexported fields
}

func NewService

func NewService(config *config.Config) *Service

type UserInfoReqCall

type UserInfoReqCall struct {
	// contains filtered or unexported fields
}

func (*UserInfoReqCall) Do

func (rc *UserInfoReqCall) Do() (*UserInfoResult, error)

type UserInfoResult

type UserInfoResult struct {
	Name         string `json:"name"`
	AvatarUrl    string `json:"avatar_url"`
	AvatarThumb  string `json:"avatar_thumb"`
	AvatarMiddle string `json:"avatar_middle"`
	AvatarBig    string `json:"avatar_big"`
	Email        string `json:"email"`
	OpenID       string `json:"open_id"`
	UnionID      string `json:"union_id"`
	UserID       string `json:"user_id"`
	Mobile       string `json:"mobile"`
}

Jump to

Keyboard shortcuts

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