Documentation ¶
Index ¶
- Constants
- type AuthenAccessTokenReq
- type AuthenAccessTokenReqBody
- type AuthenAccessTokenReqBodyBuilder
- type AuthenAccessTokenReqBuilder
- type AuthenAccessTokenResp
- type AuthenAccessTokenRespBody
- type AuthenUserInfoResp
- type AuthenUserInfoRespBody
- type CreateFileReq
- type CreateFileReqBody
- type CreateFileReqBodyBuilder
- type CreateFileReqBuilder
- type CreateFileResp
- type CreateFileRespData
- type ExtService
- type RefreshAuthenAccessTokenReq
- type RefreshAuthenAccessTokenReqBody
- type RefreshAuthenAccessTokenReqBodyBuilder
- func (r *RefreshAuthenAccessTokenReqBodyBuilder) Build() *RefreshAuthenAccessTokenReqBody
- func (r *RefreshAuthenAccessTokenReqBodyBuilder) GrantType(grantType string) *RefreshAuthenAccessTokenReqBodyBuilder
- func (r *RefreshAuthenAccessTokenReqBodyBuilder) RefreshToken(refreshToken string) *RefreshAuthenAccessTokenReqBodyBuilder
- type RefreshAuthenAccessTokenReqBuilder
- type RefreshAuthenAccessTokenResp
- type RefreshAuthenAccessTokenRespBody
Constants ¶
View Source
const ( FileTypeDoc = "doc" FileTypeSheet = "sheet" FileTypeBitable = "bitable" )
View Source
const ( GrantTypeAuthorizationCode = "authorization_code" GrantTypeRefreshCode = "refresh_token" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenAccessTokenReq ¶
type AuthenAccessTokenReq struct { Body *AuthenAccessTokenReqBody `body:""` // contains filtered or unexported fields }
type AuthenAccessTokenReqBodyBuilder ¶
type AuthenAccessTokenReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewAuthenAccessTokenReqBodyBuilder ¶
func NewAuthenAccessTokenReqBodyBuilder() *AuthenAccessTokenReqBodyBuilder
func (*AuthenAccessTokenReqBodyBuilder) Build ¶
func (a *AuthenAccessTokenReqBodyBuilder) Build() *AuthenAccessTokenReqBody
func (*AuthenAccessTokenReqBodyBuilder) Code ¶
func (a *AuthenAccessTokenReqBodyBuilder) Code(code string) *AuthenAccessTokenReqBodyBuilder
func (*AuthenAccessTokenReqBodyBuilder) GrantType ¶
func (a *AuthenAccessTokenReqBodyBuilder) GrantType(grantType string) *AuthenAccessTokenReqBodyBuilder
type AuthenAccessTokenReqBuilder ¶
type AuthenAccessTokenReqBuilder struct {
// contains filtered or unexported fields
}
func NewAuthenAccessTokenReqBuilder ¶
func NewAuthenAccessTokenReqBuilder() *AuthenAccessTokenReqBuilder
func (*AuthenAccessTokenReqBuilder) Body ¶
func (a *AuthenAccessTokenReqBuilder) Body(body *AuthenAccessTokenReqBody) *AuthenAccessTokenReqBuilder
func (*AuthenAccessTokenReqBuilder) Build ¶
func (a *AuthenAccessTokenReqBuilder) Build() *AuthenAccessTokenReq
type AuthenAccessTokenResp ¶
type AuthenAccessTokenResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *AuthenAccessTokenRespBody `json:"data"` }
func (*AuthenAccessTokenResp) Success ¶
func (c *AuthenAccessTokenResp) Success() bool
type AuthenAccessTokenRespBody ¶
type AuthenAccessTokenRespBody struct { AccessToken string `json:"access_token,omitempty"` TokenType string `json:"token_type,omitempty"` ExpiresIn int64 `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"` EnterpriseEmail string `json:"enterprise_email,omitempty"` UserID string `json:"user_id,omitempty"` Mobile string `json:"mobile,omitempty"` TenantKey string `json:"tenant_key,omitempty"` RefreshExpiresIn int64 `json:"refresh_expires_in,omitempty"` RefreshToken string `json:"refresh_token,omitempty"` }
type AuthenUserInfoResp ¶
type AuthenUserInfoResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *AuthenUserInfoRespBody `json:"data"` }
func (*AuthenUserInfoResp) Success ¶
func (c *AuthenUserInfoResp) Success() bool
type AuthenUserInfoRespBody ¶
type AuthenUserInfoRespBody 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"` EnterpriseEmail string `json:"enterprise_email,omitempty"` UserID string `json:"user_id,omitempty"` Mobile string `json:"mobile,omitempty"` TenantKey string `json:"tenant_key,omitempty"` }
type CreateFileReq ¶
type CreateFileReq struct { Body *CreateFileReqBody `body:""` // contains filtered or unexported fields }
type CreateFileReqBody ¶
type CreateFileReqBodyBuilder ¶
type CreateFileReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewCreateFileReqBodyBuilder ¶
func NewCreateFileReqBodyBuilder() *CreateFileReqBodyBuilder
func (*CreateFileReqBodyBuilder) Build ¶
func (c *CreateFileReqBodyBuilder) Build() *CreateFileReqBody
func (*CreateFileReqBodyBuilder) Title ¶
func (c *CreateFileReqBodyBuilder) Title(title string) *CreateFileReqBodyBuilder
func (*CreateFileReqBodyBuilder) Type ¶
func (c *CreateFileReqBodyBuilder) Type(type_ string) *CreateFileReqBodyBuilder
type CreateFileReqBuilder ¶
type CreateFileReqBuilder struct {
// contains filtered or unexported fields
}
func NewCreateFileReqBuilder ¶
func NewCreateFileReqBuilder() *CreateFileReqBuilder
func (*CreateFileReqBuilder) Body ¶
func (c *CreateFileReqBuilder) Body(body *CreateFileReqBody) *CreateFileReqBuilder
func (*CreateFileReqBuilder) Build ¶
func (c *CreateFileReqBuilder) Build() *CreateFileReq
func (*CreateFileReqBuilder) FolderToken ¶
func (c *CreateFileReqBuilder) FolderToken(folderToken string) *CreateFileReqBuilder
type CreateFileResp ¶
type CreateFileResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *CreateFileRespData `json:"data"` }
func (*CreateFileResp) Success ¶
func (c *CreateFileResp) Success() bool
type CreateFileRespData ¶
type ExtService ¶
type ExtService struct { DriveExplorer *driveExplorer Authen *authen // contains filtered or unexported fields }
业务域服务定义
func NewService ¶
func NewService(config *larkcore.Config) *ExtService
type RefreshAuthenAccessTokenReq ¶
type RefreshAuthenAccessTokenReq struct { Body *RefreshAuthenAccessTokenReqBody `body:""` // contains filtered or unexported fields }
type RefreshAuthenAccessTokenReqBodyBuilder ¶
type RefreshAuthenAccessTokenReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewRefreshAuthenAccessTokenReqBodyBuilder ¶
func NewRefreshAuthenAccessTokenReqBodyBuilder() *RefreshAuthenAccessTokenReqBodyBuilder
func (*RefreshAuthenAccessTokenReqBodyBuilder) Build ¶
func (r *RefreshAuthenAccessTokenReqBodyBuilder) Build() *RefreshAuthenAccessTokenReqBody
func (*RefreshAuthenAccessTokenReqBodyBuilder) GrantType ¶
func (r *RefreshAuthenAccessTokenReqBodyBuilder) GrantType(grantType string) *RefreshAuthenAccessTokenReqBodyBuilder
func (*RefreshAuthenAccessTokenReqBodyBuilder) RefreshToken ¶
func (r *RefreshAuthenAccessTokenReqBodyBuilder) RefreshToken(refreshToken string) *RefreshAuthenAccessTokenReqBodyBuilder
type RefreshAuthenAccessTokenReqBuilder ¶
type RefreshAuthenAccessTokenReqBuilder struct {
// contains filtered or unexported fields
}
func NewRefreshAuthenAccessTokenReqBuilder ¶
func NewRefreshAuthenAccessTokenReqBuilder() *RefreshAuthenAccessTokenReqBuilder
func (*RefreshAuthenAccessTokenReqBuilder) Body ¶
func (r *RefreshAuthenAccessTokenReqBuilder) Body(body *RefreshAuthenAccessTokenReqBody) *RefreshAuthenAccessTokenReqBuilder
func (*RefreshAuthenAccessTokenReqBuilder) Build ¶
func (r *RefreshAuthenAccessTokenReqBuilder) Build() *RefreshAuthenAccessTokenReq
type RefreshAuthenAccessTokenResp ¶
type RefreshAuthenAccessTokenResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *RefreshAuthenAccessTokenRespBody `json:"data"` }
func (*RefreshAuthenAccessTokenResp) Success ¶
func (c *RefreshAuthenAccessTokenResp) Success() bool
type RefreshAuthenAccessTokenRespBody ¶
type RefreshAuthenAccessTokenRespBody struct { AccessToken string `json:"access_token,omitempty"` TokenType string `json:"token_type,omitempty"` ExpiresIn int64 `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 int64 `json:"refresh_expires_in,omitempty"` RefreshToken string `json:"refresh_token,omitempty"` }
Click to show internal directories.
Click to hide internal directories.