authen

package
v2.0.11 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package authen code generated by lark suite oapi sdk gen

Package authen 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 AuthenAccessTokenReq

type AuthenAccessTokenReq struct {
	Body *AuthenAccessTokenReqBody `body:""`
}

type AuthenAccessTokenReqBody

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

type AuthenAccessTokenResp

type AuthenAccessTokenResp struct {
	*lark.RawResponse `json:"-"`
	lark.CodeError
	Data *UserAccessTokenInfo `json:"data"`
}

type AuthenRefreshAccessTokenReq

type AuthenRefreshAccessTokenReq struct {
	Body *AuthenRefreshAccessTokenReqBody `body:""`
}

type AuthenRefreshAccessTokenReqBody

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

type AuthenRefreshAccessTokenResp

type AuthenRefreshAccessTokenResp struct {
	*lark.RawResponse `json:"-"`
	lark.CodeError
	Data *UserAccessTokenInfo `json:"data"`
}

type AuthenService

type AuthenService struct {
	Authen *authen
}

func New

func New(app *lark.App) *AuthenService

type AuthenUserInfoResp

type AuthenUserInfoResp struct {
	*lark.RawResponse `json:"-"`
	lark.CodeError
	Data *UserInfo `json:"data"`
}

type UserAccessTokenInfo

type UserAccessTokenInfo struct {
	AccessToken      *string `json:"access_token,omitempty"`
	TokenType        *string `json:"token_type,omitempty"`
	ExpiresIn        *int    `json:"expires_in,omitempty"`
	Name             *string `json:"name,omitempty"`
	EnName           *string `json:"en_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"`
	OpenId           *string `json:"open_id,omitempty"`
	UnionId          *string `json:"union_id,omitempty"`
	Email            *string `json:"email,omitempty"`
	UserId           *string `json:"user_id,omitempty"`
	Mobile           *string `json:"mobile,omitempty"`
	TenantKey        *string `json:"tenant_key,omitempty"`
	RefreshExpiresIn *int    `json:"refresh_expires_in,omitempty"`
	RefreshToken     *string `json:"refresh_token,omitempty"`
}

type UserInfo

type UserInfo struct {
	Name         *string `json:"name,omitempty"`
	EnName       *string `json:"en_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"`
	OpenId       *string `json:"open_id,omitempty"`
	UnionId      *string `json:"union_id,omitempty"`
	Email        *string `json:"email,omitempty"`
	UserId       *string `json:"user_id,omitempty"`
	Mobile       *string `json:"mobile,omitempty"`
	TenantKey    *string `json:"tenant_key,omitempty"`
}

Jump to

Keyboard shortcuts

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