larktenant

package
v3.0.11 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: MIT Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Avatar

type Avatar struct {
	AvatarOrigin *string `json:"avatar_origin,omitempty"` // 企业头像
	Avatar72     *string `json:"avatar_72,omitempty"`     // 企业头像 72x72
	Avatar240    *string `json:"avatar_240,omitempty"`    // 企业头像 240x240
	Avatar640    *string `json:"avatar_640,omitempty"`    // 企业头像 640x640
}

type AvatarBuilder

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

func NewAvatarBuilder

func NewAvatarBuilder() *AvatarBuilder

func (*AvatarBuilder) Avatar240

func (builder *AvatarBuilder) Avatar240(avatar240 string) *AvatarBuilder

企业头像 240x240

示例值:https://foo.icon.com/xxxx

func (*AvatarBuilder) Avatar640

func (builder *AvatarBuilder) Avatar640(avatar640 string) *AvatarBuilder

企业头像 640x640

示例值:https://foo.icon.com/xxxx

func (*AvatarBuilder) Avatar72

func (builder *AvatarBuilder) Avatar72(avatar72 string) *AvatarBuilder

企业头像 72x72

示例值:https://foo.icon.com/xxxx

func (*AvatarBuilder) AvatarOrigin

func (builder *AvatarBuilder) AvatarOrigin(avatarOrigin string) *AvatarBuilder

企业头像

示例值:https://foo.icon.com/xxxx

func (*AvatarBuilder) Build

func (builder *AvatarBuilder) Build() *Avatar

type QueryTenantResp

type QueryTenantResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *QueryTenantRespData `json:"data"` // 业务数据
}

func (*QueryTenantResp) Success

func (resp *QueryTenantResp) Success() bool

type QueryTenantRespData

type QueryTenantRespData struct {
	Tenant *Tenant `json:"tenant,omitempty"` // 企业信息
}

type Tenant

type Tenant struct {
	Name      *string `json:"name,omitempty"`       // 企业名称
	DisplayId *string `json:"display_id,omitempty"` // 企业编号,平台内唯一
	TenantTag *int    `json:"tenant_tag,omitempty"` // 个人版/团队版标志
	TenantKey *string `json:"tenant_key,omitempty"` // 企业标识
	Avatar    *Avatar `json:"avatar,omitempty"`     // 企业头像
}

type TenantBuilder

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

func NewTenantBuilder

func NewTenantBuilder() *TenantBuilder

func (*TenantBuilder) Avatar

func (builder *TenantBuilder) Avatar(avatar *Avatar) *TenantBuilder

企业头像

示例值:

func (*TenantBuilder) Build

func (builder *TenantBuilder) Build() *Tenant

func (*TenantBuilder) DisplayId

func (builder *TenantBuilder) DisplayId(displayId string) *TenantBuilder

企业编号,平台内唯一

示例值:F123456789

func (*TenantBuilder) Name

func (builder *TenantBuilder) Name(name string) *TenantBuilder

企业名称

示例值:企业名称

func (*TenantBuilder) TenantKey

func (builder *TenantBuilder) TenantKey(tenantKey string) *TenantBuilder

企业标识

示例值:abcdefghi

func (*TenantBuilder) TenantTag

func (builder *TenantBuilder) TenantTag(tenantTag int) *TenantBuilder

个人版/团队版标志

示例值:0

type TenantService

type TenantService struct {
	Tenant *tenant // 企业
	// contains filtered or unexported fields
}

func NewService

func NewService(config *larkcore.Config) *TenantService

Jump to

Keyboard shortcuts

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