v1

package
v1.1.23 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Code generated by lark suite oapi sdk gen

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenAccessTokenReqBody added in v1.1.6

type AuthenAccessTokenReqBody struct {
	GrantType string `json:"grant_type,omitempty"`
	Code      string `json:"code,omitempty"`
}

type AuthenAccessTokenReqCall added in v1.1.6

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

func (*AuthenAccessTokenReqCall) Do added in v1.1.6

type AuthenRefreshAccessTokenReqBody added in v1.1.6

type AuthenRefreshAccessTokenReqBody struct {
	GrantType    string `json:"grant_type,omitempty"`
	RefreshToken string `json:"refresh_token,omitempty"`
}

type AuthenRefreshAccessTokenReqCall added in v1.1.6

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

func (*AuthenRefreshAccessTokenReqCall) Do added in v1.1.6

type AuthenService

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

func (*AuthenService) AccessToken

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

func (*AuthenService) RefreshAccessToken

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

func (*AuthenService) UserInfo

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

type AuthenUserInfoReqCall added in v1.1.6

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

func (*AuthenUserInfoReqCall) Do added in v1.1.6

func (rc *AuthenUserInfoReqCall) Do() (*UserInfo, error)

type Service

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

func NewService

func NewService(conf *config.Config) *Service

type UserAccessTokenInfo added in v1.1.6

type UserAccessTokenInfo struct {
	AccessToken      string `json:"access_token,omitempty"`
	AvatarUrl        string `json:"avatar_url,omitempty"`
	AvatarThumb      string `json:"avatar_thumb,omitempty"`
	AvatarMiddle     string `json:"avatar_middle,omitempty"`
	AvatarBig        string `json:"avatar_big,omitempty"`
	ExpiresIn        int    `json:"expires_in,omitempty"`
	Name             string `json:"name,omitempty"`
	EnName           string `json:"en_name,omitempty"`
	OpenId           string `json:"open_id,omitempty"`
	UnionId          string `json:"union_id,omitempty"`
	UserId           string `json:"user_id,omitempty"`
	TenantKey        string `json:"tenant_key,omitempty"`
	RefreshExpiresIn int    `json:"refresh_expires_in,omitempty"`
	RefreshToken     string `json:"refresh_token,omitempty"`
	TokenType        string `json:"token_type,omitempty"`
}

type UserInfo added in v1.1.6

type UserInfo struct {
	Name         string `json:"name,omitempty"`
	AvatarUrl    string `json:"avatar_url,omitempty"`
	AvatarThumb  string `json:"avatar_thumb,omitempty"`
	AvatarMiddle string `json:"avatar_middle,omitempty"`
	AvatarBig    string `json:"avatar_big,omitempty"`
	Email        string `json:"email,omitempty"`
	OpenId       string `json:"open_id,omitempty"`
	UnionId      string `json:"union_id,omitempty"`
	UserId       string `json:"user_id,omitempty"`
	Mobile       string `json:"mobile,omitempty"`
}

Jump to

Keyboard shortcuts

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