larktenant

package
v3.0.21 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 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 ProductI18nName added in v3.0.19

type ProductI18nName struct {
	ZhCn *string `json:"zh_cn,omitempty"` // 商业化产品的中文名
	JaJp *string `json:"ja_jp,omitempty"` // 商业化产品的日文名
	EnUs *string `json:"en_us,omitempty"` // 商业化产品的英文名
}

type ProductI18nNameBuilder added in v3.0.19

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

func NewProductI18nNameBuilder added in v3.0.19

func NewProductI18nNameBuilder() *ProductI18nNameBuilder

func (*ProductI18nNameBuilder) Build added in v3.0.19

func (builder *ProductI18nNameBuilder) Build() *ProductI18nName

func (*ProductI18nNameBuilder) EnUs added in v3.0.19

商业化产品的英文名

示例值:en_name

func (*ProductI18nNameBuilder) JaJp added in v3.0.19

商业化产品的日文名

示例值:ja_jp_name

func (*ProductI18nNameBuilder) ZhCn added in v3.0.19

商业化产品的中文名

示例值:zh_cn_name

type QueryTenantProductAssignInfoResp added in v3.0.19

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

func (*QueryTenantProductAssignInfoResp) Success added in v3.0.19

func (resp *QueryTenantProductAssignInfoResp) Success() bool

type QueryTenantProductAssignInfoRespData added in v3.0.19

type QueryTenantProductAssignInfoRespData struct {
	AssignInfoList []*TenantAssignInfo `json:"assign_info_list,omitempty"` // 租户待分配席位列表
}

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 TenantAssignInfo added in v3.0.19

type TenantAssignInfo struct {
	SubscriptionId *string          `json:"subscription_id,omitempty"`  // 席位id
	LicensePlanKey *string          `json:"license_plan_key,omitempty"` // license_plan_key
	ProductName    *string          `json:"product_name,omitempty"`     // 商业化产品名称
	I18nName       *ProductI18nName `json:"i18n_name,omitempty"`        // 国际化名称
	TotalSeats     *string          `json:"total_seats,omitempty"`      // 席位总数
	AssignedSeats  *string          `json:"assigned_seats,omitempty"`   // 已分配席位数
	StartTime      *string          `json:"start_time,omitempty"`       // 席位起始时间
	EndTime        *string          `json:"end_time,omitempty"`         // 席位结束时间
}

type TenantAssignInfoBuilder added in v3.0.19

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

func NewTenantAssignInfoBuilder added in v3.0.19

func NewTenantAssignInfoBuilder() *TenantAssignInfoBuilder

func (*TenantAssignInfoBuilder) AssignedSeats added in v3.0.19

func (builder *TenantAssignInfoBuilder) AssignedSeats(assignedSeats string) *TenantAssignInfoBuilder

已分配席位数

示例值:20

func (*TenantAssignInfoBuilder) Build added in v3.0.19

func (builder *TenantAssignInfoBuilder) Build() *TenantAssignInfo

func (*TenantAssignInfoBuilder) EndTime added in v3.0.19

func (builder *TenantAssignInfoBuilder) EndTime(endTime string) *TenantAssignInfoBuilder

席位结束时间

示例值:1674991000

func (*TenantAssignInfoBuilder) I18nName added in v3.0.19

func (builder *TenantAssignInfoBuilder) I18nName(i18nName *ProductI18nName) *TenantAssignInfoBuilder

国际化名称

示例值:

func (*TenantAssignInfoBuilder) LicensePlanKey added in v3.0.19

func (builder *TenantAssignInfoBuilder) LicensePlanKey(licensePlanKey string) *TenantAssignInfoBuilder

license_plan_key

示例值:suite_enterprise_e5

func (*TenantAssignInfoBuilder) ProductName added in v3.0.19

func (builder *TenantAssignInfoBuilder) ProductName(productName string) *TenantAssignInfoBuilder

商业化产品名称

示例值:旗舰版 E5

func (*TenantAssignInfoBuilder) StartTime added in v3.0.19

func (builder *TenantAssignInfoBuilder) StartTime(startTime string) *TenantAssignInfoBuilder

席位起始时间

示例值:1674981000

func (*TenantAssignInfoBuilder) SubscriptionId added in v3.0.19

func (builder *TenantAssignInfoBuilder) SubscriptionId(subscriptionId string) *TenantAssignInfoBuilder

席位id

示例值:7079609167680782300

func (*TenantAssignInfoBuilder) TotalSeats added in v3.0.19

func (builder *TenantAssignInfoBuilder) TotalSeats(totalSeats string) *TenantAssignInfoBuilder

席位总数

示例值:500

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                  // 企业信息
	TenantProductAssignInfo *tenantProductAssignInfo // tenant.product_assign_info
	// 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