larkcalendar

package
v3.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 6 Imported by: 10

Documentation

Index

Constants

View Source
const (
	EventPermissionsPrivate          = "private"             // 私密
	EventPermissionsShowOnlyFreeBusy = "show_only_free_busy" // 仅展示忙闲信息
	EventPermissionsPublic           = "public"              // 他人可查看日程详情
)
View Source
const (
	EventPermissionsPatchCalendarPrivate          = "private"             // 私密
	EventPermissionsPatchCalendarShowOnlyFreeBusy = "show_only_free_busy" // 仅展示忙闲信息
	EventPermissionsPatchCalendarPublic           = "public"              // 他人可查看日程详情
)
View Source
const (
	UserIdTypeUserId  = "user_id"  // 以user_id来识别用户id
	UserIdTypeUnionId = "union_id" // 以union_id来识别用户id
	UserIdTypeOpenId  = "open_id"  // 以open_id来识别用户id
)
View Source
const (
	CalendarAccessRoleUnkonwn        = "unknown"          // 未知权限
	CalendarAccessRoleFreeBusyReader = "free_busy_reader" // 游客,只能看到忙碌/空闲信息
	CalendarAccessRoleReader         = "reader"           // 订阅者,查看所有日程详情
	CalendarAccessRoleWriter         = "writer"           // 编辑者,创建及修改日程
	CalendarAccessRoleOwner          = "owner"            // 管理员,管理日历及共享设置
)
View Source
const (
	UserIdTypeCreateCalendarAclUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeCreateCalendarAclUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeCreateCalendarAclOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeListCalendarAclUserId  = "user_id"  // 以user_id来识别用户id
	UserIdTypeListCalendarAclUnionId = "union_id" // 以union_id来识别用户id
	UserIdTypeListCalendarAclOpenId  = "open_id"  // 以open_id来识别用户id
)
View Source
const (
	EventVisibilityDefault = "default" // 默认权限,仅向他人显示是否“忙碌”
	EventVisibilityPublic  = "public"  // 公开,显示日程详情
	EventVisibilityPrivate = "private" // 私密,仅自己可见
)
View Source
const (
	EventAttendeeAbilityNone            = "none"              // 无法编辑日程、无法邀请其它参与人、无法查看参与人列表
	EventAttendeeAbilityCanSeeOthers    = "can_see_others"    // 无法编辑日程、无法邀请其它参与人、可以查看参与人列表
	EventAttendeeAbilityCanInviteOthers = "can_invite_others" // 无法编辑日程、可以邀请其它参与人、可以查看参与人列表
	EventAttendeeAbilityCanModifyEvent  = "can_modify_event"  // 可以编辑日程、可以邀请其它参与人、可以查看参与人列表
)
View Source
const (
	EventFreeBusyStatusBusy = "busy" // 忙碌
	EventFreeBusyStatusFree = "free" // 空闲
)
View Source
const (
	UserIdTypeCreateCalendarEventUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeCreateCalendarEventUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeCreateCalendarEventOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	NeedNotificationTrue  = true  //
	NeedNotificationFalse = false //

)
View Source
const (
	UserIdTypeGetCalendarEventUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeGetCalendarEventUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeGetCalendarEventOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeInstanceViewCalendarEventUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeInstanceViewCalendarEventUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeInstanceViewCalendarEventOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeListCalendarEventUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeListCalendarEventUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeListCalendarEventOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	EventVisibilityPatchCalendarEventDefault = "default" // 默认权限,仅向他人显示是否“忙碌”
	EventVisibilityPatchCalendarEventPublic  = "public"  // 公开,显示日程详情
	EventVisibilityPatchCalendarEventPrivate = "private" // 私密,仅自己可见
)
View Source
const (
	EventAttendeeAbilityPatchCalendarEventNone            = "none"              // 无法编辑日程、无法邀请其它参与人、无法查看参与人列表
	EventAttendeeAbilityPatchCalendarEventCanSeeOthers    = "can_see_others"    // 无法编辑日程、无法邀请其它参与人、可以查看参与人列表
	EventAttendeeAbilityPatchCalendarEventCanInviteOthers = "can_invite_others" // 无法编辑日程、可以邀请其它参与人、可以查看参与人列表
	EventAttendeeAbilityPatchCalendarEventCanModifyEvent  = "can_modify_event"  // 可以编辑日程、可以邀请其它参与人、可以查看参与人列表
)
View Source
const (
	EventFreeBusyStatusPatchCalendarEventBusy = "busy" // 忙碌
	EventFreeBusyStatusPatchCalendarEventFree = "free" // 空闲
)
View Source
const (
	UserIdTypePatchCalendarEventUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypePatchCalendarEventUnionId = "union_id" // 以union_id来识别用户
	UserIdTypePatchCalendarEventOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	RsvpStatusAccept    = "accept"    // 接受
	RsvpStatusDecline   = "decline"   // 拒绝
	RsvpStatusTentative = "tentative" // 待定
)
View Source
const (
	UserIdTypeSearchCalendarEventUserId  = "user_id"  // 以user_id来识别用户id
	UserIdTypeSearchCalendarEventUnionId = "union_id" // 以union_id来识别用户id
	UserIdTypeSearchCalendarEventOpenId  = "open_id"  // 以open_id来识别用户id
)
View Source
const (
	UserIdTypeBatchDeleteCalendarEventAttendeeUserId  = "user_id"  // 以user_id来识别用户id
	UserIdTypeBatchDeleteCalendarEventAttendeeUnionId = "union_id" // 以union_id来识别用户id
	UserIdTypeBatchDeleteCalendarEventAttendeeOpenId  = "open_id"  // 以open_id来识别用户id
)
View Source
const (
	UserIdTypeCreateCalendarEventAttendeeUserId  = "user_id"  // 以user_id来识别用户id
	UserIdTypeCreateCalendarEventAttendeeUnionId = "union_id" // 以union_id来识别用户id
	UserIdTypeCreateCalendarEventAttendeeOpenId  = "open_id"  // 以open_id来识别用户id
)
View Source
const (
	UserIdTypeListCalendarEventAttendeeUserId  = "user_id"  // 以user_id来识别用户id
	UserIdTypeListCalendarEventAttendeeUnionId = "union_id" // 以union_id来识别用户id
	UserIdTypeListCalendarEventAttendeeOpenId  = "open_id"  // 以open_id来识别用户id
)
View Source
const (
	UserIdTypeListCalendarEventAttendeeChatMemberUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeListCalendarEventAttendeeChatMemberUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeListCalendarEventAttendeeChatMemberOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeCreateExchangeBindingUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeCreateExchangeBindingUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeCreateExchangeBindingOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeGetExchangeBindingUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeGetExchangeBindingUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeGetExchangeBindingOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeListFreebusyUserId  = "user_id"  // 以user_id来识别用户id
	UserIdTypeListFreebusyUnionId = "union_id" // 以union_id来识别用户id
	UserIdTypeListFreebusyOpenId  = "open_id"  // 以open_id来识别用户id
)
View Source
const (
	UserIdTypeCreateTimeoffEventUserId  = "user_id"  // 以user_id来识别用户id
	UserIdTypeCreateTimeoffEventUnionId = "union_id" // 以union_id来识别用户id
	UserIdTypeCreateTimeoffEventOpenId  = "open_id"  // 以open_id来识别用户id
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AclScope

type AclScope struct {
	Type   *string `json:"type,omitempty"`    // 权限类型,当type为User时,值为open_id/user_id/union_id
	UserId *string `json:"user_id,omitempty"` // 用户ID,参见[用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction)
}

type AclScopeBuilder

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

func NewAclScopeBuilder

func NewAclScopeBuilder() *AclScopeBuilder

func (*AclScopeBuilder) Build

func (builder *AclScopeBuilder) Build() *AclScope

func (*AclScopeBuilder) Type

func (builder *AclScopeBuilder) Type(type_ string) *AclScopeBuilder

权限类型,当type为User时,值为open_id/user_id/union_id

示例值:user

func (*AclScopeBuilder) UserId

func (builder *AclScopeBuilder) UserId(userId string) *AclScopeBuilder

用户ID,参见[用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction)

示例值:ou_xxxxxx

type AclScopeEvent

type AclScopeEvent struct {
	Type   *string `json:"type,omitempty"`    // 权限类型,当type为User时,值为open_id/user_id/union_id
	UserId *UserId `json:"user_id,omitempty"` // 用户 ID
}

type AclScopeEventBuilder

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

func NewAclScopeEventBuilder

func NewAclScopeEventBuilder() *AclScopeEventBuilder

func (*AclScopeEventBuilder) Build

func (builder *AclScopeEventBuilder) Build() *AclScopeEvent

func (*AclScopeEventBuilder) Type

func (builder *AclScopeEventBuilder) Type(type_ string) *AclScopeEventBuilder

权限类型,当type为User时,值为open_id/user_id/union_id

示例值:user

func (*AclScopeEventBuilder) UserId

func (builder *AclScopeEventBuilder) UserId(userId *UserId) *AclScopeEventBuilder

用户 ID

示例值:

type AttendeeChatMember

type AttendeeChatMember struct {
	RsvpStatus  *string `json:"rsvp_status,omitempty"`  // 参与人RSVP状态
	IsOptional  *bool   `json:"is_optional,omitempty"`  // 参与人是否为「可选参加」
	DisplayName *string `json:"display_name,omitempty"` // 参与人名称
	IsOrganizer *bool   `json:"is_organizer,omitempty"` // 参与人是否为日程组织者
	IsExternal  *bool   `json:"is_external,omitempty"`  // 参与人是否为外部参与人
}

type AttendeeChatMemberBuilder

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

func NewAttendeeChatMemberBuilder

func NewAttendeeChatMemberBuilder() *AttendeeChatMemberBuilder

func (*AttendeeChatMemberBuilder) Build

func (*AttendeeChatMemberBuilder) DisplayName

func (builder *AttendeeChatMemberBuilder) DisplayName(displayName string) *AttendeeChatMemberBuilder

参与人名称

示例值:Group

func (*AttendeeChatMemberBuilder) IsExternal

func (builder *AttendeeChatMemberBuilder) IsExternal(isExternal bool) *AttendeeChatMemberBuilder

参与人是否为外部参与人

示例值:false

func (*AttendeeChatMemberBuilder) IsOptional

func (builder *AttendeeChatMemberBuilder) IsOptional(isOptional bool) *AttendeeChatMemberBuilder

参与人是否为「可选参加」

示例值:true

func (*AttendeeChatMemberBuilder) IsOrganizer

func (builder *AttendeeChatMemberBuilder) IsOrganizer(isOrganizer bool) *AttendeeChatMemberBuilder

参与人是否为日程组织者

示例值:false

func (*AttendeeChatMemberBuilder) RsvpStatus

func (builder *AttendeeChatMemberBuilder) RsvpStatus(rsvpStatus string) *AttendeeChatMemberBuilder

参与人RSVP状态

示例值:needs_action

type BatchDeleteCalendarEventAttendeePathReqBodyBuilder

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

func NewBatchDeleteCalendarEventAttendeePathReqBodyBuilder

func NewBatchDeleteCalendarEventAttendeePathReqBodyBuilder() *BatchDeleteCalendarEventAttendeePathReqBodyBuilder

func (*BatchDeleteCalendarEventAttendeePathReqBodyBuilder) AttendeeIds

要移除的参与人 ID 列表。参见[参与人ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event-attendee/introduction#4998889c)

示例值:["user_xxxxx", "chat_xxxxx", "resource_xxxxx", "third_party_xxxxx"]

func (*BatchDeleteCalendarEventAttendeePathReqBodyBuilder) Build

func (*BatchDeleteCalendarEventAttendeePathReqBodyBuilder) DeleteIds

需要删除的参与人类型实体ID,作为attendee_ids字段的补充。

示例值:

func (*BatchDeleteCalendarEventAttendeePathReqBodyBuilder) InstanceStartTimeAdmin

使用管理员身份访问时要修改的实例

示例值:1647320400

func (*BatchDeleteCalendarEventAttendeePathReqBodyBuilder) IsEnableAdmin

是否启用管理员身份(需先在管理后台设置某人为会议室管理员)

示例值:false

func (*BatchDeleteCalendarEventAttendeePathReqBodyBuilder) NeedNotification

删除日程参与人时是否要给参与人发送bot通知,默认为true

示例值:false

type BatchDeleteCalendarEventAttendeeReq

type BatchDeleteCalendarEventAttendeeReq struct {
	Body *BatchDeleteCalendarEventAttendeeReqBody `body:""`
	// contains filtered or unexported fields
}

type BatchDeleteCalendarEventAttendeeReqBody

type BatchDeleteCalendarEventAttendeeReqBody struct {
	AttendeeIds            []string                   `json:"attendee_ids,omitempty"`              // 要移除的参与人 ID 列表。参见[参与人ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event-attendee/introduction#4998889c)
	DeleteIds              []*CalendarEventAttendeeId `json:"delete_ids,omitempty"`                // 需要删除的参与人类型实体ID,作为attendee_ids字段的补充。
	NeedNotification       *bool                      `json:"need_notification,omitempty"`         // 删除日程参与人时是否要给参与人发送bot通知,默认为true
	InstanceStartTimeAdmin *string                    `json:"instance_start_time_admin,omitempty"` // 使用管理员身份访问时要修改的实例
	IsEnableAdmin          *bool                      `json:"is_enable_admin,omitempty"`           // 是否启用管理员身份(需先在管理后台设置某人为会议室管理员)
}

type BatchDeleteCalendarEventAttendeeReqBodyBuilder

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

func NewBatchDeleteCalendarEventAttendeeReqBodyBuilder

func NewBatchDeleteCalendarEventAttendeeReqBodyBuilder() *BatchDeleteCalendarEventAttendeeReqBodyBuilder

func (*BatchDeleteCalendarEventAttendeeReqBodyBuilder) AttendeeIds

要移除的参与人 ID 列表。参见[参与人ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event-attendee/introduction#4998889c)

示例值:["user_xxxxx", "chat_xxxxx", "resource_xxxxx", "third_party_xxxxx"]

func (*BatchDeleteCalendarEventAttendeeReqBodyBuilder) Build

func (*BatchDeleteCalendarEventAttendeeReqBodyBuilder) DeleteIds

需要删除的参与人类型实体ID,作为attendee_ids字段的补充。

示例值:

func (*BatchDeleteCalendarEventAttendeeReqBodyBuilder) InstanceStartTimeAdmin

func (builder *BatchDeleteCalendarEventAttendeeReqBodyBuilder) InstanceStartTimeAdmin(instanceStartTimeAdmin string) *BatchDeleteCalendarEventAttendeeReqBodyBuilder

使用管理员身份访问时要修改的实例

示例值:1647320400

func (*BatchDeleteCalendarEventAttendeeReqBodyBuilder) IsEnableAdmin

是否启用管理员身份(需先在管理后台设置某人为会议室管理员)

示例值:false

func (*BatchDeleteCalendarEventAttendeeReqBodyBuilder) NeedNotification

删除日程参与人时是否要给参与人发送bot通知,默认为true

示例值:false

type BatchDeleteCalendarEventAttendeeReqBuilder

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

func NewBatchDeleteCalendarEventAttendeeReqBuilder

func NewBatchDeleteCalendarEventAttendeeReqBuilder() *BatchDeleteCalendarEventAttendeeReqBuilder

func (*BatchDeleteCalendarEventAttendeeReqBuilder) Body

批量删除日程的参与人。

func (*BatchDeleteCalendarEventAttendeeReqBuilder) Build

func (*BatchDeleteCalendarEventAttendeeReqBuilder) CalendarId

日历ID。参见[日历ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/introduction)

示例值:feishu.cn_xxxxxxxxxx@group.calendar.feishu.cn

func (*BatchDeleteCalendarEventAttendeeReqBuilder) EventId

日程ID。参见[日程ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event/introduction)

示例值:xxxxxxxxx_0

func (*BatchDeleteCalendarEventAttendeeReqBuilder) UserIdType

此次调用中使用的用户ID的类型

示例值:

type BatchDeleteCalendarEventAttendeeResp

type BatchDeleteCalendarEventAttendeeResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*BatchDeleteCalendarEventAttendeeResp) Success

type BookMeetingRoomData added in v3.0.25

type BookMeetingRoomData struct {
	MeetingRoomId  *string     `json:"meeting_room_id,omitempty"` // 会议室ID
	Hint           *string     `json:"hint,omitempty"`            // 返回给ai的会议室描述数据
	Rooms          []*RoomMeta `json:"rooms,omitempty"`           // 日历实体列表
	RecurrenceRule *string     `json:"recurrence_rule,omitempty"` // 重复性日程规则
}

type BookMeetingRoomDataBuilder added in v3.0.25

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

func NewBookMeetingRoomDataBuilder added in v3.0.25

func NewBookMeetingRoomDataBuilder() *BookMeetingRoomDataBuilder

func (*BookMeetingRoomDataBuilder) Build added in v3.0.25

func (*BookMeetingRoomDataBuilder) Hint added in v3.0.25

返回给ai的会议室描述数据

示例值:none

func (*BookMeetingRoomDataBuilder) MeetingRoomId added in v3.0.25

func (builder *BookMeetingRoomDataBuilder) MeetingRoomId(meetingRoomId string) *BookMeetingRoomDataBuilder

会议室ID

示例值:none

func (*BookMeetingRoomDataBuilder) RecurrenceRule added in v3.0.34

func (builder *BookMeetingRoomDataBuilder) RecurrenceRule(recurrenceRule string) *BookMeetingRoomDataBuilder

重复性日程规则

示例值:none

func (*BookMeetingRoomDataBuilder) Rooms added in v3.0.25

日历实体列表

示例值:

type Calendar

type Calendar struct {
	CalendarId   *string `json:"calendar_id,omitempty"`    // 日历ID。参见[日历ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/introduction)
	Summary      *string `json:"summary,omitempty"`        // 日历标题
	Description  *string `json:"description,omitempty"`    // 日历描述
	Permissions  *string `json:"permissions,omitempty"`    // 日历公开范围
	Color        *int    `json:"color,omitempty"`          // 日历颜色,颜色RGB值的int32表示。客户端展示时会映射到色板上最接近的一种颜色。仅对当前身份生效
	Type         *string `json:"type,omitempty"`           // 日历类型
	SummaryAlias *string `json:"summary_alias,omitempty"`  // 日历备注名,修改或添加后仅对当前身份生效
	IsDeleted    *bool   `json:"is_deleted,omitempty"`     // 对于当前身份,日历是否已经被标记为删除
	IsThirdParty *bool   `json:"is_third_party,omitempty"` // 当前日历是否是第三方数据;三方日历及日程只支持读,不支持写入
	Role         *string `json:"role,omitempty"`           // 当前身份对于该日历的访问权限
}

type CalendarAcl

type CalendarAcl struct {
	AclId *string   `json:"acl_id,omitempty"` // acl资源ID。参见[ACL ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-acl/introduction)
	Role  *string   `json:"role,omitempty"`   // 对日历的访问权限
	Scope *AclScope `json:"scope,omitempty"`  // 权限范围
}

type CalendarAclBuilder

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

func NewCalendarAclBuilder

func NewCalendarAclBuilder() *CalendarAclBuilder

func (*CalendarAclBuilder) AclId

func (builder *CalendarAclBuilder) AclId(aclId string) *CalendarAclBuilder

acl资源ID。参见[ACL ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-acl/introduction)

示例值:user_xxxxxx

func (*CalendarAclBuilder) Build

func (builder *CalendarAclBuilder) Build() *CalendarAcl

func (*CalendarAclBuilder) Role

func (builder *CalendarAclBuilder) Role(role string) *CalendarAclBuilder

对日历的访问权限

示例值:writer

func (*CalendarAclBuilder) Scope

func (builder *CalendarAclBuilder) Scope(scope *AclScope) *CalendarAclBuilder

权限范围

示例值:

type CalendarAclEvent

type CalendarAclEvent struct {
	AclId      *string        `json:"acl_id,omitempty"`       // acl资源ID
	Role       *string        `json:"role,omitempty"`         // 对日历的访问权限
	Scope      *AclScopeEvent `json:"scope,omitempty"`        // 权限范围
	UserIdList []*UserId      `json:"user_id_list,omitempty"` // 需要推送事件的用户列表
}

type CalendarAclEventBuilder

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

func NewCalendarAclEventBuilder

func NewCalendarAclEventBuilder() *CalendarAclEventBuilder

func (*CalendarAclEventBuilder) AclId

acl资源ID

示例值:user_xxxxx

func (*CalendarAclEventBuilder) Build

func (builder *CalendarAclEventBuilder) Build() *CalendarAclEvent

func (*CalendarAclEventBuilder) Role

对日历的访问权限

示例值:unknown

func (*CalendarAclEventBuilder) Scope

权限范围

示例值:

func (*CalendarAclEventBuilder) UserIdList

func (builder *CalendarAclEventBuilder) UserIdList(userIdList []*UserId) *CalendarAclEventBuilder

需要推送事件的用户列表

示例值:

type CalendarAttendeeResourceCustomization

type CalendarAttendeeResourceCustomization struct {
	IndexKey     *string                `json:"index_key,omitempty"`     // 每个配置的唯一ID
	InputContent *string                `json:"input_content,omitempty"` // 当type类型为填空时,该参数需要填入
	Options      []*CustomizationOption `json:"options,omitempty"`       // 每个配置的选项
}

type CalendarAttendeeResourceCustomizationBuilder

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

func NewCalendarAttendeeResourceCustomizationBuilder

func NewCalendarAttendeeResourceCustomizationBuilder() *CalendarAttendeeResourceCustomizationBuilder

func (*CalendarAttendeeResourceCustomizationBuilder) Build

func (*CalendarAttendeeResourceCustomizationBuilder) IndexKey

每个配置的唯一ID

示例值:16281481596100

func (*CalendarAttendeeResourceCustomizationBuilder) InputContent

当type类型为填空时,该参数需要填入

示例值:xxx

func (*CalendarAttendeeResourceCustomizationBuilder) Options

每个配置的选项

示例值:

type CalendarBuilder

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

func NewCalendarBuilder

func NewCalendarBuilder() *CalendarBuilder

func (*CalendarBuilder) Build

func (builder *CalendarBuilder) Build() *Calendar

func (*CalendarBuilder) CalendarId

func (builder *CalendarBuilder) CalendarId(calendarId string) *CalendarBuilder

日历ID。参见[日历ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/introduction)

示例值:feishu.cn_xxxxxxxxxx@group.calendar.feishu.cn

func (*CalendarBuilder) Color

func (builder *CalendarBuilder) Color(color int) *CalendarBuilder

日历颜色,颜色RGB值的int32表示。客户端展示时会映射到色板上最接近的一种颜色。仅对当前身份生效

示例值:-1

func (*CalendarBuilder) Description

func (builder *CalendarBuilder) Description(description string) *CalendarBuilder

日历描述

示例值:使用开放接口创建日历

func (*CalendarBuilder) IsDeleted

func (builder *CalendarBuilder) IsDeleted(isDeleted bool) *CalendarBuilder

对于当前身份,日历是否已经被标记为删除

示例值:false

func (*CalendarBuilder) IsThirdParty

func (builder *CalendarBuilder) IsThirdParty(isThirdParty bool) *CalendarBuilder

当前日历是否是第三方数据;三方日历及日程只支持读,不支持写入

示例值:false

func (*CalendarBuilder) Permissions

func (builder *CalendarBuilder) Permissions(permissions string) *CalendarBuilder

日历公开范围

示例值:private

func (*CalendarBuilder) Role

func (builder *CalendarBuilder) Role(role string) *CalendarBuilder

当前身份对于该日历的访问权限

示例值:owner

func (*CalendarBuilder) Summary

func (builder *CalendarBuilder) Summary(summary string) *CalendarBuilder

日历标题

示例值:测试日历

func (*CalendarBuilder) SummaryAlias

func (builder *CalendarBuilder) SummaryAlias(summaryAlias string) *CalendarBuilder

日历备注名,修改或添加后仅对当前身份生效

示例值:日历备注名

func (*CalendarBuilder) Type

func (builder *CalendarBuilder) Type(type_ string) *CalendarBuilder

日历类型

示例值:shared

type CalendarEvent

type CalendarEvent struct {
	EventId             *string                  `json:"event_id,omitempty"`              // 日程ID。参见[日程ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event/introduction)
	OrganizerCalendarId *string                  `json:"organizer_calendar_id,omitempty"` // 日程组织者日历ID。参见[日历ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/introduction)
	Summary             *string                  `json:"summary,omitempty"`               // 日程标题
	Description         *string                  `json:"description,omitempty"`           // 日程描述;目前不支持编辑富文本描述,如果日程描述通过客户端编辑过,更新描述会导致富文本格式丢失
	NeedNotification    *bool                    `json:"need_notification,omitempty"`     // 更新日程是否给日程参与人发送bot通知,默认为true
	StartTime           *TimeInfo                `json:"start_time,omitempty"`            // 日程开始时间
	EndTime             *TimeInfo                `json:"end_time,omitempty"`              // 日程结束时间
	Vchat               *Vchat                   `json:"vchat,omitempty"`                 // 视频会议信息。
	Visibility          *string                  `json:"visibility,omitempty"`            // 日程公开范围,新建日程默认为Default;仅新建日程时对所有参与人生效,之后修改该属性仅对当前身份生效
	AttendeeAbility     *string                  `json:"attendee_ability,omitempty"`      // 参与人权限
	FreeBusyStatus      *string                  `json:"free_busy_status,omitempty"`      // 日程占用的忙闲状态,新建日程默认为Busy;仅新建日程时对所有参与人生效,之后修改该属性仅对当前身份生效
	Location            *EventLocation           `json:"location,omitempty"`              // 日程地点
	Color               *int                     `json:"color,omitempty"`                 // 日程颜色,颜色RGB值的int32表示。仅对当前身份生效;客户端展示时会映射到色板上最接近的一种颜色;值为0或-1时默认跟随日历颜色。
	Reminders           []*Reminder              `json:"reminders,omitempty"`             // 日程提醒列表
	Recurrence          *string                  `json:"recurrence,omitempty"`            // 重复日程的重复性规则;参考[rfc5545](https://datatracker.ietf.org/doc/html/rfc5545#section-3.3.10);;- 不支持COUNT和UNTIL同时出现;;- 预定会议室重复日程长度不得超过两年。
	Status              *string                  `json:"status,omitempty"`                // 日程状态
	IsException         *bool                    `json:"is_exception,omitempty"`          // 日程是否是一个重复日程的例外日程
	RecurringEventId    *string                  `json:"recurring_event_id,omitempty"`    // 例外日程的原重复日程的event_id
	CreateTime          *string                  `json:"create_time,omitempty"`           // 日程的创建时间(秒级时间戳)
	Schemas             []*Schema                `json:"schemas,omitempty"`               // 日程自定义信息;控制日程详情页的ui展示。
	EventOrganizer      *EventOrganizer          `json:"event_organizer,omitempty"`       // 日程组织者信息
	AppLink             *string                  `json:"app_link,omitempty"`              // 日程的app_link,跳转到具体的某个日程
	Attendees           []*CalendarEventAttendee `json:"attendees,omitempty"`             // 日程参与人信息
	HasMoreAttendee     *bool                    `json:"has_more_attendee,omitempty"`     // 是否有更多的参与人
}

type CalendarEventAttendee

type CalendarEventAttendee struct {
	Type                  *string                                  `json:"type,omitempty"`                   // 参与人类型
	AttendeeId            *string                                  `json:"attendee_id,omitempty"`            // 参与人ID。参见[参与人ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event-attendee/introduction#4998889c)
	RsvpStatus            *string                                  `json:"rsvp_status,omitempty"`            // 参与人RSVP状态
	IsOptional            *bool                                    `json:"is_optional,omitempty"`            // 参与人是否为「可选参加」,无法编辑群参与人的此字段
	IsOrganizer           *bool                                    `json:"is_organizer,omitempty"`           // 参与人是否为日程组织者
	IsExternal            *bool                                    `json:"is_external,omitempty"`            // 参与人是否为外部参与人;外部参与人不支持编辑
	DisplayName           *string                                  `json:"display_name,omitempty"`           // 参与人名称
	ChatMembers           []*AttendeeChatMember                    `json:"chat_members,omitempty"`           // 群中的群成员,当type为Chat时有效;群成员不支持编辑
	UserId                *string                                  `json:"user_id,omitempty"`                // 参与人的用户id,依赖于user_id_type返回对应的取值,当is_external为true时,此字段只会返回open_id或者union_id,参见[用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction)
	ChatId                *string                                  `json:"chat_id,omitempty"`                // chat类型参与人的群组chat_id,参见[群ID 说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/chat-id-description)
	RoomId                *string                                  `json:"room_id,omitempty"`                // resource类型参与人的会议室room_id
	ThirdPartyEmail       *string                                  `json:"third_party_email,omitempty"`      // third_party类型参与人的邮箱
	OperateId             *string                                  `json:"operate_id,omitempty"`             // 如果日程是使用应用身份创建的,在添加会议室的时候,用来指定会议室的联系人,在会议室视图展示。参见[用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction)
	ResourceCustomization []*CalendarAttendeeResourceCustomization `json:"resource_customization,omitempty"` // 会议室的个性化配置
	ApprovalReason        *string                                  `json:"approval_reason,omitempty"`        // 会议室审批原因
}

type CalendarEventAttendeeBuilder

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

func NewCalendarEventAttendeeBuilder

func NewCalendarEventAttendeeBuilder() *CalendarEventAttendeeBuilder

func (*CalendarEventAttendeeBuilder) ApprovalReason added in v3.0.25

func (builder *CalendarEventAttendeeBuilder) ApprovalReason(approvalReason string) *CalendarEventAttendeeBuilder

会议室审批原因

示例值:申请审批原因

func (*CalendarEventAttendeeBuilder) AttendeeId

func (builder *CalendarEventAttendeeBuilder) AttendeeId(attendeeId string) *CalendarEventAttendeeBuilder

参与人ID。参见[参与人ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event-attendee/introduction#4998889c)

示例值:user_xxxxxx

func (*CalendarEventAttendeeBuilder) Build

func (*CalendarEventAttendeeBuilder) ChatId

chat类型参与人的群组chat_id,参见[群ID 说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/chat-id-description)

示例值:oc_xxxxxxxxx

func (*CalendarEventAttendeeBuilder) ChatMembers

群中的群成员,当type为Chat时有效;群成员不支持编辑

示例值:

func (*CalendarEventAttendeeBuilder) DisplayName

func (builder *CalendarEventAttendeeBuilder) DisplayName(displayName string) *CalendarEventAttendeeBuilder

参与人名称

示例值:Zhang San

func (*CalendarEventAttendeeBuilder) IsExternal

func (builder *CalendarEventAttendeeBuilder) IsExternal(isExternal bool) *CalendarEventAttendeeBuilder

参与人是否为外部参与人;外部参与人不支持编辑

示例值:false

func (*CalendarEventAttendeeBuilder) IsOptional

func (builder *CalendarEventAttendeeBuilder) IsOptional(isOptional bool) *CalendarEventAttendeeBuilder

参与人是否为「可选参加」,无法编辑群参与人的此字段

示例值:true

func (*CalendarEventAttendeeBuilder) IsOrganizer

func (builder *CalendarEventAttendeeBuilder) IsOrganizer(isOrganizer bool) *CalendarEventAttendeeBuilder

参与人是否为日程组织者

示例值:true

func (*CalendarEventAttendeeBuilder) OperateId

func (builder *CalendarEventAttendeeBuilder) OperateId(operateId string) *CalendarEventAttendeeBuilder

如果日程是使用应用身份创建的,在添加会议室的时候,用来指定会议室的联系人,在会议室视图展示。参见[用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction)

示例值:ou_xxxxxxxx

func (*CalendarEventAttendeeBuilder) ResourceCustomization

func (builder *CalendarEventAttendeeBuilder) ResourceCustomization(resourceCustomization []*CalendarAttendeeResourceCustomization) *CalendarEventAttendeeBuilder

会议室的个性化配置

示例值:

func (*CalendarEventAttendeeBuilder) RoomId

resource类型参与人的会议室room_id

示例值:omm_xxxxxxxx

func (*CalendarEventAttendeeBuilder) RsvpStatus

func (builder *CalendarEventAttendeeBuilder) RsvpStatus(rsvpStatus string) *CalendarEventAttendeeBuilder

参与人RSVP状态

示例值:needs_action

func (*CalendarEventAttendeeBuilder) ThirdPartyEmail

func (builder *CalendarEventAttendeeBuilder) ThirdPartyEmail(thirdPartyEmail string) *CalendarEventAttendeeBuilder

third_party类型参与人的邮箱

示例值:wangwu@email.com

func (*CalendarEventAttendeeBuilder) Type

参与人类型

示例值:user

func (*CalendarEventAttendeeBuilder) UserId

参与人的用户id,依赖于user_id_type返回对应的取值,当is_external为true时,此字段只会返回open_id或者union_id,参见[用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction)

示例值:ou_xxxxxxxx

type CalendarEventAttendeeChatMember

type CalendarEventAttendeeChatMember struct {
	RsvpStatus  *string `json:"rsvp_status,omitempty"`  // 参与人RSVP状态
	IsOptional  *bool   `json:"is_optional,omitempty"`  // 参与人是否为「可选参加」
	DisplayName *string `json:"display_name,omitempty"` // 参与人名称
	OpenId      *string `json:"open_id,omitempty"`      // 参与人open_id,参见[用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction);;**示例值**:"ou_xxxxxxxx"
	IsOrganizer *bool   `json:"is_organizer,omitempty"` // 参与人是否为日程组织者
	IsExternal  *bool   `json:"is_external,omitempty"`  // 参与人是否为外部参与人
}

type CalendarEventAttendeeChatMemberBuilder

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

func NewCalendarEventAttendeeChatMemberBuilder

func NewCalendarEventAttendeeChatMemberBuilder() *CalendarEventAttendeeChatMemberBuilder

func (*CalendarEventAttendeeChatMemberBuilder) Build

func (*CalendarEventAttendeeChatMemberBuilder) DisplayName

参与人名称

示例值:Zhang San

func (*CalendarEventAttendeeChatMemberBuilder) IsExternal

参与人是否为外部参与人

示例值:false

func (*CalendarEventAttendeeChatMemberBuilder) IsOptional

参与人是否为「可选参加」

示例值:true

func (*CalendarEventAttendeeChatMemberBuilder) IsOrganizer

参与人是否为日程组织者

示例值:true

func (*CalendarEventAttendeeChatMemberBuilder) OpenId

参与人open_id,参见[用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction);;**示例值**:"ou_xxxxxxxx"

示例值:ou_143669c5a53647f00f6c80a0253aa68b

func (*CalendarEventAttendeeChatMemberBuilder) RsvpStatus

参与人RSVP状态

示例值:needs_action

type CalendarEventAttendeeId

type CalendarEventAttendeeId struct {
	Type            *string `json:"type,omitempty"`              // 参与人类型,仅当新建参与人时可设置类型
	AttendeeId      *string `json:"attendee_id,omitempty"`       // 参与人ID
	UserId          *string `json:"user_id,omitempty"`           // 参与人的用户id,依赖于user_id_type返回对应的取值,当is_external为true时,此字段只会返回open_id或者union_id
	ChatId          *string `json:"chat_id,omitempty"`           // chat类型参与人的群组chat_id
	RoomId          *string `json:"room_id,omitempty"`           // resource类型参与人的会议室room_id
	ThirdPartyEmail *string `json:"third_party_email,omitempty"` // third_party类型参与人的邮箱
}

type CalendarEventAttendeeIdBuilder

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

func NewCalendarEventAttendeeIdBuilder

func NewCalendarEventAttendeeIdBuilder() *CalendarEventAttendeeIdBuilder

func (*CalendarEventAttendeeIdBuilder) AttendeeId

func (builder *CalendarEventAttendeeIdBuilder) AttendeeId(attendeeId string) *CalendarEventAttendeeIdBuilder

参与人ID

示例值:

func (*CalendarEventAttendeeIdBuilder) Build

func (*CalendarEventAttendeeIdBuilder) ChatId

chat类型参与人的群组chat_id

示例值:oc_xxxxxxxxx

func (*CalendarEventAttendeeIdBuilder) RoomId

resource类型参与人的会议室room_id

示例值:omm_xxxxxxxx

func (*CalendarEventAttendeeIdBuilder) ThirdPartyEmail

func (builder *CalendarEventAttendeeIdBuilder) ThirdPartyEmail(thirdPartyEmail string) *CalendarEventAttendeeIdBuilder

third_party类型参与人的邮箱

示例值:wangwu@email.com

func (*CalendarEventAttendeeIdBuilder) Type

参与人类型,仅当新建参与人时可设置类型

示例值:user

func (*CalendarEventAttendeeIdBuilder) UserId

参与人的用户id,依赖于user_id_type返回对应的取值,当is_external为true时,此字段只会返回open_id或者union_id

示例值:ou_xxxxxxxx

type CalendarEventAttendeeResp

type CalendarEventAttendeeResp struct {
	Type                  *string                                  `json:"type,omitempty"`                   // 参与人类型,仅当新建参与人时可设置类型。
	AttendeeId            *string                                  `json:"attendee_id,omitempty"`            // 参与人ID
	RsvpStatus            *string                                  `json:"rsvp_status,omitempty"`            // 参与人RSVP状态
	IsOptional            *bool                                    `json:"is_optional,omitempty"`            // 参与人是否为「可选参加」,无法编辑群参与人的此字段
	IsOrganizer           *bool                                    `json:"is_organizer,omitempty"`           // 参与人是否为日程组织者
	IsExternal            *bool                                    `json:"is_external,omitempty"`            // 参与人是否为外部参与人;外部参与人不支持编辑
	DisplayName           *string                                  `json:"display_name,omitempty"`           // 参与人名称
	ChatMembers           []*AttendeeChatMember                    `json:"chat_members,omitempty"`           // 群中的群成员,当type为Chat时有效;群成员不支持编辑
	UserId                *string                                  `json:"user_id,omitempty"`                // 参与人的用户id,依赖于user_id_type返回对应的取值,当is_external为true时,此字段只会返回open_id或者union_id
	ChatId                *string                                  `json:"chat_id,omitempty"`                // chat类型参与人的群组chat_id
	RoomId                *string                                  `json:"room_id,omitempty"`                // resource类型参与人的会议室room_id
	ThirdPartyEmail       *string                                  `json:"third_party_email,omitempty"`      // third_party类型参与人的邮箱
	OperateId             *string                                  `json:"operate_id,omitempty"`             // bot身份操作时,为预定的会议室指定实际预定人
	ResourceCustomization []*CalendarAttendeeResourceCustomization `json:"resource_customization,omitempty"` // 会议室的个性化配置
}

type CalendarEventAttendeeRespBuilder

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

func NewCalendarEventAttendeeRespBuilder

func NewCalendarEventAttendeeRespBuilder() *CalendarEventAttendeeRespBuilder

func (*CalendarEventAttendeeRespBuilder) AttendeeId

参与人ID

示例值:

func (*CalendarEventAttendeeRespBuilder) Build

func (*CalendarEventAttendeeRespBuilder) ChatId

chat类型参与人的群组chat_id

示例值:

func (*CalendarEventAttendeeRespBuilder) ChatMembers

群中的群成员,当type为Chat时有效;群成员不支持编辑

示例值:

func (*CalendarEventAttendeeRespBuilder) DisplayName

参与人名称

示例值:

func (*CalendarEventAttendeeRespBuilder) IsExternal

参与人是否为外部参与人;外部参与人不支持编辑

示例值:

func (*CalendarEventAttendeeRespBuilder) IsOptional

参与人是否为「可选参加」,无法编辑群参与人的此字段

示例值:

func (*CalendarEventAttendeeRespBuilder) IsOrganizer

func (builder *CalendarEventAttendeeRespBuilder) IsOrganizer(isOrganizer bool) *CalendarEventAttendeeRespBuilder

参与人是否为日程组织者

示例值:

func (*CalendarEventAttendeeRespBuilder) OperateId

bot身份操作时,为预定的会议室指定实际预定人

示例值:

func (*CalendarEventAttendeeRespBuilder) ResourceCustomization

func (builder *CalendarEventAttendeeRespBuilder) ResourceCustomization(resourceCustomization []*CalendarAttendeeResourceCustomization) *CalendarEventAttendeeRespBuilder

会议室的个性化配置

示例值:

func (*CalendarEventAttendeeRespBuilder) RoomId

resource类型参与人的会议室room_id

示例值:

func (*CalendarEventAttendeeRespBuilder) RsvpStatus

参与人RSVP状态

示例值:

func (*CalendarEventAttendeeRespBuilder) ThirdPartyEmail

func (builder *CalendarEventAttendeeRespBuilder) ThirdPartyEmail(thirdPartyEmail string) *CalendarEventAttendeeRespBuilder

third_party类型参与人的邮箱

示例值:

func (*CalendarEventAttendeeRespBuilder) Type

参与人类型,仅当新建参与人时可设置类型。

示例值:

func (*CalendarEventAttendeeRespBuilder) UserId

参与人的用户id,依赖于user_id_type返回对应的取值,当is_external为true时,此字段只会返回open_id或者union_id

示例值:

type CalendarEventBuilder

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

func NewCalendarEventBuilder

func NewCalendarEventBuilder() *CalendarEventBuilder
func (builder *CalendarEventBuilder) AppLink(appLink string) *CalendarEventBuilder

日程的app_link,跳转到具体的某个日程

示例值:https://applink.larkoffice.com/client/calendar/event/detail?calendarId=7039673579105026066&key=aeac9c56-aeb1-4179-a21b-02f278f59048&originalTime=0&startTime=1700496000

func (*CalendarEventBuilder) AttendeeAbility

func (builder *CalendarEventBuilder) AttendeeAbility(attendeeAbility string) *CalendarEventBuilder

参与人权限

示例值:can_see_others

func (*CalendarEventBuilder) Attendees added in v3.1.2

func (builder *CalendarEventBuilder) Attendees(attendees []*CalendarEventAttendee) *CalendarEventBuilder

日程参与人信息

示例值:

func (*CalendarEventBuilder) Build

func (builder *CalendarEventBuilder) Build() *CalendarEvent

func (*CalendarEventBuilder) Color

func (builder *CalendarEventBuilder) Color(color int) *CalendarEventBuilder

日程颜色,颜色RGB值的int32表示。仅对当前身份生效;客户端展示时会映射到色板上最接近的一种颜色;值为0或-1时默认跟随日历颜色。

示例值:-1

func (*CalendarEventBuilder) CreateTime added in v3.0.3

func (builder *CalendarEventBuilder) CreateTime(createTime string) *CalendarEventBuilder

日程的创建时间(秒级时间戳)

示例值:1602504000

func (*CalendarEventBuilder) Description

func (builder *CalendarEventBuilder) Description(description string) *CalendarEventBuilder

日程描述;目前不支持编辑富文本描述,如果日程描述通过客户端编辑过,更新描述会导致富文本格式丢失

示例值:日程描述

func (*CalendarEventBuilder) EndTime

func (builder *CalendarEventBuilder) EndTime(endTime *TimeInfo) *CalendarEventBuilder

日程结束时间

示例值:

func (*CalendarEventBuilder) EventId

func (builder *CalendarEventBuilder) EventId(eventId string) *CalendarEventBuilder

日程ID。参见[日程ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event/introduction)

示例值:00592a0e-7edf-4678-bc9d-1b77383ef08e_0

func (*CalendarEventBuilder) EventOrganizer added in v3.0.34

func (builder *CalendarEventBuilder) EventOrganizer(eventOrganizer *EventOrganizer) *CalendarEventBuilder

日程组织者信息

示例值:

func (*CalendarEventBuilder) FreeBusyStatus

func (builder *CalendarEventBuilder) FreeBusyStatus(freeBusyStatus string) *CalendarEventBuilder

日程占用的忙闲状态,新建日程默认为Busy;仅新建日程时对所有参与人生效,之后修改该属性仅对当前身份生效

示例值:busy

func (*CalendarEventBuilder) HasMoreAttendee added in v3.1.2

func (builder *CalendarEventBuilder) HasMoreAttendee(hasMoreAttendee bool) *CalendarEventBuilder

是否有更多的参与人

示例值:

func (*CalendarEventBuilder) IsException

func (builder *CalendarEventBuilder) IsException(isException bool) *CalendarEventBuilder

日程是否是一个重复日程的例外日程

示例值:false

func (*CalendarEventBuilder) Location

func (builder *CalendarEventBuilder) Location(location *EventLocation) *CalendarEventBuilder

日程地点

示例值:

func (*CalendarEventBuilder) NeedNotification

func (builder *CalendarEventBuilder) NeedNotification(needNotification bool) *CalendarEventBuilder

更新日程是否给日程参与人发送bot通知,默认为true

示例值:false

func (*CalendarEventBuilder) OrganizerCalendarId

func (builder *CalendarEventBuilder) OrganizerCalendarId(organizerCalendarId string) *CalendarEventBuilder

日程组织者日历ID。参见[日历ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/introduction)

示例值:feishu.cn_xxxxxxxxxx@group.calendar.feishu.cn

func (*CalendarEventBuilder) Recurrence

func (builder *CalendarEventBuilder) Recurrence(recurrence string) *CalendarEventBuilder

重复日程的重复性规则;参考[rfc5545](https://datatracker.ietf.org/doc/html/rfc5545#section-3.3.10);;- 不支持COUNT和UNTIL同时出现;;- 预定会议室重复日程长度不得超过两年。

示例值:FREQ=DAILY;INTERVAL=1

func (*CalendarEventBuilder) RecurringEventId

func (builder *CalendarEventBuilder) RecurringEventId(recurringEventId string) *CalendarEventBuilder

例外日程的原重复日程的event_id

示例值:1cd45aaa-fa70-4195-80b7-c93b2e208f45

func (*CalendarEventBuilder) Reminders

func (builder *CalendarEventBuilder) Reminders(reminders []*Reminder) *CalendarEventBuilder

日程提醒列表

示例值:

func (*CalendarEventBuilder) Schemas

func (builder *CalendarEventBuilder) Schemas(schemas []*Schema) *CalendarEventBuilder

日程自定义信息;控制日程详情页的ui展示。

示例值:

func (*CalendarEventBuilder) StartTime

func (builder *CalendarEventBuilder) StartTime(startTime *TimeInfo) *CalendarEventBuilder

日程开始时间

示例值:

func (*CalendarEventBuilder) Status

func (builder *CalendarEventBuilder) Status(status string) *CalendarEventBuilder

日程状态

示例值:confirmed

func (*CalendarEventBuilder) Summary

func (builder *CalendarEventBuilder) Summary(summary string) *CalendarEventBuilder

日程标题

示例值:日程标题

func (*CalendarEventBuilder) Vchat

func (builder *CalendarEventBuilder) Vchat(vchat *Vchat) *CalendarEventBuilder

视频会议信息。

示例值:

func (*CalendarEventBuilder) Visibility

func (builder *CalendarEventBuilder) Visibility(visibility string) *CalendarEventBuilder

日程公开范围,新建日程默认为Default;仅新建日程时对所有参与人生效,之后修改该属性仅对当前身份生效

示例值:default

type CalendarEventResp

type CalendarEventResp struct {
	EventId             *string        `json:"event_id,omitempty"`              // 日程ID
	OrganizerCalendarId *string        `json:"organizer_calendar_id,omitempty"` // 日程组织者日历ID
	Summary             *string        `json:"summary,omitempty"`               // 日程标题
	Description         *string        `json:"description,omitempty"`           // 日程描述
	NeedNotification    *bool          `json:"need_notification,omitempty"`     // 是否发送通知消息
	StartTime           *TimeInfo      `json:"start_time,omitempty"`            // 日程开始时间
	EndTime             *TimeInfo      `json:"end_time,omitempty"`              // 日程结束时间
	Vchat               *Vchat         `json:"vchat,omitempty"`                 // 视频会议信息,仅当日程至少有一位attendee时生效
	Visibility          *string        `json:"visibility,omitempty"`            // 日程公开范围,新建日程默认为Default;仅新建日程时对所有参与人生效,之后修改该属性仅对当前身份生效
	AttendeeAbility     *string        `json:"attendee_ability,omitempty"`      // 参与人权限
	FreeBusyStatus      *string        `json:"free_busy_status,omitempty"`      // 日程占用的忙闲状态,新建日程默认为Busy;仅新建日程时对所有参与人生效,之后修改该属性仅对当前身份生效
	Location            *EventLocation `json:"location,omitempty"`              // 日程地点
	Color               *int           `json:"color,omitempty"`                 // 日程颜色,颜色RGB值的int32表示。仅对当前身份生效;客户端展示时会映射到色板上最接近的一种颜色;值为0或-1时默认跟随日历颜色。
	Reminders           []*Reminder    `json:"reminders,omitempty"`             // 日程提醒列表
	Recurrence          *string        `json:"recurrence,omitempty"`            // 重复日程的重复性规则
	Status              *string        `json:"status,omitempty"`                // 日程状态
	IsException         *bool          `json:"is_exception,omitempty"`          // 日程是否是一个重复日程的例外日程
	RecurringEventId    *string        `json:"recurring_event_id,omitempty"`    // 例外日程的原重复日程的event_id
	CreateTime          *string        `json:"create_time,omitempty"`           // 日程的创建时间戳
	Schemas             []*Schema      `json:"schemas,omitempty"`               // 日程自定义信息
}

type CalendarEventRespBuilder

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

func NewCalendarEventRespBuilder

func NewCalendarEventRespBuilder() *CalendarEventRespBuilder

func (*CalendarEventRespBuilder) AttendeeAbility

func (builder *CalendarEventRespBuilder) AttendeeAbility(attendeeAbility string) *CalendarEventRespBuilder

参与人权限

示例值:

func (*CalendarEventRespBuilder) Build

func (builder *CalendarEventRespBuilder) Build() *CalendarEventResp

func (*CalendarEventRespBuilder) Color

func (builder *CalendarEventRespBuilder) Color(color int) *CalendarEventRespBuilder

日程颜色,颜色RGB值的int32表示。仅对当前身份生效;客户端展示时会映射到色板上最接近的一种颜色;值为0或-1时默认跟随日历颜色。

示例值:-1

func (*CalendarEventRespBuilder) CreateTime added in v3.0.3

func (builder *CalendarEventRespBuilder) CreateTime(createTime string) *CalendarEventRespBuilder

日程的创建时间戳

示例值:1682585100

func (*CalendarEventRespBuilder) Description

func (builder *CalendarEventRespBuilder) Description(description string) *CalendarEventRespBuilder

日程描述

示例值:日程描述

func (*CalendarEventRespBuilder) EndTime

func (builder *CalendarEventRespBuilder) EndTime(endTime *TimeInfo) *CalendarEventRespBuilder

日程结束时间

示例值:

func (*CalendarEventRespBuilder) EventId

func (builder *CalendarEventRespBuilder) EventId(eventId string) *CalendarEventRespBuilder

日程ID

示例值:75d28f9b-e35c-4230-8a83-4a661497db54_0

func (*CalendarEventRespBuilder) FreeBusyStatus

func (builder *CalendarEventRespBuilder) FreeBusyStatus(freeBusyStatus string) *CalendarEventRespBuilder

日程占用的忙闲状态,新建日程默认为Busy;仅新建日程时对所有参与人生效,之后修改该属性仅对当前身份生效

示例值:

func (*CalendarEventRespBuilder) IsException

func (builder *CalendarEventRespBuilder) IsException(isException bool) *CalendarEventRespBuilder

日程是否是一个重复日程的例外日程

示例值:true

func (*CalendarEventRespBuilder) Location

func (builder *CalendarEventRespBuilder) Location(location *EventLocation) *CalendarEventRespBuilder

日程地点

示例值:

func (*CalendarEventRespBuilder) NeedNotification

func (builder *CalendarEventRespBuilder) NeedNotification(needNotification bool) *CalendarEventRespBuilder

是否发送通知消息

示例值:true

func (*CalendarEventRespBuilder) OrganizerCalendarId

func (builder *CalendarEventRespBuilder) OrganizerCalendarId(organizerCalendarId string) *CalendarEventRespBuilder

日程组织者日历ID

示例值:feishu.cn_HF9U2MbibE8PPpjro6xjqa@group.calendar.feishu.cn

func (*CalendarEventRespBuilder) Recurrence

func (builder *CalendarEventRespBuilder) Recurrence(recurrence string) *CalendarEventRespBuilder

重复日程的重复性规则

示例值:FREQ=DAILY;INTERVAL=1

func (*CalendarEventRespBuilder) RecurringEventId

func (builder *CalendarEventRespBuilder) RecurringEventId(recurringEventId string) *CalendarEventRespBuilder

例外日程的原重复日程的event_id

示例值:75d28f9b-e35c-4230-8a83-4a661497db54_0

func (*CalendarEventRespBuilder) Reminders

func (builder *CalendarEventRespBuilder) Reminders(reminders []*Reminder) *CalendarEventRespBuilder

日程提醒列表

示例值:

func (*CalendarEventRespBuilder) Schemas

func (builder *CalendarEventRespBuilder) Schemas(schemas []*Schema) *CalendarEventRespBuilder

日程自定义信息

示例值:

func (*CalendarEventRespBuilder) StartTime

func (builder *CalendarEventRespBuilder) StartTime(startTime *TimeInfo) *CalendarEventRespBuilder

日程开始时间

示例值:

func (*CalendarEventRespBuilder) Status

func (builder *CalendarEventRespBuilder) Status(status string) *CalendarEventRespBuilder

日程状态

示例值:

func (*CalendarEventRespBuilder) Summary

func (builder *CalendarEventRespBuilder) Summary(summary string) *CalendarEventRespBuilder

日程标题

示例值:日程主题

func (*CalendarEventRespBuilder) Vchat

视频会议信息,仅当日程至少有一位attendee时生效

示例值:

func (*CalendarEventRespBuilder) Visibility

func (builder *CalendarEventRespBuilder) Visibility(visibility string) *CalendarEventRespBuilder

日程公开范围,新建日程默认为Default;仅新建日程时对所有参与人生效,之后修改该属性仅对当前身份生效

示例值:

type CalendarFreebusy

type CalendarFreebusy struct {
	StartTime  *string `json:"start_time,omitempty"`  // 忙闲信息开始时间,RFC3339 date_time格式
	EndTime    *string `json:"end_time,omitempty"`    // 忙闲信息结束时间,RFC3339 date_time格式
	CalendarId *string `json:"calendar_id,omitempty"` // 日历id
}

type CalendarFreebusyBuilder

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

func NewCalendarFreebusyBuilder

func NewCalendarFreebusyBuilder() *CalendarFreebusyBuilder

func (*CalendarFreebusyBuilder) Build

func (builder *CalendarFreebusyBuilder) Build() *CalendarFreebusy

func (*CalendarFreebusyBuilder) CalendarId

func (builder *CalendarFreebusyBuilder) CalendarId(calendarId string) *CalendarFreebusyBuilder

日历id

示例值:

func (*CalendarFreebusyBuilder) EndTime

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

忙闲信息结束时间,RFC3339 date_time格式

示例值:

func (*CalendarFreebusyBuilder) StartTime

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

忙闲信息开始时间,RFC3339 date_time格式

示例值:

type CalendarFreebusyError

type CalendarFreebusyError struct {
	CalendarId *string `json:"calendar_id,omitempty"` // 日历id
	ErrorMsg   *string `json:"error_msg,omitempty"`   // 错误信息
}

type CalendarFreebusyErrorBuilder

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

func NewCalendarFreebusyErrorBuilder

func NewCalendarFreebusyErrorBuilder() *CalendarFreebusyErrorBuilder

func (*CalendarFreebusyErrorBuilder) Build

func (*CalendarFreebusyErrorBuilder) CalendarId

func (builder *CalendarFreebusyErrorBuilder) CalendarId(calendarId string) *CalendarFreebusyErrorBuilder

日历id

示例值:

func (*CalendarFreebusyErrorBuilder) ErrorMsg

错误信息

示例值:

type CalendarPrimaryBatchReq added in v3.0.34

type CalendarPrimaryBatchReq struct {
	UserIds []string `json:"user_ids,omitempty"` // 用户ID列表
}

type CalendarPrimaryBatchReqBuilder added in v3.0.34

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

func NewCalendarPrimaryBatchReqBuilder added in v3.0.34

func NewCalendarPrimaryBatchReqBuilder() *CalendarPrimaryBatchReqBuilder

func (*CalendarPrimaryBatchReqBuilder) Build added in v3.0.34

func (*CalendarPrimaryBatchReqBuilder) UserIds added in v3.0.34

用户ID列表

示例值:

type CalendarUnderstandExtra added in v3.0.34

type CalendarUnderstandExtra struct {
	AiTaskId   *string `json:"ai_task_id,omitempty"`  // ai任务唯一标识
	EventUid   *string `json:"event_uid,omitempty"`   // 日程uid
	OriginTime *string `json:"origin_time,omitempty"` // 日程origin_time
}

type CalendarUnderstandExtraBuilder added in v3.0.34

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

func NewCalendarUnderstandExtraBuilder added in v3.0.34

func NewCalendarUnderstandExtraBuilder() *CalendarUnderstandExtraBuilder

func (*CalendarUnderstandExtraBuilder) AiTaskId added in v3.0.34

ai任务唯一标识

示例值:none

func (*CalendarUnderstandExtraBuilder) Build added in v3.0.34

func (*CalendarUnderstandExtraBuilder) EventUid added in v3.0.34

日程uid

示例值:b60bbd53-a52c-45a5-940a-1987de6a000f

func (*CalendarUnderstandExtraBuilder) OriginTime added in v3.0.34

func (builder *CalendarUnderstandExtraBuilder) OriginTime(originTime string) *CalendarUnderstandExtraBuilder

日程origin_time

示例值:1695355200

type CalendarUnderstandScenarioContext added in v3.0.34

type CalendarUnderstandScenarioContext struct {
	Scenario   *string                  `json:"scenario,omitempty"`    // 会话所处的业务场景
	WorkMode   *int                     `json:"work_mode,omitempty"`   // 会话所处的业务模式
	Extra      *CalendarUnderstandExtra `json:"extra,omitempty"`       // 透传数据
	SystemInfo *SystemInfo              `json:"system_info,omitempty"` // 系统信息
}

type CalendarUnderstandScenarioContextBuilder added in v3.0.34

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

func NewCalendarUnderstandScenarioContextBuilder added in v3.0.34

func NewCalendarUnderstandScenarioContextBuilder() *CalendarUnderstandScenarioContextBuilder

func (*CalendarUnderstandScenarioContextBuilder) Build added in v3.0.34

func (*CalendarUnderstandScenarioContextBuilder) Extra added in v3.0.34

透传数据

示例值:

func (*CalendarUnderstandScenarioContextBuilder) Scenario added in v3.0.34

会话所处的业务场景

示例值:IM

func (*CalendarUnderstandScenarioContextBuilder) SystemInfo added in v3.1.2

系统信息

示例值:

func (*CalendarUnderstandScenarioContextBuilder) WorkMode added in v3.0.34

会话所处的业务模式

示例值:1

type CardCallback added in v3.0.25

type CardCallback struct {
	MessageId    *string         `json:"message_id,omitempty"`    // 卡片的消息ID
	Status       *MyaiCardStatus `json:"status,omitempty"`        //
	CallbackInfo *string         `json:"callback_info,omitempty"` // 业务定义的回调数据,json格式
}

type CardCallbackBuilder added in v3.0.25

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

func NewCardCallbackBuilder added in v3.0.25

func NewCardCallbackBuilder() *CardCallbackBuilder

func (*CardCallbackBuilder) Build added in v3.0.25

func (builder *CardCallbackBuilder) Build() *CardCallback

func (*CardCallbackBuilder) CallbackInfo added in v3.0.25

func (builder *CardCallbackBuilder) CallbackInfo(callbackInfo string) *CardCallbackBuilder

业务定义的回调数据,json格式

示例值:无

func (*CardCallbackBuilder) MessageId added in v3.0.25

func (builder *CardCallbackBuilder) MessageId(messageId string) *CardCallbackBuilder

卡片的消息ID

示例值:om_dc13264520392913993dd051dba21dcf

func (*CardCallbackBuilder) Status added in v3.0.25

func (builder *CardCallbackBuilder) Status(status *MyaiCardStatus) *CardCallbackBuilder

示例值:

type CardPresent added in v3.0.25

type CardPresent struct {
	Body          *string `json:"body,omitempty"`           // 卡片json内容
	Interactable  *bool   `json:"interactable,omitempty"`   // 是否为交互卡片
	Type          *string `json:"type,omitempty"`           // 卡片类型
	OperationType *string `json:"operation_type,omitempty"` // 操作类型
	CallbackInfo  *string `json:"callback_info,omitempty"`  // 业务定义的卡片回调信息
}

type CardPresentBuilder added in v3.0.25

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

func NewCardPresentBuilder added in v3.0.25

func NewCardPresentBuilder() *CardPresentBuilder

func (*CardPresentBuilder) Body added in v3.0.25

func (builder *CardPresentBuilder) Body(body string) *CardPresentBuilder

卡片json内容

示例值:无

func (*CardPresentBuilder) Build added in v3.0.25

func (builder *CardPresentBuilder) Build() *CardPresent

func (*CardPresentBuilder) CallbackInfo added in v3.0.25

func (builder *CardPresentBuilder) CallbackInfo(callbackInfo string) *CardPresentBuilder

业务定义的卡片回调信息

示例值:无

func (*CardPresentBuilder) Interactable added in v3.0.25

func (builder *CardPresentBuilder) Interactable(interactable bool) *CardPresentBuilder

是否为交互卡片

示例值:true

func (*CardPresentBuilder) OperationType added in v3.0.25

func (builder *CardPresentBuilder) OperationType(operationType string) *CardPresentBuilder

操作类型

示例值:UPDATE

func (*CardPresentBuilder) Type added in v3.0.25

func (builder *CardPresentBuilder) Type(type_ string) *CardPresentBuilder

卡片类型

示例值:14

type CreateCalendarAclReq

type CreateCalendarAclReq struct {
	CalendarAcl *CalendarAcl `body:""`
	// contains filtered or unexported fields
}

type CreateCalendarAclReqBuilder

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

func NewCreateCalendarAclReqBuilder

func NewCreateCalendarAclReqBuilder() *CreateCalendarAclReqBuilder

func (*CreateCalendarAclReqBuilder) Build

func (*CreateCalendarAclReqBuilder) CalendarAcl

func (builder *CreateCalendarAclReqBuilder) CalendarAcl(calendarAcl *CalendarAcl) *CreateCalendarAclReqBuilder

该接口用于以当前身份(应用 / 用户)给日历添加访问控制权限,即日历成员。;;身份由 Header Authorization 的 Token 类型决定。

func (*CreateCalendarAclReqBuilder) CalendarId

func (builder *CreateCalendarAclReqBuilder) CalendarId(calendarId string) *CreateCalendarAclReqBuilder

日历ID。参见[日历ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/introduction)

示例值:feishu.cn_xxxxxxxxxx@group.calendar.feishu.cn

func (*CreateCalendarAclReqBuilder) UserIdType

func (builder *CreateCalendarAclReqBuilder) UserIdType(userIdType string) *CreateCalendarAclReqBuilder

此次调用中使用的用户ID的类型

示例值:

type CreateCalendarAclResp

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

func (*CreateCalendarAclResp) Success

func (resp *CreateCalendarAclResp) Success() bool

type CreateCalendarAclRespData

type CreateCalendarAclRespData struct {
	AclId *string   `json:"acl_id,omitempty"` // acl资源ID
	Role  *string   `json:"role,omitempty"`   // 对日历的访问权限
	Scope *AclScope `json:"scope,omitempty"`  // 权限范围
}

type CreateCalendarEventAttendeePathReqBodyBuilder

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

func NewCreateCalendarEventAttendeePathReqBodyBuilder

func NewCreateCalendarEventAttendeePathReqBodyBuilder() *CreateCalendarEventAttendeePathReqBodyBuilder

func (*CreateCalendarEventAttendeePathReqBodyBuilder) AddOperatorToAttendee added in v3.0.20

func (builder *CreateCalendarEventAttendeePathReqBodyBuilder) AddOperatorToAttendee(addOperatorToAttendee bool) *CreateCalendarEventAttendeePathReqBodyBuilder

是否添加会议室operate_id标识的用户到参与人

示例值:false

func (*CreateCalendarEventAttendeePathReqBodyBuilder) Attendees

新增参与人列表;;- 单次请求会议室的数量限制为100。

示例值:

func (*CreateCalendarEventAttendeePathReqBodyBuilder) Build

func (*CreateCalendarEventAttendeePathReqBodyBuilder) InstanceStartTimeAdmin

func (builder *CreateCalendarEventAttendeePathReqBodyBuilder) InstanceStartTimeAdmin(instanceStartTimeAdmin string) *CreateCalendarEventAttendeePathReqBodyBuilder

使用管理员身份访问时要修改的实例(仅用于重复日程修改其中的一个实例,非重复日程无需填此字段)

示例值:1647320400

func (*CreateCalendarEventAttendeePathReqBodyBuilder) IsEnableAdmin

是否启用管理员身份(需先在管理后台设置某人为会议室管理员)

示例值:false

func (*CreateCalendarEventAttendeePathReqBodyBuilder) NeedNotification

是否给参与人发送bot通知 默认为true

示例值:false

type CreateCalendarEventAttendeeReq

type CreateCalendarEventAttendeeReq struct {
	Body *CreateCalendarEventAttendeeReqBody `body:""`
	// contains filtered or unexported fields
}

type CreateCalendarEventAttendeeReqBody

type CreateCalendarEventAttendeeReqBody struct {
	Attendees              []*CalendarEventAttendee `json:"attendees,omitempty"`                 // 新增参与人列表;;- 单次请求会议室的数量限制为100。
	NeedNotification       *bool                    `json:"need_notification,omitempty"`         // 是否给参与人发送bot通知 默认为true
	InstanceStartTimeAdmin *string                  `json:"instance_start_time_admin,omitempty"` // 使用管理员身份访问时要修改的实例(仅用于重复日程修改其中的一个实例,非重复日程无需填此字段)
	IsEnableAdmin          *bool                    `json:"is_enable_admin,omitempty"`           // 是否启用管理员身份(需先在管理后台设置某人为会议室管理员)
	AddOperatorToAttendee  *bool                    `json:"add_operator_to_attendee,omitempty"`  // 是否添加会议室operate_id标识的用户到参与人
}

type CreateCalendarEventAttendeeReqBodyBuilder

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

func NewCreateCalendarEventAttendeeReqBodyBuilder

func NewCreateCalendarEventAttendeeReqBodyBuilder() *CreateCalendarEventAttendeeReqBodyBuilder

func (*CreateCalendarEventAttendeeReqBodyBuilder) AddOperatorToAttendee added in v3.0.20

func (builder *CreateCalendarEventAttendeeReqBodyBuilder) AddOperatorToAttendee(addOperatorToAttendee bool) *CreateCalendarEventAttendeeReqBodyBuilder

是否添加会议室operate_id标识的用户到参与人

示例值:false

func (*CreateCalendarEventAttendeeReqBodyBuilder) Attendees

新增参与人列表;;- 单次请求会议室的数量限制为100。

示例值:

func (*CreateCalendarEventAttendeeReqBodyBuilder) Build

func (*CreateCalendarEventAttendeeReqBodyBuilder) InstanceStartTimeAdmin

func (builder *CreateCalendarEventAttendeeReqBodyBuilder) InstanceStartTimeAdmin(instanceStartTimeAdmin string) *CreateCalendarEventAttendeeReqBodyBuilder

使用管理员身份访问时要修改的实例(仅用于重复日程修改其中的一个实例,非重复日程无需填此字段)

示例值:1647320400

func (*CreateCalendarEventAttendeeReqBodyBuilder) IsEnableAdmin

是否启用管理员身份(需先在管理后台设置某人为会议室管理员)

示例值:false

func (*CreateCalendarEventAttendeeReqBodyBuilder) NeedNotification

是否给参与人发送bot通知 默认为true

示例值:false

type CreateCalendarEventAttendeeReqBuilder

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

func NewCreateCalendarEventAttendeeReqBuilder

func NewCreateCalendarEventAttendeeReqBuilder() *CreateCalendarEventAttendeeReqBuilder

func (*CreateCalendarEventAttendeeReqBuilder) Body

批量给日程添加参与人。

func (*CreateCalendarEventAttendeeReqBuilder) Build

func (*CreateCalendarEventAttendeeReqBuilder) CalendarId

日历ID。参见[日历ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/introduction)

示例值:feishu.cn_xxxxxxxxxx@group.calendar.feishu.cn

func (*CreateCalendarEventAttendeeReqBuilder) EventId

日程ID。参见[日程ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event/introduction)

示例值:xxxxxxxxx_0

func (*CreateCalendarEventAttendeeReqBuilder) UserIdType

此次调用中使用的用户ID的类型

示例值:

type CreateCalendarEventAttendeeResp

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

func (*CreateCalendarEventAttendeeResp) Success

func (resp *CreateCalendarEventAttendeeResp) Success() bool

type CreateCalendarEventAttendeeRespData

type CreateCalendarEventAttendeeRespData struct {
	Attendees []*CalendarEventAttendee `json:"attendees,omitempty"` // 新增参与人后的日程所有参与人列表
}

type CreateCalendarEventMeetingChatReq added in v3.0.31

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

type CreateCalendarEventMeetingChatReqBuilder added in v3.0.31

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

func NewCreateCalendarEventMeetingChatReqBuilder added in v3.0.31

func NewCreateCalendarEventMeetingChatReqBuilder() *CreateCalendarEventMeetingChatReqBuilder

func (*CreateCalendarEventMeetingChatReqBuilder) Build added in v3.0.31

func (*CreateCalendarEventMeetingChatReqBuilder) CalendarId added in v3.0.31

日历ID

示例值:feishu.cn_HF9U2MbibE8PPpjro6xjqa@group.calendar.feishu.cn

func (*CreateCalendarEventMeetingChatReqBuilder) EventId added in v3.0.31

日程ID

示例值:75d28f9b-e35c-4230-8a83-4a661497db54_0

type CreateCalendarEventMeetingChatResp added in v3.0.31

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

func (*CreateCalendarEventMeetingChatResp) Success added in v3.0.31

func (resp *CreateCalendarEventMeetingChatResp) Success() bool

type CreateCalendarEventMeetingChatRespData added in v3.0.31

type CreateCalendarEventMeetingChatRespData struct {
	MeetingChatId *string `json:"meeting_chat_id,omitempty"` // 会议群ID
	Applink       *string `json:"applink,omitempty"`         // 群分享链接
}

type CreateCalendarEventReq

type CreateCalendarEventReq struct {
	CalendarEvent *CalendarEvent `body:""`
	// contains filtered or unexported fields
}

type CreateCalendarEventReqBuilder

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

func NewCreateCalendarEventReqBuilder

func NewCreateCalendarEventReqBuilder() *CreateCalendarEventReqBuilder

func (*CreateCalendarEventReqBuilder) Build

func (*CreateCalendarEventReqBuilder) CalendarEvent

func (builder *CreateCalendarEventReqBuilder) CalendarEvent(calendarEvent *CalendarEvent) *CreateCalendarEventReqBuilder

该接口用于以当前身份(应用 / 用户)在日历上创建一个日程。;;身份由 Header Authorization 的 Token 类型决定。

func (*CreateCalendarEventReqBuilder) CalendarId

func (builder *CreateCalendarEventReqBuilder) CalendarId(calendarId string) *CreateCalendarEventReqBuilder

日历ID。参见[日历ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/introduction)

示例值:feishu.cn_xxxxxxxxxx@group.calendar.feishu.cn

func (*CreateCalendarEventReqBuilder) IdempotencyKey added in v3.0.22

func (builder *CreateCalendarEventReqBuilder) IdempotencyKey(idempotencyKey string) *CreateCalendarEventReqBuilder

幂等唯一key

示例值:25fdf41b-8c80-2ce1-e94c-de8b5e7aa7e6

func (*CreateCalendarEventReqBuilder) UserIdType added in v3.0.25

func (builder *CreateCalendarEventReqBuilder) UserIdType(userIdType string) *CreateCalendarEventReqBuilder

此次调用中使用的用户ID的类型

示例值:

type CreateCalendarEventResp

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

func (*CreateCalendarEventResp) Success

func (resp *CreateCalendarEventResp) Success() bool

type CreateCalendarEventRespData

type CreateCalendarEventRespData struct {
	Event *CalendarEvent `json:"event,omitempty"` // 新创建的日程实体
}

type CreateCalendarReq

type CreateCalendarReq struct {
	Calendar *Calendar `body:""`
	// contains filtered or unexported fields
}

type CreateCalendarReqBuilder

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

func NewCreateCalendarReqBuilder

func NewCreateCalendarReqBuilder() *CreateCalendarReqBuilder

func (*CreateCalendarReqBuilder) Build

func (builder *CreateCalendarReqBuilder) Build() *CreateCalendarReq

func (*CreateCalendarReqBuilder) Calendar

func (builder *CreateCalendarReqBuilder) Calendar(calendar *Calendar) *CreateCalendarReqBuilder

该接口用于为当前身份(应用 / 用户)创建一个共享日历。;;身份由 Header Authorization 的 Token 类型决定。

type CreateCalendarResp

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

func (*CreateCalendarResp) Success

func (resp *CreateCalendarResp) Success() bool

type CreateCalendarRespData

type CreateCalendarRespData struct {
	Calendar *Calendar `json:"calendar,omitempty"` // 新创建的日历实体
}

type CreateExchangeBindingReq

type CreateExchangeBindingReq struct {
	ExchangeBinding *ExchangeBinding `body:""`
	// contains filtered or unexported fields
}

type CreateExchangeBindingReqBuilder

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

func NewCreateExchangeBindingReqBuilder

func NewCreateExchangeBindingReqBuilder() *CreateExchangeBindingReqBuilder

func (*CreateExchangeBindingReqBuilder) Build

func (*CreateExchangeBindingReqBuilder) ExchangeBinding

func (builder *CreateExchangeBindingReqBuilder) ExchangeBinding(exchangeBinding *ExchangeBinding) *CreateExchangeBindingReqBuilder

本接口将Exchange账户绑定到飞书账户,进而支持Exchange日历的导入

func (*CreateExchangeBindingReqBuilder) UserIdType

此次调用中使用的用户ID的类型

示例值:

type CreateExchangeBindingResp

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

func (*CreateExchangeBindingResp) Success

func (resp *CreateExchangeBindingResp) Success() bool

type CreateExchangeBindingRespData

type CreateExchangeBindingRespData struct {
	AdminAccount      *string `json:"admin_account,omitempty"`       // admin账户
	ExchangeAccount   *string `json:"exchange_account,omitempty"`    // 用户绑定的Exchange账户
	UserId            *string `json:"user_id,omitempty"`             // Exchange账户绑定user唯一标识id
	Status            *string `json:"status,omitempty"`              // Exchange账户同步状态
	ExchangeBindingId *string `json:"exchange_binding_id,omitempty"` // exchange绑定唯一标识id
}

type CreateTimeoffEventReq

type CreateTimeoffEventReq struct {
	TimeoffEvent *TimeoffEvent `body:""`
	// contains filtered or unexported fields
}

type CreateTimeoffEventReqBuilder

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

func NewCreateTimeoffEventReqBuilder

func NewCreateTimeoffEventReqBuilder() *CreateTimeoffEventReqBuilder

func (*CreateTimeoffEventReqBuilder) Build

func (*CreateTimeoffEventReqBuilder) TimeoffEvent

func (builder *CreateTimeoffEventReqBuilder) TimeoffEvent(timeoffEvent *TimeoffEvent) *CreateTimeoffEventReqBuilder

为指定用户创建一个请假日程,可以是一个普通请假日程,也可以是一个全天日程。;创建请假日程后,会在相应时间内,在用户个人签名页展示请假信息。

func (*CreateTimeoffEventReqBuilder) UserIdType

func (builder *CreateTimeoffEventReqBuilder) UserIdType(userIdType string) *CreateTimeoffEventReqBuilder

此次调用中使用的用户ID的类型

示例值:

type CreateTimeoffEventResp

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

func (*CreateTimeoffEventResp) Success

func (resp *CreateTimeoffEventResp) Success() bool

type CreateTimeoffEventRespData

type CreateTimeoffEventRespData struct {
	TimeoffEventId *string `json:"timeoff_event_id,omitempty"` // 休假申请的唯一标识id
	UserId         *string `json:"user_id,omitempty"`          // 用户的user id
	Timezone       *string `json:"timezone,omitempty"`         // 休假人的时区
	StartTime      *string `json:"start_time,omitempty"`       // 休假开始时间(时间戳)/日期(2021-01-01),为日期时将生成全天日程,且与end_time对应,不符合将返回错误
	EndTime        *string `json:"end_time,omitempty"`         // 休假结束时间(时间戳)/日期(2021-01-01),为日期时将生成全天日程,与start_time对应,不符合将返回错误
	Title          *string `json:"title,omitempty"`            // 休假日程标题,可自定义例如:"请假中(全天) / 1-Day Time Off","请假中(半天) / 0.5-Day Time Off","长期休假中 / Leave of Absence","请假中"
	Description    *string `json:"description,omitempty"`      // 休假日程描述,可自定义,例如:;"若拒绝或删除此日程,飞书中相应的“请假”标签将自动消失,而请假系统中的休假申请不会被撤销。;;If the event is rejected or deleted, corresponding "On Leave" tag in Feishu will disappear, while the leave request in the time off system will not be revoked."
}

type CustomizationOption

type CustomizationOption struct {
	OptionKey     *string `json:"option_key,omitempty"`     // 每个选项的唯一ID
	OthersContent *string `json:"others_content,omitempty"` // 当type类型为其它选项时,该参数需要填入
}

type CustomizationOptionBuilder

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

func NewCustomizationOptionBuilder

func NewCustomizationOptionBuilder() *CustomizationOptionBuilder

func (*CustomizationOptionBuilder) Build

func (*CustomizationOptionBuilder) OptionKey

func (builder *CustomizationOptionBuilder) OptionKey(optionKey string) *CustomizationOptionBuilder

每个选项的唯一ID

示例值:16281481596185

func (*CustomizationOptionBuilder) OthersContent

func (builder *CustomizationOptionBuilder) OthersContent(othersContent string) *CustomizationOptionBuilder

当type类型为其它选项时,该参数需要填入

示例值:xxx

type DeleteCalendarAclReq

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

type DeleteCalendarAclReqBuilder

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

func NewDeleteCalendarAclReqBuilder

func NewDeleteCalendarAclReqBuilder() *DeleteCalendarAclReqBuilder

func (*DeleteCalendarAclReqBuilder) AclId

acl资源ID。参见[ACL ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-acl/introduction)

示例值:user_xxxxxx

func (*DeleteCalendarAclReqBuilder) Build

func (*DeleteCalendarAclReqBuilder) CalendarId

func (builder *DeleteCalendarAclReqBuilder) CalendarId(calendarId string) *DeleteCalendarAclReqBuilder

日历ID。参见[日历ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/introduction)

示例值:feishu.cn_xxxxxxxxxx@group.calendar.feishu.cn

type DeleteCalendarAclResp

type DeleteCalendarAclResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*DeleteCalendarAclResp) Success

func (resp *DeleteCalendarAclResp) Success() bool

type DeleteCalendarEventMeetingChatReq added in v3.0.31

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

type DeleteCalendarEventMeetingChatReqBuilder added in v3.0.31

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

func NewDeleteCalendarEventMeetingChatReqBuilder added in v3.0.31

func NewDeleteCalendarEventMeetingChatReqBuilder() *DeleteCalendarEventMeetingChatReqBuilder

func (*DeleteCalendarEventMeetingChatReqBuilder) Build added in v3.0.31

func (*DeleteCalendarEventMeetingChatReqBuilder) CalendarId added in v3.0.31

日历ID

示例值:feishu.cn_HF9U2MbibE8PPpjro6xjqa@group.calendar.feishu.cn

func (*DeleteCalendarEventMeetingChatReqBuilder) EventId added in v3.0.31

日程ID

示例值:75d28f9b-e35c-4230-8a83-4a661497db54_0

func (*DeleteCalendarEventMeetingChatReqBuilder) MeetingChatId added in v3.0.31

会议群ID

示例值:oc_a0553eda9014c201e6969b478895c230

type DeleteCalendarEventMeetingChatResp added in v3.0.31

type DeleteCalendarEventMeetingChatResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*DeleteCalendarEventMeetingChatResp) Success added in v3.0.31

func (resp *DeleteCalendarEventMeetingChatResp) Success() bool

type DeleteCalendarEventReq

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

type DeleteCalendarEventReqBuilder

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

func NewDeleteCalendarEventReqBuilder

func NewDeleteCalendarEventReqBuilder() *DeleteCalendarEventReqBuilder

func (*DeleteCalendarEventReqBuilder) Build

func (*DeleteCalendarEventReqBuilder) CalendarId

func (builder *DeleteCalendarEventReqBuilder) CalendarId(calendarId string) *DeleteCalendarEventReqBuilder

日历ID。参见[日历ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/introduction)

示例值:feishu.cn_xxxxxxxxxx@group.calendar.feishu.cn

func (*DeleteCalendarEventReqBuilder) EventId

日程ID。参见[日程ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event/introduction)

示例值:xxxxxxxxx_0

func (*DeleteCalendarEventReqBuilder) NeedNotification

func (builder *DeleteCalendarEventReqBuilder) NeedNotification(needNotification bool) *DeleteCalendarEventReqBuilder

删除日程是否给日程参与人发送bot通知,默认为true

示例值:false

type DeleteCalendarEventResp

type DeleteCalendarEventResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*DeleteCalendarEventResp) Success

func (resp *DeleteCalendarEventResp) Success() bool

type DeleteCalendarReq

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

type DeleteCalendarReqBuilder

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

func NewDeleteCalendarReqBuilder

func NewDeleteCalendarReqBuilder() *DeleteCalendarReqBuilder

func (*DeleteCalendarReqBuilder) Build

func (builder *DeleteCalendarReqBuilder) Build() *DeleteCalendarReq

func (*DeleteCalendarReqBuilder) CalendarId

func (builder *DeleteCalendarReqBuilder) CalendarId(calendarId string) *DeleteCalendarReqBuilder

日历ID。参见[日历ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/introduction)

示例值:feishu.cn_xxxxxxxxxx@group.calendar.feishu.cn

type DeleteCalendarResp

type DeleteCalendarResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*DeleteCalendarResp) Success

func (resp *DeleteCalendarResp) Success() bool

type DeleteExchangeBindingReq

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

type DeleteExchangeBindingReqBuilder

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

func NewDeleteExchangeBindingReqBuilder

func NewDeleteExchangeBindingReqBuilder() *DeleteExchangeBindingReqBuilder

func (*DeleteExchangeBindingReqBuilder) Build

func (*DeleteExchangeBindingReqBuilder) ExchangeBindingId

func (builder *DeleteExchangeBindingReqBuilder) ExchangeBindingId(exchangeBindingId string) *DeleteExchangeBindingReqBuilder

exchange绑定唯一标识id。参见[exchange绑定ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/exchange_binding/introduction#12533d5e)

示例值:ZW1haWxfYWRtaW5fZXhhbXBsZUBvdXRsb29rLmNvbSBlbWFpbF9hY2NvdW50X2V4YW1wbGVAb3V0bG9vay5jb20=

type DeleteExchangeBindingResp

type DeleteExchangeBindingResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*DeleteExchangeBindingResp) Success

func (resp *DeleteExchangeBindingResp) Success() bool

type DeleteTimeoffEventReq

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

type DeleteTimeoffEventReqBuilder

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

func NewDeleteTimeoffEventReqBuilder

func NewDeleteTimeoffEventReqBuilder() *DeleteTimeoffEventReqBuilder

func (*DeleteTimeoffEventReqBuilder) Build

func (*DeleteTimeoffEventReqBuilder) TimeoffEventId

func (builder *DeleteTimeoffEventReqBuilder) TimeoffEventId(timeoffEventId string) *DeleteTimeoffEventReqBuilder

休假申请的唯一标识id。参见[请假日程ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/timeoff_event/introduction#b6611a02)

示例值:timeoff:XXXXXX-XXXX-0917-1623-aa493d591a39

type DeleteTimeoffEventResp

type DeleteTimeoffEventResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*DeleteTimeoffEventResp) Success

func (resp *DeleteTimeoffEventResp) Success() bool

type DepartmentId added in v3.0.29

type DepartmentId struct {
	DepartmentId     *string `json:"department_id,omitempty"`      //
	OpenDepartmentId *string `json:"open_department_id,omitempty"` //
}

type DepartmentIdBuilder added in v3.0.29

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

func NewDepartmentIdBuilder added in v3.0.29

func NewDepartmentIdBuilder() *DepartmentIdBuilder

func (*DepartmentIdBuilder) Build added in v3.0.29

func (builder *DepartmentIdBuilder) Build() *DepartmentId

func (*DepartmentIdBuilder) DepartmentId added in v3.0.29

func (builder *DepartmentIdBuilder) DepartmentId(departmentId string) *DepartmentIdBuilder

示例值:

func (*DepartmentIdBuilder) OpenDepartmentId added in v3.0.29

func (builder *DepartmentIdBuilder) OpenDepartmentId(openDepartmentId string) *DepartmentIdBuilder

示例值:

type EventBriefInfoAi added in v3.1.2

type EventBriefInfoAi struct {
	EventId   *string         `json:"event_id,omitempty"`   // 日程ID
	Summary   *string         `json:"summary,omitempty"`    // 日程名称
	StartTime *string         `json:"start_time,omitempty"` // 日程开始时间
	EndTime   *string         `json:"end_time,omitempty"`   // 日程结束时间
	AppLink   *string         `json:"app_link,omitempty"`   // 日程链接
	Organizer *EventOrganizer `json:"organizer,omitempty"`  // 日程组织者
}

type EventBriefInfoAiBuilder added in v3.1.2

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

func NewEventBriefInfoAiBuilder added in v3.1.2

func NewEventBriefInfoAiBuilder() *EventBriefInfoAiBuilder

func (*EventBriefInfoAiBuilder) Build added in v3.1.2

func (builder *EventBriefInfoAiBuilder) Build() *EventBriefInfoAi

func (*EventBriefInfoAiBuilder) EndTime added in v3.1.2

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

日程结束时间

示例值:2022-10-01 11:00:00

func (*EventBriefInfoAiBuilder) EventId added in v3.1.2

func (builder *EventBriefInfoAiBuilder) EventId(eventId string) *EventBriefInfoAiBuilder

日程ID

示例值:00592a0e-7edf-4678-bc9d-1b77383ef08e_0

func (*EventBriefInfoAiBuilder) Organizer added in v3.1.2

func (builder *EventBriefInfoAiBuilder) Organizer(organizer *EventOrganizer) *EventBriefInfoAiBuilder

日程组织者

示例值:

func (*EventBriefInfoAiBuilder) StartTime added in v3.1.2

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

日程开始时间

示例值:2022-10-01 10:00:00

func (*EventBriefInfoAiBuilder) Summary added in v3.1.2

func (builder *EventBriefInfoAiBuilder) Summary(summary string) *EventBriefInfoAiBuilder

日程名称

示例值:会议

type EventCard added in v3.0.25

type EventCard struct {
	Summary                      *string                            `json:"summary,omitempty"`                         // 日程主题
	StartTime                    *string                            `json:"start_time,omitempty"`                      // 日程开始时间,日期+时间格式
	EndTime                      *string                            `json:"end_time,omitempty"`                        // 日程结束时间,日期+时间格式
	StartTimezone                *string                            `json:"start_timezone,omitempty"`                  // 日程开始时间时区
	ParticipantIds               *string                            `json:"participant_ids,omitempty"`                 // 日程参与人open ID
	RecurrenceRule               *string                            `json:"recurrence_rule,omitempty"`                 // 日程的重复性规则
	MeetingRoomIds               *string                            `json:"meeting_room_ids,omitempty"`                // 需要预定的会议室ID列表
	Duration                     *string                            `json:"duration,omitempty"`                        // 需要预定的日程长度
	NeedMeetingNotes             *string                            `json:"need_meeting_notes,omitempty"`              // 是否需要生成会议纪要
	ScenarioContextSchemaVersion *string                            `json:"scenario_context_schema_version,omitempty"` // 上下文信息 schema 版本
	ScenarioContext              *CalendarUnderstandScenarioContext `json:"scenario_context,omitempty"`                // 上下文信息
	EventId                      *string                            `json:"event_id,omitempty"`                        // 日程的uid_originTime
}

type EventCardBuilder added in v3.0.25

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

func NewEventCardBuilder added in v3.0.25

func NewEventCardBuilder() *EventCardBuilder

func (*EventCardBuilder) Build added in v3.0.25

func (builder *EventCardBuilder) Build() *EventCard

func (*EventCardBuilder) Duration added in v3.0.30

func (builder *EventCardBuilder) Duration(duration string) *EventCardBuilder

需要预定的日程长度

示例值:1小时30分钟

func (*EventCardBuilder) EndTime added in v3.0.25

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

日程结束时间,日期+时间格式

示例值:2023-01-01T01:00

func (*EventCardBuilder) EventId added in v3.1.2

func (builder *EventCardBuilder) EventId(eventId string) *EventCardBuilder

日程的uid_originTime

示例值:11dd1004-7cfb-4ad2-89a0-aa3c82f34dda_0

func (*EventCardBuilder) MeetingRoomIds added in v3.0.25

func (builder *EventCardBuilder) MeetingRoomIds(meetingRoomIds string) *EventCardBuilder

需要预定的会议室ID列表

示例值:omm_xxx;omm_yyy

func (*EventCardBuilder) NeedMeetingNotes added in v3.0.34

func (builder *EventCardBuilder) NeedMeetingNotes(needMeetingNotes string) *EventCardBuilder

是否需要生成会议纪要

示例值:true

func (*EventCardBuilder) ParticipantIds added in v3.0.25

func (builder *EventCardBuilder) ParticipantIds(participantIds string) *EventCardBuilder

日程参与人open ID

示例值:ou_xxx;ou_yyy

func (*EventCardBuilder) RecurrenceRule added in v3.0.25

func (builder *EventCardBuilder) RecurrenceRule(recurrenceRule string) *EventCardBuilder

日程的重复性规则

示例值:FREQ=DAILY;INTERVAL=1

func (*EventCardBuilder) ScenarioContext added in v3.0.34

func (builder *EventCardBuilder) ScenarioContext(scenarioContext *CalendarUnderstandScenarioContext) *EventCardBuilder

上下文信息

示例值:

func (*EventCardBuilder) ScenarioContextSchemaVersion added in v3.0.34

func (builder *EventCardBuilder) ScenarioContextSchemaVersion(scenarioContextSchemaVersion string) *EventCardBuilder

上下文信息 schema 版本

示例值:v1

func (*EventCardBuilder) StartTime added in v3.0.25

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

日程开始时间,日期+时间格式

示例值:2023-01-01T00:00

func (*EventCardBuilder) StartTimezone added in v3.0.25

func (builder *EventCardBuilder) StartTimezone(startTimezone string) *EventCardBuilder

日程开始时间时区

示例值:Asia/Shanghai

func (*EventCardBuilder) Summary added in v3.0.25

func (builder *EventCardBuilder) Summary(summary string) *EventCardBuilder

日程主题

示例值:日程主题

type EventLocation

type EventLocation struct {
	Name      *string  `json:"name,omitempty"`      // 地点名称
	Address   *string  `json:"address,omitempty"`   // 地点地址
	Latitude  *float64 `json:"latitude,omitempty"`  // 地点坐标纬度信息,对于国内的地点,采用GCJ-02标准,海外地点采用WGS84标准
	Longitude *float64 `json:"longitude,omitempty"` // 地点坐标经度信息,对于国内的地点,采用GCJ-02标准,海外地点采用WGS84标准
}

type EventLocationBuilder

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

func NewEventLocationBuilder

func NewEventLocationBuilder() *EventLocationBuilder

func (*EventLocationBuilder) Address

func (builder *EventLocationBuilder) Address(address string) *EventLocationBuilder

地点地址

示例值:地点地址

func (*EventLocationBuilder) Build

func (builder *EventLocationBuilder) Build() *EventLocation

func (*EventLocationBuilder) Latitude

func (builder *EventLocationBuilder) Latitude(latitude float64) *EventLocationBuilder

地点坐标纬度信息,对于国内的地点,采用GCJ-02标准,海外地点采用WGS84标准

示例值:1.100000023841858

func (*EventLocationBuilder) Longitude

func (builder *EventLocationBuilder) Longitude(longitude float64) *EventLocationBuilder

地点坐标经度信息,对于国内的地点,采用GCJ-02标准,海外地点采用WGS84标准

示例值:2.200000047683716

func (*EventLocationBuilder) Name

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

地点名称

示例值:地点名称

type EventOrganizer added in v3.0.34

type EventOrganizer struct {
	UserId      *string `json:"user_id,omitempty"`      // 日程组织者user ID
	DisplayName *string `json:"display_name,omitempty"` // 日程组织者姓名
}

type EventOrganizerBuilder added in v3.0.34

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

func NewEventOrganizerBuilder added in v3.0.34

func NewEventOrganizerBuilder() *EventOrganizerBuilder

func (*EventOrganizerBuilder) Build added in v3.0.34

func (builder *EventOrganizerBuilder) Build() *EventOrganizer

func (*EventOrganizerBuilder) DisplayName added in v3.0.34

func (builder *EventOrganizerBuilder) DisplayName(displayName string) *EventOrganizerBuilder

日程组织者姓名

示例值:孙二二

func (*EventOrganizerBuilder) UserId added in v3.0.34

func (builder *EventOrganizerBuilder) UserId(userId string) *EventOrganizerBuilder

日程组织者user ID

示例值:ou_xxxxxx

type EventSearchFilter

type EventSearchFilter struct {
	StartTime *TimeInfo `json:"start_time,omitempty"` // 搜索过滤项,日程搜索区间的开始时间,被搜索日程的事件必须与搜索区间有交集
	EndTime   *TimeInfo `json:"end_time,omitempty"`   // 搜索过滤项,日程搜索区间的结束时间,被搜索日程的事件必须与搜索区间有交集
	UserIds   []string  `json:"user_ids,omitempty"`   // 搜索过滤项,参与人的用户ID列表,被搜索日程中必须包含至少一个其中的参与人。参见[用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction)
	RoomIds   []string  `json:"room_ids,omitempty"`   // 搜索过滤项,会议室ID列表,被搜索日程中必须包含至少一个其中的会议室
	ChatIds   []string  `json:"chat_ids,omitempty"`   // 搜索过滤项,群ID列表,被搜索日程的参与人中必须包含至少一个其中的群。参见[群ID 说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/chat-id-description)
}

type EventSearchFilterBuilder

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

func NewEventSearchFilterBuilder

func NewEventSearchFilterBuilder() *EventSearchFilterBuilder

func (*EventSearchFilterBuilder) Build

func (builder *EventSearchFilterBuilder) Build() *EventSearchFilter

func (*EventSearchFilterBuilder) ChatIds

func (builder *EventSearchFilterBuilder) ChatIds(chatIds []string) *EventSearchFilterBuilder

搜索过滤项,群ID列表,被搜索日程的参与人中必须包含至少一个其中的群。参见[群ID 说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/chat-id-description)

示例值:xxxxx

func (*EventSearchFilterBuilder) EndTime

func (builder *EventSearchFilterBuilder) EndTime(endTime *TimeInfo) *EventSearchFilterBuilder

搜索过滤项,日程搜索区间的结束时间,被搜索日程的事件必须与搜索区间有交集

示例值:

func (*EventSearchFilterBuilder) RoomIds

func (builder *EventSearchFilterBuilder) RoomIds(roomIds []string) *EventSearchFilterBuilder

搜索过滤项,会议室ID列表,被搜索日程中必须包含至少一个其中的会议室

示例值:xxxxx

func (*EventSearchFilterBuilder) StartTime

func (builder *EventSearchFilterBuilder) StartTime(startTime *TimeInfo) *EventSearchFilterBuilder

搜索过滤项,日程搜索区间的开始时间,被搜索日程的事件必须与搜索区间有交集

示例值:

func (*EventSearchFilterBuilder) UserIds

func (builder *EventSearchFilterBuilder) UserIds(userIds []string) *EventSearchFilterBuilder

搜索过滤项,参与人的用户ID列表,被搜索日程中必须包含至少一个其中的参与人。参见[用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction)

示例值:xxxxx

type EventTime

type EventTime struct {
	TimeStamp *string `json:"time_stamp,omitempty"` //
}

type EventTimeBuilder

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

func NewEventTimeBuilder

func NewEventTimeBuilder() *EventTimeBuilder

func (*EventTimeBuilder) Build

func (builder *EventTimeBuilder) Build() *EventTime

func (*EventTimeBuilder) TimeStamp

func (builder *EventTimeBuilder) TimeStamp(timeStamp string) *EventTimeBuilder

示例值:

type ExchangeBinding

type ExchangeBinding struct {
	AdminAccount      *string `json:"admin_account,omitempty"`       // admin账户
	ExchangeAccount   *string `json:"exchange_account,omitempty"`    // 用户绑定的exchange账户
	UserId            *string `json:"user_id,omitempty"`             // exchange账户绑定user唯一标识id,参见[用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction)
	Status            *string `json:"status,omitempty"`              // exchange账户同步状态
	ExchangeBindingId *string `json:"exchange_binding_id,omitempty"` // exchange绑定唯一标识id。参见[exchange绑定ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/exchange_binding/introduction#12533d5e)
}

type ExchangeBindingBuilder

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

func NewExchangeBindingBuilder

func NewExchangeBindingBuilder() *ExchangeBindingBuilder

func (*ExchangeBindingBuilder) AdminAccount

func (builder *ExchangeBindingBuilder) AdminAccount(adminAccount string) *ExchangeBindingBuilder

admin账户

示例值:email_admin_example@outlook.com

func (*ExchangeBindingBuilder) Build

func (builder *ExchangeBindingBuilder) Build() *ExchangeBinding

func (*ExchangeBindingBuilder) ExchangeAccount

func (builder *ExchangeBindingBuilder) ExchangeAccount(exchangeAccount string) *ExchangeBindingBuilder

用户绑定的exchange账户

示例值:email_account_example@outlook.com

func (*ExchangeBindingBuilder) ExchangeBindingId

func (builder *ExchangeBindingBuilder) ExchangeBindingId(exchangeBindingId string) *ExchangeBindingBuilder

exchange绑定唯一标识id。参见[exchange绑定ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/exchange_binding/introduction#12533d5e)

示例值:ZW1haWxfYWRtaW5fZXhhbXBsZUBvdXRsb29rLmNvbSBlbWFpbF9hY2NvdW50X2V4YW1wbGVAb3V0bG9vay5jb20=

func (*ExchangeBindingBuilder) Status

func (builder *ExchangeBindingBuilder) Status(status string) *ExchangeBindingBuilder

exchange账户同步状态

示例值:doing

func (*ExchangeBindingBuilder) UserId

func (builder *ExchangeBindingBuilder) UserId(userId string) *ExchangeBindingBuilder

exchange账户绑定user唯一标识id,参见[用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction)

示例值:ou_xxxxxxxxxxxxxxxxxx

type FreeTime added in v3.0.25

type FreeTime struct {
	FreeTimeStart *string `json:"free_time_start,omitempty"` // 空闲开始时间
	FreeTimeEnd   *string `json:"free_time_end,omitempty"`   // 空闲结束时间
	FreeTimeList  *string `json:"free_time_list,omitempty"`  // 空闲时间列表
}

type FreeTimeAi added in v3.1.0

type FreeTimeAi struct {
	FreeTimeList *string `json:"free_time_list,omitempty"` // 空闲时间列表
}

type FreeTimeAiBuilder added in v3.1.0

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

func NewFreeTimeAiBuilder added in v3.1.0

func NewFreeTimeAiBuilder() *FreeTimeAiBuilder

func (*FreeTimeAiBuilder) Build added in v3.1.0

func (builder *FreeTimeAiBuilder) Build() *FreeTimeAi

func (*FreeTimeAiBuilder) FreeTimeList added in v3.1.0

func (builder *FreeTimeAiBuilder) FreeTimeList(freeTimeList string) *FreeTimeAiBuilder

空闲时间列表

示例值:2023-12-05T15:00:00--2023-12-05T15:30:00;2023-12-05T15:30:00--2023-12-05T16:00:00;

type FreeTimeBuilder added in v3.0.25

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

func NewFreeTimeBuilder added in v3.0.25

func NewFreeTimeBuilder() *FreeTimeBuilder

func (*FreeTimeBuilder) Build added in v3.0.25

func (builder *FreeTimeBuilder) Build() *FreeTime

func (*FreeTimeBuilder) FreeTimeEnd added in v3.0.25

func (builder *FreeTimeBuilder) FreeTimeEnd(freeTimeEnd string) *FreeTimeBuilder

空闲结束时间

示例值:none

func (*FreeTimeBuilder) FreeTimeList added in v3.0.30

func (builder *FreeTimeBuilder) FreeTimeList(freeTimeList string) *FreeTimeBuilder

空闲时间列表

示例值:none

func (*FreeTimeBuilder) FreeTimeStart added in v3.0.25

func (builder *FreeTimeBuilder) FreeTimeStart(freeTimeStart string) *FreeTimeBuilder

空闲开始时间

示例值:none

type FreeTimeSlot added in v3.0.34

type FreeTimeSlot struct {
	StartTime *string `json:"start_time,omitempty"` // 空闲时间段的开始时间
	EndTime   *string `json:"end_time,omitempty"`   // 空闲时间段的结束时间
	Length    *int    `json:"length,omitempty"`     // 空闲时间段长度,单位 s
}

type FreeTimeSlotBuilder added in v3.0.34

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

func NewFreeTimeSlotBuilder added in v3.0.34

func NewFreeTimeSlotBuilder() *FreeTimeSlotBuilder

func (*FreeTimeSlotBuilder) Build added in v3.0.34

func (builder *FreeTimeSlotBuilder) Build() *FreeTimeSlot

func (*FreeTimeSlotBuilder) EndTime added in v3.0.34

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

空闲时间段的结束时间

示例值:2023-09-01 16:00:00

func (*FreeTimeSlotBuilder) Length added in v3.0.34

func (builder *FreeTimeSlotBuilder) Length(length int) *FreeTimeSlotBuilder

空闲时间段长度,单位 s

示例值:3600

func (*FreeTimeSlotBuilder) StartTime added in v3.0.34

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

空闲时间段的开始时间

示例值:2023-09-01 15:00:00

type Freebusy

type Freebusy struct {
	StartTime *string `json:"start_time,omitempty"` // 忙闲信息开始时间,RFC3339 date_time 格式
	EndTime   *string `json:"end_time,omitempty"`   // 忙闲信息结束时间,RFC3339 date_time 格式
}

type FreebusyBuilder

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

func NewFreebusyBuilder

func NewFreebusyBuilder() *FreebusyBuilder

func (*FreebusyBuilder) Build

func (builder *FreebusyBuilder) Build() *Freebusy

func (*FreebusyBuilder) EndTime

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

忙闲信息结束时间,RFC3339 date_time 格式

示例值:2020-10-28T22:45:00+08:00

func (*FreebusyBuilder) StartTime

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

忙闲信息开始时间,RFC3339 date_time 格式

示例值:2020-10-28T22:30:00+08:00

type GenerateCaldavConfSettingPathReqBodyBuilder

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

func NewGenerateCaldavConfSettingPathReqBodyBuilder

func NewGenerateCaldavConfSettingPathReqBodyBuilder() *GenerateCaldavConfSettingPathReqBodyBuilder

func (*GenerateCaldavConfSettingPathReqBodyBuilder) Build

func (*GenerateCaldavConfSettingPathReqBodyBuilder) DeviceName

需要同步日历的设备名,在日历中展示用来管理密码

示例值:iPhone

type GenerateCaldavConfSettingReq

type GenerateCaldavConfSettingReq struct {
	Body *GenerateCaldavConfSettingReqBody `body:""`
	// contains filtered or unexported fields
}

type GenerateCaldavConfSettingReqBody

type GenerateCaldavConfSettingReqBody struct {
	DeviceName *string `json:"device_name,omitempty"` // 需要同步日历的设备名,在日历中展示用来管理密码
}

type GenerateCaldavConfSettingReqBodyBuilder

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

func NewGenerateCaldavConfSettingReqBodyBuilder

func NewGenerateCaldavConfSettingReqBodyBuilder() *GenerateCaldavConfSettingReqBodyBuilder

func (*GenerateCaldavConfSettingReqBodyBuilder) Build

func (*GenerateCaldavConfSettingReqBodyBuilder) DeviceName

需要同步日历的设备名,在日历中展示用来管理密码

示例值:iPhone

type GenerateCaldavConfSettingReqBuilder

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

func NewGenerateCaldavConfSettingReqBuilder

func NewGenerateCaldavConfSettingReqBuilder() *GenerateCaldavConfSettingReqBuilder

func (*GenerateCaldavConfSettingReqBuilder) Body

用于为当前用户生成一个CalDAV账号密码,用于将飞书日历信息同步到本地设备日历。

func (*GenerateCaldavConfSettingReqBuilder) Build

type GenerateCaldavConfSettingResp

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

func (*GenerateCaldavConfSettingResp) Success

func (resp *GenerateCaldavConfSettingResp) Success() bool

type GenerateCaldavConfSettingRespData

type GenerateCaldavConfSettingRespData struct {
	Password      *string `json:"password,omitempty"`       // caldav密码
	UserName      *string `json:"user_name,omitempty"`      // caldav用户名
	ServerAddress *string `json:"server_address,omitempty"` // 服务器地址
	DeviceName    *string `json:"device_name,omitempty"`    // 设备名
}

type GetCalendarEventReq

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

type GetCalendarEventReqBuilder

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

func NewGetCalendarEventReqBuilder

func NewGetCalendarEventReqBuilder() *GetCalendarEventReqBuilder

func (*GetCalendarEventReqBuilder) Build

func (*GetCalendarEventReqBuilder) CalendarId

func (builder *GetCalendarEventReqBuilder) CalendarId(calendarId string) *GetCalendarEventReqBuilder

日历ID。参见[日历ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/introduction)

示例值:feishu.cn_xxxxxxxxxx@group.calendar.feishu.cn

func (*GetCalendarEventReqBuilder) EventId

日程ID。参见[日程ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event/introduction)

示例值:xxxxxxxxx_0

func (*GetCalendarEventReqBuilder) MaxAttendeeNum added in v3.1.2

func (builder *GetCalendarEventReqBuilder) MaxAttendeeNum(maxAttendeeNum int) *GetCalendarEventReqBuilder

返回的最大参与人数量

示例值:false

func (*GetCalendarEventReqBuilder) NeedAttendee added in v3.1.2

func (builder *GetCalendarEventReqBuilder) NeedAttendee(needAttendee bool) *GetCalendarEventReqBuilder

是否需要返回参与人信息

示例值:false

func (*GetCalendarEventReqBuilder) NeedMeetingSettings added in v3.0.25

func (builder *GetCalendarEventReqBuilder) NeedMeetingSettings(needMeetingSettings bool) *GetCalendarEventReqBuilder

是否需要返回会前设置

示例值:false

func (*GetCalendarEventReqBuilder) UserIdType added in v3.0.25

func (builder *GetCalendarEventReqBuilder) UserIdType(userIdType string) *GetCalendarEventReqBuilder

此次调用中使用的用户ID的类型

示例值:

type GetCalendarEventResp

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

func (*GetCalendarEventResp) Success

func (resp *GetCalendarEventResp) Success() bool

type GetCalendarEventRespData

type GetCalendarEventRespData struct {
	Event *CalendarEvent `json:"event,omitempty"` // 日程实体
}

type GetCalendarReq

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

type GetCalendarReqBuilder

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

func NewGetCalendarReqBuilder

func NewGetCalendarReqBuilder() *GetCalendarReqBuilder

func (*GetCalendarReqBuilder) Build

func (builder *GetCalendarReqBuilder) Build() *GetCalendarReq

func (*GetCalendarReqBuilder) CalendarId

func (builder *GetCalendarReqBuilder) CalendarId(calendarId string) *GetCalendarReqBuilder

日历ID。参见[日历ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/introduction)

示例值:feishu.cn_xxxxxxxxxx@group.calendar.feishu.cn

type GetCalendarResp

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

func (*GetCalendarResp) Success

func (resp *GetCalendarResp) Success() bool

type GetCalendarRespData

type GetCalendarRespData struct {
	CalendarId   *string `json:"calendar_id,omitempty"`    // 日历OpenId
	Summary      *string `json:"summary,omitempty"`        // 日历标题
	Description  *string `json:"description,omitempty"`    // 日历描述
	Permissions  *string `json:"permissions,omitempty"`    //
	Color        *int    `json:"color,omitempty"`          // 日历颜色,颜色RGB值的int32表示。客户端展示时会映射到色板上最接近的一种颜色。仅对当前身份生效
	Type         *string `json:"type,omitempty"`           // 日历类型
	SummaryAlias *string `json:"summary_alias,omitempty"`  // 日历备注名,修改或添加后仅对当前身份生效
	IsDeleted    *bool   `json:"is_deleted,omitempty"`     // 对于当前身份,日历是否已经被标记为删除
	IsThirdParty *bool   `json:"is_third_party,omitempty"` // 当前日历是否是第三方数据;三方日历及日程只支持读,不支持写入
	Role         *string `json:"role,omitempty"`           // 当前身份对于该日历的访问权限
}

type GetExchangeBindingReq

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

type GetExchangeBindingReqBuilder

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

func NewGetExchangeBindingReqBuilder

func NewGetExchangeBindingReqBuilder() *GetExchangeBindingReqBuilder

func (*GetExchangeBindingReqBuilder) Build

func (*GetExchangeBindingReqBuilder) ExchangeBindingId

func (builder *GetExchangeBindingReqBuilder) ExchangeBindingId(exchangeBindingId string) *GetExchangeBindingReqBuilder

exchange绑定唯一标识id。参见[exchange绑定ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/exchange_binding/introduction#12533d5e)

示例值:ZW1haWxfYWRtaW5fZXhhbXBsZUBvdXRsb29rLmNvbSBlbWFpbF9hY2NvdW50X2V4YW1wbGVAb3V0bG9vay5jb20=

func (*GetExchangeBindingReqBuilder) UserIdType

func (builder *GetExchangeBindingReqBuilder) UserIdType(userIdType string) *GetExchangeBindingReqBuilder

此次调用中使用的用户ID的类型

示例值:

type GetExchangeBindingResp

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

func (*GetExchangeBindingResp) Success

func (resp *GetExchangeBindingResp) Success() bool

type GetExchangeBindingRespData

type GetExchangeBindingRespData struct {
	AdminAccount      *string `json:"admin_account,omitempty"`       // admin账户
	ExchangeAccount   *string `json:"exchange_account,omitempty"`    // 用户绑定的Exchange账户
	UserId            *string `json:"user_id,omitempty"`             // Exchange账户绑定user唯一标识id
	Status            *string `json:"status,omitempty"`              // Exchange账户同步状态
	ExchangeBindingId *string `json:"exchange_binding_id,omitempty"` // Exchange绑定关系唯一标识ID
}

type Instance added in v3.0.34

type Instance struct {
	EventId             *string                  `json:"event_id,omitempty"`              // 日程实例ID
	Summary             *string                  `json:"summary,omitempty"`               // 日程主题
	Description         *string                  `json:"description,omitempty"`           // 日程描述
	StartTime           *TimeInfo                `json:"start_time,omitempty"`            // 开始时间
	EndTime             *TimeInfo                `json:"end_time,omitempty"`              // 结束时间
	Status              *string                  `json:"status,omitempty"`                // 日程状态
	IsException         *bool                    `json:"is_exception,omitempty"`          // 是否是例外日程实例
	AppLink             *string                  `json:"app_link,omitempty"`              // 日程的app_link,跳转到具体的某个日程
	OrganizerCalendarId *string                  `json:"organizer_calendar_id,omitempty"` // 日程组织者日历ID
	Vchat               *Vchat                   `json:"vchat,omitempty"`                 // 视频会议信息,仅当日程至少有一位attendee时生效
	Visibility          *string                  `json:"visibility,omitempty"`            // 日程公开范围,新建日程默认为Default;仅新建日程时对所有参与人生效,之后修改该属性仅对当前身份生效
	AttendeeAbility     *string                  `json:"attendee_ability,omitempty"`      // 参与人权限
	FreeBusyStatus      *string                  `json:"free_busy_status,omitempty"`      // 日程占用的忙闲状态,新建日程默认为Busy;仅新建日程时对所有参与人生效,之后修改该属性仅对当前身份生效
	Location            *EventLocation           `json:"location,omitempty"`              // 日程地点
	Color               *int                     `json:"color,omitempty"`                 // 日程颜色,颜色RGB值的int32表示。仅对当前身份生效;客户端展示时会映射到色板上最接近的一种颜色;值为0或-1时默认跟随日历颜色。
	RecurringEventId    *string                  `json:"recurring_event_id,omitempty"`    // 例外日程的原重复日程的event_id
	EventOrganizer      *EventOrganizer          `json:"event_organizer,omitempty"`       // 日程组织者信息
	Attendees           []*CalendarEventAttendee `json:"attendees,omitempty"`             // 日程参与人信息
}

type InstanceBuilder added in v3.0.34

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

func NewInstanceBuilder added in v3.0.34

func NewInstanceBuilder() *InstanceBuilder
func (builder *InstanceBuilder) AppLink(appLink string) *InstanceBuilder

日程的app_link,跳转到具体的某个日程

示例值:https://applink.larkoffice.com/client/calendar/event/detail?calendarId=7039673579105026066&key=aeac9c56-aeb1-4179-a21b-02f278f59048&originalTime=0&startTime=1700496000

func (*InstanceBuilder) AttendeeAbility added in v3.1.2

func (builder *InstanceBuilder) AttendeeAbility(attendeeAbility string) *InstanceBuilder

参与人权限

示例值:

func (*InstanceBuilder) Attendees added in v3.1.2

func (builder *InstanceBuilder) Attendees(attendees []*CalendarEventAttendee) *InstanceBuilder

日程参与人信息

示例值:

func (*InstanceBuilder) Build added in v3.0.34

func (builder *InstanceBuilder) Build() *Instance

func (*InstanceBuilder) Color added in v3.1.2

func (builder *InstanceBuilder) Color(color int) *InstanceBuilder

日程颜色,颜色RGB值的int32表示。仅对当前身份生效;客户端展示时会映射到色板上最接近的一种颜色;值为0或-1时默认跟随日历颜色。

示例值:0

func (*InstanceBuilder) Description added in v3.0.34

func (builder *InstanceBuilder) Description(description string) *InstanceBuilder

日程描述

示例值:desc

func (*InstanceBuilder) EndTime added in v3.0.34

func (builder *InstanceBuilder) EndTime(endTime *TimeInfo) *InstanceBuilder

结束时间

示例值:

func (*InstanceBuilder) EventId added in v3.0.34

func (builder *InstanceBuilder) EventId(eventId string) *InstanceBuilder

日程实例ID

示例值:75d28f9b-e35c-4230-8a83-4a661497db54_1602504000

func (*InstanceBuilder) EventOrganizer added in v3.1.2

func (builder *InstanceBuilder) EventOrganizer(eventOrganizer *EventOrganizer) *InstanceBuilder

日程组织者信息

示例值:

func (*InstanceBuilder) FreeBusyStatus added in v3.1.2

func (builder *InstanceBuilder) FreeBusyStatus(freeBusyStatus string) *InstanceBuilder

日程占用的忙闲状态,新建日程默认为Busy;仅新建日程时对所有参与人生效,之后修改该属性仅对当前身份生效

示例值:

func (*InstanceBuilder) IsException added in v3.0.34

func (builder *InstanceBuilder) IsException(isException bool) *InstanceBuilder

是否是例外日程实例

示例值:false

func (*InstanceBuilder) Location added in v3.1.2

func (builder *InstanceBuilder) Location(location *EventLocation) *InstanceBuilder

日程地点

示例值:

func (*InstanceBuilder) OrganizerCalendarId added in v3.1.2

func (builder *InstanceBuilder) OrganizerCalendarId(organizerCalendarId string) *InstanceBuilder

日程组织者日历ID

示例值:feishu.cn_HF9U2MbibE8PPpjro6xjqa@group.calendar.feishu.cn

func (*InstanceBuilder) RecurringEventId added in v3.1.2

func (builder *InstanceBuilder) RecurringEventId(recurringEventId string) *InstanceBuilder

例外日程的原重复日程的event_id

示例值:75d28f9b-e35c-4230-8a83-4a661497db54_0

func (*InstanceBuilder) StartTime added in v3.0.34

func (builder *InstanceBuilder) StartTime(startTime *TimeInfo) *InstanceBuilder

开始时间

示例值:

func (*InstanceBuilder) Status added in v3.0.34

func (builder *InstanceBuilder) Status(status string) *InstanceBuilder

日程状态

示例值:confirmed

func (*InstanceBuilder) Summary added in v3.0.34

func (builder *InstanceBuilder) Summary(summary string) *InstanceBuilder

日程主题

示例值:日程主题

func (*InstanceBuilder) Vchat added in v3.1.2

func (builder *InstanceBuilder) Vchat(vchat *Vchat) *InstanceBuilder

视频会议信息,仅当日程至少有一位attendee时生效

示例值:

func (*InstanceBuilder) Visibility added in v3.1.2

func (builder *InstanceBuilder) Visibility(visibility string) *InstanceBuilder

日程公开范围,新建日程默认为Default;仅新建日程时对所有参与人生效,之后修改该属性仅对当前身份生效

示例值:

type InstanceViewCalendarEventReq added in v3.1.2

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

type InstanceViewCalendarEventReqBuilder added in v3.1.2

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

func NewInstanceViewCalendarEventReqBuilder added in v3.1.2

func NewInstanceViewCalendarEventReqBuilder() *InstanceViewCalendarEventReqBuilder

func (*InstanceViewCalendarEventReqBuilder) Build added in v3.1.2

func (*InstanceViewCalendarEventReqBuilder) CalendarId added in v3.1.2

日历ID

示例值:feishu.cn_HF9U2MbibE8PPpjro6xjqa@group.calendar.feishu.cn

func (*InstanceViewCalendarEventReqBuilder) EndTime added in v3.1.2

日程结束Unix时间戳,单位为秒

示例值:1631777271

func (*InstanceViewCalendarEventReqBuilder) StartTime added in v3.1.2

日程开始Unix时间戳,单位为秒

示例值:1631777271

func (*InstanceViewCalendarEventReqBuilder) UserIdType added in v3.1.2

此次调用中使用的用户ID的类型

示例值:

type InstanceViewCalendarEventResp added in v3.1.2

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

func (*InstanceViewCalendarEventResp) Success added in v3.1.2

func (resp *InstanceViewCalendarEventResp) Success() bool

type InstanceViewCalendarEventRespData added in v3.1.2

type InstanceViewCalendarEventRespData struct {
	Items []*Instance `json:"items,omitempty"` // 日程instance列表
}

type InstancesCalendarEventReq added in v3.1.2

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

type InstancesCalendarEventReqBuilder added in v3.1.2

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

func NewInstancesCalendarEventReqBuilder added in v3.1.2

func NewInstancesCalendarEventReqBuilder() *InstancesCalendarEventReqBuilder

func (*InstancesCalendarEventReqBuilder) Build added in v3.1.2

func (*InstancesCalendarEventReqBuilder) CalendarId added in v3.1.2

日历资源ID

示例值:feishu.cn_HF9U2MbibE8PPpjro6xjqa@group.calendar.feishu.cn

func (*InstancesCalendarEventReqBuilder) EndTime added in v3.1.2

日程实例结束Unix时间戳,单位为秒,日程的start_time上限(不包含)

示例值:1631777271

func (*InstancesCalendarEventReqBuilder) EventId added in v3.1.2

日程资源ID

示例值:75d28f9b-e35c-4230-8a83-4a661497db54_0

func (*InstancesCalendarEventReqBuilder) PageSize added in v3.1.2

分页大小

示例值:

func (*InstancesCalendarEventReqBuilder) PageToken added in v3.1.2

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果

示例值:

func (*InstancesCalendarEventReqBuilder) StartTime added in v3.1.2

日程实例开始Unix时间戳,单位为秒,日程的end_time的下限(不包含)

示例值:1631777271

type InstancesCalendarEventResp added in v3.1.2

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

func (*InstancesCalendarEventResp) Success added in v3.1.2

func (resp *InstancesCalendarEventResp) Success() bool

type InstancesCalendarEventRespData added in v3.1.2

type InstancesCalendarEventRespData struct {
	Items     []*Instance `json:"items,omitempty"`      // instances实例
	PageToken *string     `json:"page_token,omitempty"` //
	HasMore   *bool       `json:"has_more,omitempty"`   //
}

type ListCalendarAclIterator

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

func (*ListCalendarAclIterator) Next

func (iterator *ListCalendarAclIterator) Next() (bool, *CalendarAcl, error)

func (*ListCalendarAclIterator) NextPageToken

func (iterator *ListCalendarAclIterator) NextPageToken() *string

type ListCalendarAclReq

type ListCalendarAclReq struct {
	Limit int // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type ListCalendarAclReqBuilder

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

func NewListCalendarAclReqBuilder

func NewListCalendarAclReqBuilder() *ListCalendarAclReqBuilder

func (*ListCalendarAclReqBuilder) Build

func (*ListCalendarAclReqBuilder) CalendarId

func (builder *ListCalendarAclReqBuilder) CalendarId(calendarId string) *ListCalendarAclReqBuilder

日历ID。参见[日历ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/introduction)

示例值:feishu.cn_xxxxxxxxxx@group.calendar.feishu.cn

func (*ListCalendarAclReqBuilder) Limit

最大返回多少记录,当使用迭代器访问时才有效

func (*ListCalendarAclReqBuilder) PageSize

func (builder *ListCalendarAclReqBuilder) PageSize(pageSize int) *ListCalendarAclReqBuilder

分页大小

示例值:10,小于10取10

func (*ListCalendarAclReqBuilder) PageToken

func (builder *ListCalendarAclReqBuilder) PageToken(pageToken string) *ListCalendarAclReqBuilder

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该page_token 获取查询结果

示例值:xxx

func (*ListCalendarAclReqBuilder) UserIdType

func (builder *ListCalendarAclReqBuilder) UserIdType(userIdType string) *ListCalendarAclReqBuilder

此次调用中使用的用户ID的类型

示例值:

type ListCalendarAclResp

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

func (*ListCalendarAclResp) Success

func (resp *ListCalendarAclResp) Success() bool

type ListCalendarAclRespData

type ListCalendarAclRespData struct {
	Acls      []*CalendarAcl `json:"acls,omitempty"`       // 入参日历对应的acl列表
	HasMore   *bool          `json:"has_more,omitempty"`   // 是否有下一页数据
	PageToken *string        `json:"page_token,omitempty"` // 下次请求需要带上的分页标记,90 天有效期
}

type ListCalendarEventAttendeeChatMemberIterator

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

func (*ListCalendarEventAttendeeChatMemberIterator) Next

func (*ListCalendarEventAttendeeChatMemberIterator) NextPageToken

func (iterator *ListCalendarEventAttendeeChatMemberIterator) NextPageToken() *string

type ListCalendarEventAttendeeChatMemberReq

type ListCalendarEventAttendeeChatMemberReq struct {
	Limit int // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type ListCalendarEventAttendeeChatMemberReqBuilder

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

func NewListCalendarEventAttendeeChatMemberReqBuilder

func NewListCalendarEventAttendeeChatMemberReqBuilder() *ListCalendarEventAttendeeChatMemberReqBuilder

func (*ListCalendarEventAttendeeChatMemberReqBuilder) AttendeeId

群参与人 ID。参见[参与人ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event-attendee/introduction#4998889c)

示例值:chat_xxxxxx

func (*ListCalendarEventAttendeeChatMemberReqBuilder) Build

func (*ListCalendarEventAttendeeChatMemberReqBuilder) CalendarId

日历ID。参见[日历ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/introduction)

示例值:feishu.cn_xxxxxxxxxx@group.calendar.feishu.cn

func (*ListCalendarEventAttendeeChatMemberReqBuilder) EventId

日程ID。参见[日程ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event/introduction)

示例值:xxxxxxxxx_0

func (*ListCalendarEventAttendeeChatMemberReqBuilder) Limit

最大返回多少记录,当使用迭代器访问时才有效

func (*ListCalendarEventAttendeeChatMemberReqBuilder) PageSize

分页大小

示例值:10

func (*ListCalendarEventAttendeeChatMemberReqBuilder) PageToken

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该page_token 获取查询结果

示例值:23jhysaxxxxsysy

func (*ListCalendarEventAttendeeChatMemberReqBuilder) UserIdType

此次调用中使用的用户ID的类型

示例值:

type ListCalendarEventAttendeeChatMemberResp

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

func (*ListCalendarEventAttendeeChatMemberResp) Success

type ListCalendarEventAttendeeChatMemberRespData

type ListCalendarEventAttendeeChatMemberRespData struct {
	Items     []*CalendarEventAttendeeChatMember `json:"items,omitempty"`      // 群中的群成员,当type为chat时有效;群成员不支持编辑
	HasMore   *bool                              `json:"has_more,omitempty"`   // 是否有下一页数据
	PageToken *string                            `json:"page_token,omitempty"` // 下次请求需要带上的分页标记
}

type ListCalendarEventAttendeeIterator

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

func (*ListCalendarEventAttendeeIterator) Next

func (*ListCalendarEventAttendeeIterator) NextPageToken

func (iterator *ListCalendarEventAttendeeIterator) NextPageToken() *string

type ListCalendarEventAttendeeReq

type ListCalendarEventAttendeeReq struct {
	Limit int // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type ListCalendarEventAttendeeReqBuilder

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

func NewListCalendarEventAttendeeReqBuilder

func NewListCalendarEventAttendeeReqBuilder() *ListCalendarEventAttendeeReqBuilder

func (*ListCalendarEventAttendeeReqBuilder) Build

func (*ListCalendarEventAttendeeReqBuilder) CalendarId

日历ID。参见[日历ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/introduction)

示例值:feishu.cn_xxxxxxxxxx@group.calendar.feishu.cn

func (*ListCalendarEventAttendeeReqBuilder) EventId

日程ID。参见[日程ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event/introduction)

示例值:xxxxxxxxx_0

func (*ListCalendarEventAttendeeReqBuilder) Limit

最大返回多少记录,当使用迭代器访问时才有效

func (*ListCalendarEventAttendeeReqBuilder) NeedResourceCustomization added in v3.0.25

func (builder *ListCalendarEventAttendeeReqBuilder) NeedResourceCustomization(needResourceCustomization bool) *ListCalendarEventAttendeeReqBuilder

是否需要会议室表单信息

示例值:true

func (*ListCalendarEventAttendeeReqBuilder) PageSize

分页大小

示例值:10

func (*ListCalendarEventAttendeeReqBuilder) PageToken

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该page_token 获取查询结果

示例值:780TRhwXXXXX

func (*ListCalendarEventAttendeeReqBuilder) UserIdType

此次调用中使用的用户ID的类型

示例值:

type ListCalendarEventAttendeeResp

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

func (*ListCalendarEventAttendeeResp) Success

func (resp *ListCalendarEventAttendeeResp) Success() bool

type ListCalendarEventAttendeeRespData

type ListCalendarEventAttendeeRespData struct {
	Items     []*CalendarEventAttendee `json:"items,omitempty"`      // 日程的参与者列表
	HasMore   *bool                    `json:"has_more,omitempty"`   // 是否有下一页数据
	PageToken *string                  `json:"page_token,omitempty"` // 下次请求需要带上的分页标记,90 天有效期
}

type ListCalendarEventReq

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

type ListCalendarEventReqBuilder

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

func NewListCalendarEventReqBuilder

func NewListCalendarEventReqBuilder() *ListCalendarEventReqBuilder

func (*ListCalendarEventReqBuilder) AnchorTime

func (builder *ListCalendarEventReqBuilder) AnchorTime(anchorTime string) *ListCalendarEventReqBuilder

拉取anchor_time之后的日程,为timestamp

示例值:1609430400

func (*ListCalendarEventReqBuilder) Build

func (*ListCalendarEventReqBuilder) CalendarId

func (builder *ListCalendarEventReqBuilder) CalendarId(calendarId string) *ListCalendarEventReqBuilder

日历ID。参见[日历ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/introduction)

示例值:feishu.cn_xxxxxxxxxx@group.calendar.feishu.cn

func (*ListCalendarEventReqBuilder) EndTime

日程结束Unix时间戳,单位为秒

示例值:1631777271

func (*ListCalendarEventReqBuilder) PageSize

func (builder *ListCalendarEventReqBuilder) PageSize(pageSize int) *ListCalendarEventReqBuilder

一次请求要求返回最大数量,默认500,取值范围为[50, 1000]

示例值:50

func (*ListCalendarEventReqBuilder) PageToken

func (builder *ListCalendarEventReqBuilder) PageToken(pageToken string) *ListCalendarEventReqBuilder

上次请求Response返回的分页标记,首次请求时为空

示例值:ListCalendarsPageToken_1632452910_1632539310

func (*ListCalendarEventReqBuilder) StartTime

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

日程开始Unix时间戳,单位为秒

示例值:1631777271

func (*ListCalendarEventReqBuilder) SyncToken

func (builder *ListCalendarEventReqBuilder) SyncToken(syncToken string) *ListCalendarEventReqBuilder

上次请求Response返回的增量同步标记,分页请求未结束时为空

示例值:ListCalendarsSyncToken_1632452910

func (*ListCalendarEventReqBuilder) UserIdType added in v3.0.34

func (builder *ListCalendarEventReqBuilder) UserIdType(userIdType string) *ListCalendarEventReqBuilder

此次调用中使用的用户ID的类型

示例值:

type ListCalendarEventResp

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

func (*ListCalendarEventResp) Success

func (resp *ListCalendarEventResp) Success() bool

type ListCalendarEventRespData

type ListCalendarEventRespData struct {
	HasMore   *bool            `json:"has_more,omitempty"`   // 是否还有更多数据
	PageToken *string          `json:"page_token,omitempty"` // 下次请求需要带上的分页标记
	SyncToken *string          `json:"sync_token,omitempty"` // 下次请求需要带上的增量同步标记
	Items     []*CalendarEvent `json:"items,omitempty"`      // 日程列表
}

type ListCalendarReq

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

type ListCalendarReqBuilder

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

func NewListCalendarReqBuilder

func NewListCalendarReqBuilder() *ListCalendarReqBuilder

func (*ListCalendarReqBuilder) Build

func (builder *ListCalendarReqBuilder) Build() *ListCalendarReq

func (*ListCalendarReqBuilder) PageSize

func (builder *ListCalendarReqBuilder) PageSize(pageSize int) *ListCalendarReqBuilder

一次请求要求返回最大数量,默认500,取值范围为[50. 1000]

示例值:50

func (*ListCalendarReqBuilder) PageToken

func (builder *ListCalendarReqBuilder) PageToken(pageToken string) *ListCalendarReqBuilder

上次请求Response返回的分页标记,首次请求时为空

示例值:ListCalendarsPageToken_xxx

func (*ListCalendarReqBuilder) SyncToken

func (builder *ListCalendarReqBuilder) SyncToken(syncToken string) *ListCalendarReqBuilder

上次请求Response返回的增量同步标记,分页请求未结束时为空

示例值:ListCalendarsSyncToken_xxx

type ListCalendarResp

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

func (*ListCalendarResp) Success

func (resp *ListCalendarResp) Success() bool

type ListCalendarRespData

type ListCalendarRespData struct {
	HasMore      *bool       `json:"has_more,omitempty"`      // 是否还有更多数据
	PageToken    *string     `json:"page_token,omitempty"`    // 下次请求需要带上的分页标记,90 天有效期
	SyncToken    *string     `json:"sync_token,omitempty"`    // 下次请求需要带上的增量同步标记,90 天有效期
	CalendarList []*Calendar `json:"calendar_list,omitempty"` // 分页加载的日历数据列表
}

type ListFreebusyPathReqBodyBuilder

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

func NewListFreebusyPathReqBodyBuilder

func NewListFreebusyPathReqBodyBuilder() *ListFreebusyPathReqBodyBuilder

func (*ListFreebusyPathReqBodyBuilder) Build

func (*ListFreebusyPathReqBodyBuilder) IncludeExternalCalendar added in v3.0.34

func (builder *ListFreebusyPathReqBodyBuilder) IncludeExternalCalendar(includeExternalCalendar bool) *ListFreebusyPathReqBodyBuilder

是否包含绑定的三方日历中的日程,不传默认为true,即包含。

示例值:true

func (*ListFreebusyPathReqBodyBuilder) OnlyBusy added in v3.0.34

是否包含标记为空闲的日程,不传默认为true,即包含。

示例值:true

func (*ListFreebusyPathReqBodyBuilder) RoomId

会议室room_id,输入时与 user_id 二选一

示例值:omm_xxxxxxxxxx

func (*ListFreebusyPathReqBodyBuilder) TimeMax

查询时段结束时间,需要url编码

示例值:2020-12-28T12:00:00+08:00

func (*ListFreebusyPathReqBodyBuilder) TimeMin

查询时段开始时间,需要url编码

示例值:2020-10-28T12:00:00+08:00

func (*ListFreebusyPathReqBodyBuilder) UserId

用户user_id,输入时与 room_id 二选一。参见[用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction)

示例值:ou_xxxxxxxxxx

type ListFreebusyReq

type ListFreebusyReq struct {
	Body *ListFreebusyReqBody `body:""`
	// contains filtered or unexported fields
}

type ListFreebusyReqBody

type ListFreebusyReqBody struct {
	TimeMin                 *string `json:"time_min,omitempty"`                  // 查询时段开始时间,需要url编码
	TimeMax                 *string `json:"time_max,omitempty"`                  // 查询时段结束时间,需要url编码
	UserId                  *string `json:"user_id,omitempty"`                   // 用户user_id,输入时与 room_id 二选一。参见[用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction)
	RoomId                  *string `json:"room_id,omitempty"`                   // 会议室room_id,输入时与 user_id 二选一
	IncludeExternalCalendar *bool   `json:"include_external_calendar,omitempty"` // 是否包含绑定的三方日历中的日程,不传默认为true,即包含。
	OnlyBusy                *bool   `json:"only_busy,omitempty"`                 // 是否包含标记为空闲的日程,不传默认为true,即包含。
}

type ListFreebusyReqBodyBuilder

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

func NewListFreebusyReqBodyBuilder

func NewListFreebusyReqBodyBuilder() *ListFreebusyReqBodyBuilder

func (*ListFreebusyReqBodyBuilder) Build

func (*ListFreebusyReqBodyBuilder) IncludeExternalCalendar added in v3.0.34

func (builder *ListFreebusyReqBodyBuilder) IncludeExternalCalendar(includeExternalCalendar bool) *ListFreebusyReqBodyBuilder

是否包含绑定的三方日历中的日程,不传默认为true,即包含。

示例值:true

func (*ListFreebusyReqBodyBuilder) OnlyBusy added in v3.0.34

func (builder *ListFreebusyReqBodyBuilder) OnlyBusy(onlyBusy bool) *ListFreebusyReqBodyBuilder

是否包含标记为空闲的日程,不传默认为true,即包含。

示例值:true

func (*ListFreebusyReqBodyBuilder) RoomId

会议室room_id,输入时与 user_id 二选一

示例值:omm_xxxxxxxxxx

func (*ListFreebusyReqBodyBuilder) TimeMax

查询时段结束时间,需要url编码

示例值:2020-12-28T12:00:00+08:00

func (*ListFreebusyReqBodyBuilder) TimeMin

查询时段开始时间,需要url编码

示例值:2020-10-28T12:00:00+08:00

func (*ListFreebusyReqBodyBuilder) UserId

用户user_id,输入时与 room_id 二选一。参见[用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction)

示例值:ou_xxxxxxxxxx

type ListFreebusyReqBuilder

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

func NewListFreebusyReqBuilder

func NewListFreebusyReqBuilder() *ListFreebusyReqBuilder

func (*ListFreebusyReqBuilder) Body

查询用户主日历或会议室的忙闲信息。

func (*ListFreebusyReqBuilder) Build

func (builder *ListFreebusyReqBuilder) Build() *ListFreebusyReq

func (*ListFreebusyReqBuilder) UserIdType

func (builder *ListFreebusyReqBuilder) UserIdType(userIdType string) *ListFreebusyReqBuilder

此次调用中使用的用户ID的类型

示例值:

type ListFreebusyResp

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

func (*ListFreebusyResp) Success

func (resp *ListFreebusyResp) Success() bool

type ListFreebusyRespData

type ListFreebusyRespData struct {
	FreebusyList []*Freebusy `json:"freebusy_list,omitempty"` // 日历上请求时间区间内的忙碌时间段信息。
}

type MeetingChat added in v3.0.25

type MeetingChat struct {
	MeetingChatId *string `json:"meeting_chat_id,omitempty"` // 会议群ID
	Applink       *string `json:"applink,omitempty"`         // 群分享链接
}

type MeetingChatBuilder added in v3.0.25

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

func NewMeetingChatBuilder added in v3.0.25

func NewMeetingChatBuilder() *MeetingChatBuilder
func (builder *MeetingChatBuilder) Applink(applink string) *MeetingChatBuilder

群分享链接

示例值:https://applink.feishu.cn/client/chat/open?openChatId=oc_a0553eda9014c201e6969b478895c230

func (*MeetingChatBuilder) Build added in v3.0.25

func (builder *MeetingChatBuilder) Build() *MeetingChat

func (*MeetingChatBuilder) MeetingChatId added in v3.0.25

func (builder *MeetingChatBuilder) MeetingChatId(meetingChatId string) *MeetingChatBuilder

会议群ID

示例值:oc_a0553eda9014c201e6969b478895c230

type MeetingMinute added in v3.0.25

type MeetingMinute struct {
	DocToken *string `json:"doc_token,omitempty"` // 文档token
	DocUrl   *string `json:"doc_url,omitempty"`   // 文档URL
}

type MeetingMinuteBuilder added in v3.0.25

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

func NewMeetingMinuteBuilder added in v3.0.25

func NewMeetingMinuteBuilder() *MeetingMinuteBuilder

func (*MeetingMinuteBuilder) Build added in v3.0.25

func (builder *MeetingMinuteBuilder) Build() *MeetingMinute

func (*MeetingMinuteBuilder) DocToken added in v3.0.25

func (builder *MeetingMinuteBuilder) DocToken(docToken string) *MeetingMinuteBuilder

文档token

示例值:WCEZdjUSSoH5rvx6hEhcyMjxn6c

func (*MeetingMinuteBuilder) DocUrl added in v3.0.25

func (builder *MeetingMinuteBuilder) DocUrl(docUrl string) *MeetingMinuteBuilder

文档URL

示例值:https://bytedance.feishu.cn/docx/WCEZdjUSSoH5rvx6hEhcyMjxn6c

type MeetingSettings added in v3.0.25

type MeetingSettings struct {
	OwnerId               *string  `json:"owner_id,omitempty"`                // 设置会议 owner
	JoinMeetingPermission *string  `json:"join_meeting_permission,omitempty"` // 设置入会范围
	AssignHosts           []string `json:"assign_hosts,omitempty"`            // 指定主持人
	AutoRecord            *bool    `json:"auto_record,omitempty"`             // 设置自动录制
	OpenLobby             *bool    `json:"open_lobby,omitempty"`              // 开启等候室
	AllowAttendeesStart   *bool    `json:"allow_attendees_start,omitempty"`   // 允许日程参与者发起会议
}

type MeetingSettingsBuilder added in v3.0.25

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

func NewMeetingSettingsBuilder added in v3.0.25

func NewMeetingSettingsBuilder() *MeetingSettingsBuilder

func (*MeetingSettingsBuilder) AllowAttendeesStart added in v3.0.25

func (builder *MeetingSettingsBuilder) AllowAttendeesStart(allowAttendeesStart bool) *MeetingSettingsBuilder

允许日程参与者发起会议

示例值:true

func (*MeetingSettingsBuilder) AssignHosts added in v3.0.25

func (builder *MeetingSettingsBuilder) AssignHosts(assignHosts []string) *MeetingSettingsBuilder

指定主持人

示例值:

func (*MeetingSettingsBuilder) AutoRecord added in v3.0.25

func (builder *MeetingSettingsBuilder) AutoRecord(autoRecord bool) *MeetingSettingsBuilder

设置自动录制

示例值:false

func (*MeetingSettingsBuilder) Build added in v3.0.25

func (builder *MeetingSettingsBuilder) Build() *MeetingSettings

func (*MeetingSettingsBuilder) JoinMeetingPermission added in v3.0.25

func (builder *MeetingSettingsBuilder) JoinMeetingPermission(joinMeetingPermission string) *MeetingSettingsBuilder

设置入会范围

示例值:

func (*MeetingSettingsBuilder) OpenLobby added in v3.0.25

func (builder *MeetingSettingsBuilder) OpenLobby(openLobby bool) *MeetingSettingsBuilder

开启等候室

示例值:true

func (*MeetingSettingsBuilder) OwnerId added in v3.0.25

func (builder *MeetingSettingsBuilder) OwnerId(ownerId string) *MeetingSettingsBuilder

设置会议 owner

示例值:ou_7d8a6e6df7621556ce0d21922b676706ccs

type MyAiEventDetail added in v3.1.2

type MyAiEventDetail struct {
	EventId        *string     `json:"event_id,omitempty"`        // 日程的uid_originTime
	Summary        *string     `json:"summary,omitempty"`         // 日程主题
	StartTime      *string     `json:"start_time,omitempty"`      // 日程开始时间
	EndTime        *string     `json:"end_time,omitempty"`        // 日程结束时间
	Timezone       *string     `json:"timezone,omitempty"`        // 时区
	RecurrenceRule *string     `json:"recurrence_rule,omitempty"` // 日程的重复性规则
	Participants   []*UserMeta `json:"participants,omitempty"`    // 参与人实体列表
	Rooms          []*RoomMeta `json:"rooms,omitempty"`           // 会议室实体列表
	AccessRole     *string     `json:"access_role,omitempty"`     // 日程的权限
}

type MyAiEventDetailBuilder added in v3.1.2

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

func NewMyAiEventDetailBuilder added in v3.1.2

func NewMyAiEventDetailBuilder() *MyAiEventDetailBuilder

func (*MyAiEventDetailBuilder) AccessRole added in v3.1.2

func (builder *MyAiEventDetailBuilder) AccessRole(accessRole string) *MyAiEventDetailBuilder

日程的权限

示例值:read/invite/edit

func (*MyAiEventDetailBuilder) Build added in v3.1.2

func (builder *MyAiEventDetailBuilder) Build() *MyAiEventDetail

func (*MyAiEventDetailBuilder) EndTime added in v3.1.2

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

日程结束时间

示例值:none

func (*MyAiEventDetailBuilder) EventId added in v3.1.2

func (builder *MyAiEventDetailBuilder) EventId(eventId string) *MyAiEventDetailBuilder

日程的uid_originTime

示例值:11dd1004-7cfb-4ad2-89a0-aa3c82f34dda_0

func (*MyAiEventDetailBuilder) Participants added in v3.1.2

func (builder *MyAiEventDetailBuilder) Participants(participants []*UserMeta) *MyAiEventDetailBuilder

参与人实体列表

示例值:

func (*MyAiEventDetailBuilder) RecurrenceRule added in v3.1.2

func (builder *MyAiEventDetailBuilder) RecurrenceRule(recurrenceRule string) *MyAiEventDetailBuilder

日程的重复性规则

示例值:FREQ=DAILY;INTERVAL=1

func (*MyAiEventDetailBuilder) Rooms added in v3.1.2

func (builder *MyAiEventDetailBuilder) Rooms(rooms []*RoomMeta) *MyAiEventDetailBuilder

会议室实体列表

示例值:

func (*MyAiEventDetailBuilder) StartTime added in v3.1.2

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

日程开始时间

示例值:none

func (*MyAiEventDetailBuilder) Summary added in v3.1.2

func (builder *MyAiEventDetailBuilder) Summary(summary string) *MyAiEventDetailBuilder

日程主题

示例值:none

func (*MyAiEventDetailBuilder) Timezone added in v3.1.2

func (builder *MyAiEventDetailBuilder) Timezone(timezone string) *MyAiEventDetailBuilder

时区

示例值:Asia/Shanghai

type MyAiEventInfo added in v3.1.2

type MyAiEventInfo struct {
	EventId        *string `json:"event_id,omitempty"`         // 日程的uid_originTime
	Summary        *string `json:"summary,omitempty"`          // 日程主题
	StartTime      *string `json:"start_time,omitempty"`       // 日程开始时间,日期+时间格式
	EndTime        *string `json:"end_time,omitempty"`         // 日程结束时间,日期+时间格式
	StartTimezone  *string `json:"start_timezone,omitempty"`   // 日程开始时间时区
	RecurrenceRule *string `json:"recurrence_rule,omitempty"`  // 日程的重复性规则
	ParticipantIds *string `json:"participant_ids,omitempty"`  // 日程参与人open ID
	MeetingRoomIds *string `json:"meeting_room_ids,omitempty"` // 需要预定的会议室ID列表
}

type MyAiEventInfoBuilder added in v3.1.2

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

func NewMyAiEventInfoBuilder added in v3.1.2

func NewMyAiEventInfoBuilder() *MyAiEventInfoBuilder

func (*MyAiEventInfoBuilder) Build added in v3.1.2

func (builder *MyAiEventInfoBuilder) Build() *MyAiEventInfo

func (*MyAiEventInfoBuilder) EndTime added in v3.1.2

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

日程结束时间,日期+时间格式

示例值:2023-01-01T01:00

func (*MyAiEventInfoBuilder) EventId added in v3.1.2

func (builder *MyAiEventInfoBuilder) EventId(eventId string) *MyAiEventInfoBuilder

日程的uid_originTime

示例值:11dd1004-7cfb-4ad2-89a0-aa3c82f34dda_0

func (*MyAiEventInfoBuilder) MeetingRoomIds added in v3.1.2

func (builder *MyAiEventInfoBuilder) MeetingRoomIds(meetingRoomIds string) *MyAiEventInfoBuilder

需要预定的会议室ID列表

示例值:omm_xxx;omm_yyy

func (*MyAiEventInfoBuilder) ParticipantIds added in v3.1.2

func (builder *MyAiEventInfoBuilder) ParticipantIds(participantIds string) *MyAiEventInfoBuilder

日程参与人open ID

示例值:ou_xxx;ou_yyy

func (*MyAiEventInfoBuilder) RecurrenceRule added in v3.1.2

func (builder *MyAiEventInfoBuilder) RecurrenceRule(recurrenceRule string) *MyAiEventInfoBuilder

日程的重复性规则

示例值:FREQ=DAILY;INTERVAL=1

func (*MyAiEventInfoBuilder) StartTime added in v3.1.2

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

日程开始时间,日期+时间格式

示例值:2023-01-01T00:00

func (*MyAiEventInfoBuilder) StartTimezone added in v3.1.2

func (builder *MyAiEventInfoBuilder) StartTimezone(startTimezone string) *MyAiEventInfoBuilder

日程开始时间时区

示例值:Asia/Shanghai

func (*MyAiEventInfoBuilder) Summary added in v3.1.2

func (builder *MyAiEventInfoBuilder) Summary(summary string) *MyAiEventInfoBuilder

日程主题

示例值:日程主题

type MyaiCardStatus added in v3.0.25

type MyaiCardStatus struct {
	FromStatus *string `json:"from_status,omitempty"` // 卡片原来的状态
	ToStatus   *string `json:"to_status,omitempty"`   // 卡片的新状态
}

type MyaiCardStatusBuilder added in v3.0.25

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

func NewMyaiCardStatusBuilder added in v3.0.25

func NewMyaiCardStatusBuilder() *MyaiCardStatusBuilder

func (*MyaiCardStatusBuilder) Build added in v3.0.25

func (builder *MyaiCardStatusBuilder) Build() *MyaiCardStatus

func (*MyaiCardStatusBuilder) FromStatus added in v3.0.25

func (builder *MyaiCardStatusBuilder) FromStatus(fromStatus string) *MyaiCardStatusBuilder

卡片原来的状态

示例值:CREATED

func (*MyaiCardStatusBuilder) ToStatus added in v3.0.25

func (builder *MyaiCardStatusBuilder) ToStatus(toStatus string) *MyaiCardStatusBuilder

卡片的新状态

示例值:INVALIDATED

type MyaiReply added in v3.0.25

type MyaiReply struct {
	Reply          *string     `json:"reply,omitempty"`           // 返回给myai的自然语言描述
	StartTime      *string     `json:"start_time,omitempty"`      // 日程开始时间
	EndTime        *string     `json:"end_time,omitempty"`        // 日程结束时间
	Rooms          []*RoomMeta `json:"rooms,omitempty"`           // 会议室实体列表
	Summary        *string     `json:"summary,omitempty"`         // 日程主题
	Participants   []*UserMeta `json:"participants,omitempty"`    // 参与人实体列表
	EventId        *string     `json:"event_id,omitempty"`        // 日程的uid_originTime
	RecurrenceRule *string     `json:"recurrence_rule,omitempty"` // 日程的重复性规则
}

type MyaiReplyBuilder added in v3.0.25

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

func NewMyaiReplyBuilder added in v3.0.25

func NewMyaiReplyBuilder() *MyaiReplyBuilder

func (*MyaiReplyBuilder) Build added in v3.0.25

func (builder *MyaiReplyBuilder) Build() *MyaiReply

func (*MyaiReplyBuilder) EndTime added in v3.0.25

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

日程结束时间

示例值:none

func (*MyaiReplyBuilder) EventId added in v3.1.2

func (builder *MyaiReplyBuilder) EventId(eventId string) *MyaiReplyBuilder

日程的uid_originTime

示例值:11dd1004-7cfb-4ad2-89a0-aa3c82f34dda_0

func (*MyaiReplyBuilder) Participants added in v3.0.34

func (builder *MyaiReplyBuilder) Participants(participants []*UserMeta) *MyaiReplyBuilder

参与人实体列表

示例值:

func (*MyaiReplyBuilder) RecurrenceRule added in v3.1.2

func (builder *MyaiReplyBuilder) RecurrenceRule(recurrenceRule string) *MyaiReplyBuilder

日程的重复性规则

示例值:FREQ=DAILY;INTERVAL=1

func (*MyaiReplyBuilder) Reply added in v3.0.25

func (builder *MyaiReplyBuilder) Reply(reply string) *MyaiReplyBuilder

返回给myai的自然语言描述

示例值:none

func (*MyaiReplyBuilder) Rooms added in v3.0.25

func (builder *MyaiReplyBuilder) Rooms(rooms []*RoomMeta) *MyaiReplyBuilder

会议室实体列表

示例值:

func (*MyaiReplyBuilder) StartTime added in v3.0.25

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

日程开始时间

示例值:none

func (*MyaiReplyBuilder) Summary added in v3.0.25

func (builder *MyaiReplyBuilder) Summary(summary string) *MyaiReplyBuilder

日程主题

示例值:none

type OperateCardData added in v3.0.25

type OperateCardData struct {
	MeetingUrl *string `json:"meeting_url,omitempty"` // 视频会议链接
	MeetingNo  *string `json:"meeting_no,omitempty"`  // 视频会议no
}

type OperateCardDataBuilder added in v3.0.25

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

func NewOperateCardDataBuilder added in v3.0.25

func NewOperateCardDataBuilder() *OperateCardDataBuilder

func (*OperateCardDataBuilder) Build added in v3.0.25

func (builder *OperateCardDataBuilder) Build() *OperateCardData

func (*OperateCardDataBuilder) MeetingNo added in v3.0.25

func (builder *OperateCardDataBuilder) MeetingNo(meetingNo string) *OperateCardDataBuilder

视频会议no

示例值:808056935

func (*OperateCardDataBuilder) MeetingUrl added in v3.0.25

func (builder *OperateCardDataBuilder) MeetingUrl(meetingUrl string) *OperateCardDataBuilder

视频会议链接

示例值:https://vc.feishu.cn/j/152568231

type P2CalendarAclCreatedV4

type P2CalendarAclCreatedV4 struct {
	*larkevent.EventV2Base                             // 事件基础数据
	*larkevent.EventReq                                // 请求原生数据
	Event                  *P2CalendarAclCreatedV4Data `json:"event"` // 事件内容
}

func (*P2CalendarAclCreatedV4) RawReq

func (m *P2CalendarAclCreatedV4) RawReq(req *larkevent.EventReq)

type P2CalendarAclCreatedV4Data

type P2CalendarAclCreatedV4Data struct {
	AclId      *string        `json:"acl_id,omitempty"`       // acl资源ID
	Role       *string        `json:"role,omitempty"`         // 对日历的访问权限
	Scope      *AclScopeEvent `json:"scope,omitempty"`        // 权限范围
	UserIdList []*UserId      `json:"user_id_list,omitempty"` // 需要推送事件的用户列表
}

type P2CalendarAclCreatedV4Handler

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

消息处理器定义

func (*P2CalendarAclCreatedV4Handler) Event

func (h *P2CalendarAclCreatedV4Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2CalendarAclCreatedV4Handler) Handle

func (h *P2CalendarAclCreatedV4Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2CalendarAclDeletedV4

type P2CalendarAclDeletedV4 struct {
	*larkevent.EventV2Base                             // 事件基础数据
	*larkevent.EventReq                                // 请求原生数据
	Event                  *P2CalendarAclDeletedV4Data `json:"event"` // 事件内容
}

func (*P2CalendarAclDeletedV4) RawReq

func (m *P2CalendarAclDeletedV4) RawReq(req *larkevent.EventReq)

type P2CalendarAclDeletedV4Data

type P2CalendarAclDeletedV4Data struct {
	AclId      *string        `json:"acl_id,omitempty"`       // acl资源ID
	Role       *string        `json:"role,omitempty"`         // 对日历的访问权限
	Scope      *AclScopeEvent `json:"scope,omitempty"`        // 权限范围
	UserIdList []*UserId      `json:"user_id_list,omitempty"` // 需要推送事件的用户列表
}

type P2CalendarAclDeletedV4Handler

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

消息处理器定义

func (*P2CalendarAclDeletedV4Handler) Event

func (h *P2CalendarAclDeletedV4Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2CalendarAclDeletedV4Handler) Handle

func (h *P2CalendarAclDeletedV4Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2CalendarChangedV4

type P2CalendarChangedV4 struct {
	*larkevent.EventV2Base                          // 事件基础数据
	*larkevent.EventReq                             // 请求原生数据
	Event                  *P2CalendarChangedV4Data `json:"event"` // 事件内容
}

func (*P2CalendarChangedV4) RawReq

func (m *P2CalendarChangedV4) RawReq(req *larkevent.EventReq)

type P2CalendarChangedV4Data

type P2CalendarChangedV4Data struct {
	UserIdList []*UserId `json:"user_id_list,omitempty"` // 需要推送事件的用户列表
}

type P2CalendarChangedV4Handler

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

消息处理器定义

func NewP2CalendarChangedV4Handler

func NewP2CalendarChangedV4Handler(handler func(context.Context, *P2CalendarChangedV4) error) *P2CalendarChangedV4Handler

func (*P2CalendarChangedV4Handler) Event

func (h *P2CalendarChangedV4Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2CalendarChangedV4Handler) Handle

func (h *P2CalendarChangedV4Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2CalendarEventChangedV4

type P2CalendarEventChangedV4 struct {
	*larkevent.EventV2Base                               // 事件基础数据
	*larkevent.EventReq                                  // 请求原生数据
	Event                  *P2CalendarEventChangedV4Data `json:"event"` // 事件内容
}

func (*P2CalendarEventChangedV4) RawReq

func (m *P2CalendarEventChangedV4) RawReq(req *larkevent.EventReq)

type P2CalendarEventChangedV4Data

type P2CalendarEventChangedV4Data struct {
	CalendarId      *string   `json:"calendar_id,omitempty"`       // 日历id
	UserIdList      []*UserId `json:"user_id_list,omitempty"`      // 需要推送事件的用户列表
	CalendarEventId *string   `json:"calendar_event_id,omitempty"` // 发生变更的日程ID
}

type P2CalendarEventChangedV4Handler

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

消息处理器定义

func (*P2CalendarEventChangedV4Handler) Event

func (h *P2CalendarEventChangedV4Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2CalendarEventChangedV4Handler) Handle

func (h *P2CalendarEventChangedV4Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type PatchCalendarEventReq

type PatchCalendarEventReq struct {
	CalendarEvent *CalendarEvent `body:""`
	// contains filtered or unexported fields
}

type PatchCalendarEventReqBuilder

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

func NewPatchCalendarEventReqBuilder

func NewPatchCalendarEventReqBuilder() *PatchCalendarEventReqBuilder

func (*PatchCalendarEventReqBuilder) Build

func (*PatchCalendarEventReqBuilder) CalendarEvent

func (builder *PatchCalendarEventReqBuilder) CalendarEvent(calendarEvent *CalendarEvent) *PatchCalendarEventReqBuilder

该接口用于以当前身份(应用 / 用户)更新日历上的一个日程。;;身份由 Header Authorization 的 Token 类型决定。

func (*PatchCalendarEventReqBuilder) CalendarId

func (builder *PatchCalendarEventReqBuilder) CalendarId(calendarId string) *PatchCalendarEventReqBuilder

日历ID。参见[日历ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/introduction)

示例值:feishu.cn_xxxxxxxxxx@group.calendar.feishu.cn

func (*PatchCalendarEventReqBuilder) EventId

日程ID。参见[日程ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event/introduction)

示例值:00592a0e-7edf-4678-bc9d-1b77383ef08e_0

func (*PatchCalendarEventReqBuilder) UserIdType added in v3.0.25

func (builder *PatchCalendarEventReqBuilder) UserIdType(userIdType string) *PatchCalendarEventReqBuilder

此次调用中使用的用户ID的类型

示例值:

type PatchCalendarEventResp

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

func (*PatchCalendarEventResp) Success

func (resp *PatchCalendarEventResp) Success() bool

type PatchCalendarEventRespData

type PatchCalendarEventRespData struct {
	Event *CalendarEvent `json:"event,omitempty"` // 更新后的日程实体
}

type PatchCalendarReq

type PatchCalendarReq struct {
	Calendar *Calendar `body:""`
	// contains filtered or unexported fields
}

type PatchCalendarReqBuilder

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

func NewPatchCalendarReqBuilder

func NewPatchCalendarReqBuilder() *PatchCalendarReqBuilder

func (*PatchCalendarReqBuilder) Build

func (builder *PatchCalendarReqBuilder) Build() *PatchCalendarReq

func (*PatchCalendarReqBuilder) Calendar

func (builder *PatchCalendarReqBuilder) Calendar(calendar *Calendar) *PatchCalendarReqBuilder

该接口用于以当前身份(应用 / 用户)修改日历信息。;;身份由 Header Authorization 的 Token 类型决定。

func (*PatchCalendarReqBuilder) CalendarId

func (builder *PatchCalendarReqBuilder) CalendarId(calendarId string) *PatchCalendarReqBuilder

日历ID。参见[日历ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/introduction)

示例值:feishu.cn_xxxxxxxxxx@group.calendar.feishu.cn

type PatchCalendarResp

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

func (*PatchCalendarResp) Success

func (resp *PatchCalendarResp) Success() bool

type PatchCalendarRespData

type PatchCalendarRespData struct {
	Calendar *Calendar `json:"calendar,omitempty"` // 更新后的日历实体
}

type PrimaryCalendarReq

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

type PrimaryCalendarReqBuilder

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

func NewPrimaryCalendarReqBuilder

func NewPrimaryCalendarReqBuilder() *PrimaryCalendarReqBuilder

func (*PrimaryCalendarReqBuilder) Build

func (*PrimaryCalendarReqBuilder) UserIdType

func (builder *PrimaryCalendarReqBuilder) UserIdType(userIdType string) *PrimaryCalendarReqBuilder

此次调用中使用的用户ID的类型

示例值:

type PrimaryCalendarResp

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

func (*PrimaryCalendarResp) Success

func (resp *PrimaryCalendarResp) Success() bool

type PrimaryCalendarRespData

type PrimaryCalendarRespData struct {
	Calendars []*UserCalendar `json:"calendars,omitempty"` // 主日历列表
}

type Reminder

type Reminder struct {
	Minutes *int `json:"minutes,omitempty"` // 日程提醒时间的偏移量,正数时表示在日程开始前X分钟提醒,负数时表示在日程开始后X分钟提醒;新建或更新日程时传入该字段,仅对当前身份生效
}

type ReminderBuilder

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

func NewReminderBuilder

func NewReminderBuilder() *ReminderBuilder

func (*ReminderBuilder) Build

func (builder *ReminderBuilder) Build() *Reminder

func (*ReminderBuilder) Minutes

func (builder *ReminderBuilder) Minutes(minutes int) *ReminderBuilder

日程提醒时间的偏移量,正数时表示在日程开始前X分钟提醒,负数时表示在日程开始后X分钟提醒;新建或更新日程时传入该字段,仅对当前身份生效

示例值:5

type ReplyCalendarEventPathReqBodyBuilder added in v3.1.2

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

func NewReplyCalendarEventPathReqBodyBuilder added in v3.1.2

func NewReplyCalendarEventPathReqBodyBuilder() *ReplyCalendarEventPathReqBodyBuilder

func (*ReplyCalendarEventPathReqBodyBuilder) Build added in v3.1.2

func (*ReplyCalendarEventPathReqBodyBuilder) RsvpStatus added in v3.1.2

rsvp状态

示例值:accept

type ReplyCalendarEventReq added in v3.1.2

type ReplyCalendarEventReq struct {
	Body *ReplyCalendarEventReqBody `body:""`
	// contains filtered or unexported fields
}

type ReplyCalendarEventReqBody added in v3.1.2

type ReplyCalendarEventReqBody struct {
	RsvpStatus *string `json:"rsvp_status,omitempty"` // rsvp状态
}

type ReplyCalendarEventReqBodyBuilder added in v3.1.2

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

func NewReplyCalendarEventReqBodyBuilder added in v3.1.2

func NewReplyCalendarEventReqBodyBuilder() *ReplyCalendarEventReqBodyBuilder

func (*ReplyCalendarEventReqBodyBuilder) Build added in v3.1.2

func (*ReplyCalendarEventReqBodyBuilder) RsvpStatus added in v3.1.2

rsvp状态

示例值:accept

type ReplyCalendarEventReqBuilder added in v3.1.2

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

func NewReplyCalendarEventReqBuilder added in v3.1.2

func NewReplyCalendarEventReqBuilder() *ReplyCalendarEventReqBuilder

func (*ReplyCalendarEventReqBuilder) Body added in v3.1.2

func (*ReplyCalendarEventReqBuilder) Build added in v3.1.2

func (*ReplyCalendarEventReqBuilder) CalendarId added in v3.1.2

func (builder *ReplyCalendarEventReqBuilder) CalendarId(calendarId string) *ReplyCalendarEventReqBuilder

日历资源ID

示例值:feishu.cn_HF9U2MbibE8PPpjro6xjqa@group.calendar.feishu.cn

func (*ReplyCalendarEventReqBuilder) EventId added in v3.1.2

日程资源ID

示例值:75d28f9b-e35c-4230-8a83-4a661497db54_0

type ReplyCalendarEventResp added in v3.1.2

type ReplyCalendarEventResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*ReplyCalendarEventResp) Success added in v3.1.2

func (resp *ReplyCalendarEventResp) Success() bool

type RoomMeta added in v3.0.25

type RoomMeta struct {
	Name   *string `json:"name,omitempty"`    // 会议室名称
	RoomId *string `json:"room_id,omitempty"` // 会议室ID
}

type RoomMetaBuilder added in v3.0.25

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

func NewRoomMetaBuilder added in v3.0.25

func NewRoomMetaBuilder() *RoomMetaBuilder

func (*RoomMetaBuilder) Build added in v3.0.25

func (builder *RoomMetaBuilder) Build() *RoomMeta

func (*RoomMetaBuilder) Name added in v3.0.25

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

会议室名称

示例值:none

func (*RoomMetaBuilder) RoomId added in v3.0.25

func (builder *RoomMetaBuilder) RoomId(roomId string) *RoomMetaBuilder

会议室ID

示例值:none

type Schema

type Schema struct {
	UiName   *string `json:"ui_name,omitempty"`   // UI名称。取值范围如下: ;- ForwardIcon: 日程转发按钮 ;- MeetingChatIcon: 会议群聊按钮 ;- MeetingMinutesIcon: 会议纪要按钮 ;- MeetingVideo: 视频会议区域 ;- RSVP: 接受/拒绝/待定区域 ;- Attendee: 参与者区域 ;- OrganizerOrCreator: 组织者/创建者区域
	UiStatus *string `json:"ui_status,omitempty"` // UI项自定义状态。**目前只支持hide**
	AppLink  *string `json:"app_link,omitempty"`  // 按钮点击后跳转的链接; **该字段暂不支持传入。**
}

type SchemaBuilder

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

func NewSchemaBuilder

func NewSchemaBuilder() *SchemaBuilder
func (builder *SchemaBuilder) AppLink(appLink string) *SchemaBuilder

按钮点击后跳转的链接; **该字段暂不支持传入。**

示例值:https://applink.feishu.cn/client/calendar/event/detail?calendarId=xxxxxx&key=xxxxxx&originalTime=xxxxxx&startTime=xxxxxx

func (*SchemaBuilder) Build

func (builder *SchemaBuilder) Build() *Schema

func (*SchemaBuilder) UiName

func (builder *SchemaBuilder) UiName(uiName string) *SchemaBuilder

UI名称。取值范围如下: ;- ForwardIcon: 日程转发按钮 ;- MeetingChatIcon: 会议群聊按钮 ;- MeetingMinutesIcon: 会议纪要按钮 ;- MeetingVideo: 视频会议区域 ;- RSVP: 接受/拒绝/待定区域 ;- Attendee: 参与者区域 ;- OrganizerOrCreator: 组织者/创建者区域

示例值:ForwardIcon

func (*SchemaBuilder) UiStatus

func (builder *SchemaBuilder) UiStatus(uiStatus string) *SchemaBuilder

UI项自定义状态。**目前只支持hide**

示例值:hide

type SearchCalendarEventIterator

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

func (*SearchCalendarEventIterator) Next

func (iterator *SearchCalendarEventIterator) Next() (bool, *CalendarEvent, error)

func (*SearchCalendarEventIterator) NextPageToken

func (iterator *SearchCalendarEventIterator) NextPageToken() *string

type SearchCalendarEventPathReqBodyBuilder

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

func NewSearchCalendarEventPathReqBodyBuilder

func NewSearchCalendarEventPathReqBodyBuilder() *SearchCalendarEventPathReqBodyBuilder

func (*SearchCalendarEventPathReqBodyBuilder) Build

func (*SearchCalendarEventPathReqBodyBuilder) Filter

搜索过滤器

示例值:

func (*SearchCalendarEventPathReqBodyBuilder) Query

搜索关键字

示例值:query words

type SearchCalendarEventReq

type SearchCalendarEventReq struct {
	Body  *SearchCalendarEventReqBody `body:""`
	Limit int                         // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type SearchCalendarEventReqBody

type SearchCalendarEventReqBody struct {
	Query  *string            `json:"query,omitempty"`  // 搜索关键字
	Filter *EventSearchFilter `json:"filter,omitempty"` // 搜索过滤器
}

type SearchCalendarEventReqBodyBuilder

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

func NewSearchCalendarEventReqBodyBuilder

func NewSearchCalendarEventReqBodyBuilder() *SearchCalendarEventReqBodyBuilder

func (*SearchCalendarEventReqBodyBuilder) Build

func (*SearchCalendarEventReqBodyBuilder) Filter

搜索过滤器

示例值:

func (*SearchCalendarEventReqBodyBuilder) Query

搜索关键字

示例值:query words

type SearchCalendarEventReqBuilder

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

func NewSearchCalendarEventReqBuilder

func NewSearchCalendarEventReqBuilder() *SearchCalendarEventReqBuilder

func (*SearchCalendarEventReqBuilder) Body

该接口用于以用户身份搜索某日历下的相关日程。;;身份由 Header Authorization 的 Token 类型决定。

func (*SearchCalendarEventReqBuilder) Build

func (*SearchCalendarEventReqBuilder) CalendarId

func (builder *SearchCalendarEventReqBuilder) CalendarId(calendarId string) *SearchCalendarEventReqBuilder

日历ID。参见[日历ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/introduction)

示例值:feishu.cn_xxxxxxxxxx@group.calendar.feishu.cn

func (*SearchCalendarEventReqBuilder) Limit

最大返回多少记录,当使用迭代器访问时才有效

func (*SearchCalendarEventReqBuilder) PageSize

分页大小

示例值:10

func (*SearchCalendarEventReqBuilder) PageToken

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该page_token 获取查询结果

示例值:xxxxx

func (*SearchCalendarEventReqBuilder) UserIdType

func (builder *SearchCalendarEventReqBuilder) UserIdType(userIdType string) *SearchCalendarEventReqBuilder

此次调用中使用的用户ID的类型

示例值:

type SearchCalendarEventResp

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

func (*SearchCalendarEventResp) Success

func (resp *SearchCalendarEventResp) Success() bool

type SearchCalendarEventRespData

type SearchCalendarEventRespData struct {
	Items     []*CalendarEvent `json:"items,omitempty"`      // 搜索命中的日程列表
	PageToken *string          `json:"page_token,omitempty"` // 下次请求需要带上的分页标记
}

type SearchCalendarIterator

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

func (*SearchCalendarIterator) Next

func (iterator *SearchCalendarIterator) Next() (bool, *Calendar, error)

func (*SearchCalendarIterator) NextPageToken

func (iterator *SearchCalendarIterator) NextPageToken() *string

type SearchCalendarPathReqBodyBuilder

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

func NewSearchCalendarPathReqBodyBuilder

func NewSearchCalendarPathReqBodyBuilder() *SearchCalendarPathReqBodyBuilder

func (*SearchCalendarPathReqBodyBuilder) Build

func (*SearchCalendarPathReqBodyBuilder) Query

搜索关键字

示例值:query words

type SearchCalendarReq

type SearchCalendarReq struct {
	Body  *SearchCalendarReqBody `body:""`
	Limit int                    // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type SearchCalendarReqBody

type SearchCalendarReqBody struct {
	Query *string `json:"query,omitempty"` // 搜索关键字
}

type SearchCalendarReqBodyBuilder

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

func NewSearchCalendarReqBodyBuilder

func NewSearchCalendarReqBodyBuilder() *SearchCalendarReqBodyBuilder

func (*SearchCalendarReqBodyBuilder) Build

func (*SearchCalendarReqBodyBuilder) Query

搜索关键字

示例值:query words

type SearchCalendarReqBuilder

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

func NewSearchCalendarReqBuilder

func NewSearchCalendarReqBuilder() *SearchCalendarReqBuilder

func (*SearchCalendarReqBuilder) Body

该接口用于通过关键字查询公共日历或用户主日历。

func (*SearchCalendarReqBuilder) Build

func (builder *SearchCalendarReqBuilder) Build() *SearchCalendarReq

func (*SearchCalendarReqBuilder) Limit

func (builder *SearchCalendarReqBuilder) Limit(limit int) *SearchCalendarReqBuilder

最大返回多少记录,当使用迭代器访问时才有效

func (*SearchCalendarReqBuilder) PageSize

func (builder *SearchCalendarReqBuilder) PageSize(pageSize int) *SearchCalendarReqBuilder

分页大小

示例值:10

func (*SearchCalendarReqBuilder) PageToken

func (builder *SearchCalendarReqBuilder) PageToken(pageToken string) *SearchCalendarReqBuilder

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该page_token 获取查询结果

示例值:10

type SearchCalendarResp

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

func (*SearchCalendarResp) Success

func (resp *SearchCalendarResp) Success() bool

type SearchCalendarRespData

type SearchCalendarRespData struct {
	Items     []*Calendar `json:"items,omitempty"`      // 搜索命中的日历列表
	PageToken *string     `json:"page_token,omitempty"` // 下次请求需要带上的分页标记
}

type SearchEventData added in v3.1.2

type SearchEventData struct {
	Events []*EventBriefInfoAi `json:"events,omitempty"` // 日程列表
	Msg    *string             `json:"msg,omitempty"`    // 返回给prompt展示内容
}

type SearchEventDataBuilder added in v3.1.2

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

func NewSearchEventDataBuilder added in v3.1.2

func NewSearchEventDataBuilder() *SearchEventDataBuilder

func (*SearchEventDataBuilder) Build added in v3.1.2

func (builder *SearchEventDataBuilder) Build() *SearchEventData

func (*SearchEventDataBuilder) Events added in v3.1.2

日程列表

示例值:

func (*SearchEventDataBuilder) Msg added in v3.1.3

返回给prompt展示内容

示例值:帮我展示卡片消息

type SearchUserDataAi added in v3.1.2

type SearchUserDataAi struct {
	QueryKeyword *string   `json:"query_keyword,omitempty"` // 查询传入的单个Keyword
	UserInfo     *UserMeta `json:"user_info,omitempty"`     // 搜索到的用户信息
}

type SearchUserDataAiBuilder added in v3.1.2

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

func NewSearchUserDataAiBuilder added in v3.1.2

func NewSearchUserDataAiBuilder() *SearchUserDataAiBuilder

func (*SearchUserDataAiBuilder) Build added in v3.1.2

func (builder *SearchUserDataAiBuilder) Build() *SearchUserDataAi

func (*SearchUserDataAiBuilder) QueryKeyword added in v3.1.2

func (builder *SearchUserDataAiBuilder) QueryKeyword(queryKeyword string) *SearchUserDataAiBuilder

查询传入的单个Keyword

示例值:UserName

func (*SearchUserDataAiBuilder) UserInfo added in v3.1.2

func (builder *SearchUserDataAiBuilder) UserInfo(userInfo *UserMeta) *SearchUserDataAiBuilder

搜索到的用户信息

示例值:

type SearchUserResultAi added in v3.1.2

type SearchUserResultAi struct {
	SearchResults []*SearchUserDataAi `json:"search_results,omitempty"` // 搜索结果
}

type SearchUserResultAiBuilder added in v3.1.2

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

func NewSearchUserResultAiBuilder added in v3.1.2

func NewSearchUserResultAiBuilder() *SearchUserResultAiBuilder

func (*SearchUserResultAiBuilder) Build added in v3.1.2

func (*SearchUserResultAiBuilder) SearchResults added in v3.1.2

func (builder *SearchUserResultAiBuilder) SearchResults(searchResults []*SearchUserDataAi) *SearchUserResultAiBuilder

搜索结果

示例值:

type Setting

type Setting struct {
}

type SubscribeCalendarReq

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

type SubscribeCalendarReqBuilder

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

func NewSubscribeCalendarReqBuilder

func NewSubscribeCalendarReqBuilder() *SubscribeCalendarReqBuilder

func (*SubscribeCalendarReqBuilder) Build

func (*SubscribeCalendarReqBuilder) CalendarId

func (builder *SubscribeCalendarReqBuilder) CalendarId(calendarId string) *SubscribeCalendarReqBuilder

日历ID。参见[日历ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/introduction)

示例值:feishu.cn_xxxxxxxxxx@group.calendar.feishu.cn

type SubscribeCalendarResp

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

func (*SubscribeCalendarResp) Success

func (resp *SubscribeCalendarResp) Success() bool

type SubscribeCalendarRespData

type SubscribeCalendarRespData struct {
	Calendar *Calendar `json:"calendar,omitempty"` // 订阅的日历实体
}

type SubscriptionCalendarAclReq

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

type SubscriptionCalendarAclReqBuilder

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

func NewSubscriptionCalendarAclReqBuilder

func NewSubscriptionCalendarAclReqBuilder() *SubscriptionCalendarAclReqBuilder

func (*SubscriptionCalendarAclReqBuilder) Build

func (*SubscriptionCalendarAclReqBuilder) CalendarId

日历ID。参见[日历ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/introduction)

示例值:feishu.cn_xxxxxxxxxx@group.calendar.feishu.cn

type SubscriptionCalendarAclResp

type SubscriptionCalendarAclResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*SubscriptionCalendarAclResp) Success

func (resp *SubscriptionCalendarAclResp) Success() bool

type SubscriptionCalendarEventReq

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

type SubscriptionCalendarEventReqBuilder

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

func NewSubscriptionCalendarEventReqBuilder

func NewSubscriptionCalendarEventReqBuilder() *SubscriptionCalendarEventReqBuilder

func (*SubscriptionCalendarEventReqBuilder) Build

func (*SubscriptionCalendarEventReqBuilder) CalendarId

日历ID。参见[日历ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/introduction)

示例值:feishu.cn_xxxxxxxxxx@group.calendar.feishu.cn

type SubscriptionCalendarEventResp

type SubscriptionCalendarEventResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*SubscriptionCalendarEventResp) Success

func (resp *SubscriptionCalendarEventResp) Success() bool

type SubscriptionCalendarResp

type SubscriptionCalendarResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*SubscriptionCalendarResp) Success

func (resp *SubscriptionCalendarResp) Success() bool

type SystemInfo added in v3.1.2

type SystemInfo struct {
	SessionId *string `json:"session_id,omitempty"` // session_id
}

type SystemInfoBuilder added in v3.1.2

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

func NewSystemInfoBuilder added in v3.1.2

func NewSystemInfoBuilder() *SystemInfoBuilder

func (*SystemInfoBuilder) Build added in v3.1.2

func (builder *SystemInfoBuilder) Build() *SystemInfo

func (*SystemInfoBuilder) SessionId added in v3.1.2

func (builder *SystemInfoBuilder) SessionId(sessionId string) *SystemInfoBuilder

session_id

示例值:56786545678765456785345678

type TimeInfo

type TimeInfo struct {
	Date      *string `json:"date,omitempty"`      // 仅全天日程使用该字段,如2018-09-01。需满足 RFC3339 格式。不能与 timestamp 同时指定
	Timestamp *string `json:"timestamp,omitempty"` // 秒级时间戳,如1602504000(表示2020/10/12 20:0:00 +8时区)
	Timezone  *string `json:"timezone,omitempty"`  // 时区名称,使用IANA Time Zone Database标准,如Asia/Shanghai;全天日程时区固定为UTC,非全天日程时区默认为Asia/Shanghai
}

type TimeInfoBuilder

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

func NewTimeInfoBuilder

func NewTimeInfoBuilder() *TimeInfoBuilder

func (*TimeInfoBuilder) Build

func (builder *TimeInfoBuilder) Build() *TimeInfo

func (*TimeInfoBuilder) Date

func (builder *TimeInfoBuilder) Date(date string) *TimeInfoBuilder

仅全天日程使用该字段,如2018-09-01。需满足 RFC3339 格式。不能与 timestamp 同时指定

示例值:2018-09-01

func (*TimeInfoBuilder) Timestamp

func (builder *TimeInfoBuilder) Timestamp(timestamp string) *TimeInfoBuilder

秒级时间戳,如1602504000(表示2020/10/12 20:0:00 +8时区)

示例值:1602504000

func (*TimeInfoBuilder) Timezone

func (builder *TimeInfoBuilder) Timezone(timezone string) *TimeInfoBuilder

时区名称,使用IANA Time Zone Database标准,如Asia/Shanghai;全天日程时区固定为UTC,非全天日程时区默认为Asia/Shanghai

示例值:Asia/Shanghai

type TimeSpan added in v3.0.31

type TimeSpan struct {
	StartTime *string `json:"start_time,omitempty"` // 空闲时间-开始时间
	EndTime   *string `json:"end_time,omitempty"`   // 空闲时间-结束时间
}

type TimeSpanBuilder added in v3.0.31

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

func NewTimeSpanBuilder added in v3.0.31

func NewTimeSpanBuilder() *TimeSpanBuilder

func (*TimeSpanBuilder) Build added in v3.0.31

func (builder *TimeSpanBuilder) Build() *TimeSpan

func (*TimeSpanBuilder) EndTime added in v3.0.31

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

空闲时间-结束时间

示例值:none

func (*TimeSpanBuilder) StartTime added in v3.0.31

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

空闲时间-开始时间

示例值:none

type TimeoffEvent

type TimeoffEvent struct {
	TimeoffEventId *string `json:"timeoff_event_id,omitempty"` // 请假日程ID。参见[请假日程ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/timeoff_event/introduction#b6611a02)
	UserId         *string `json:"user_id,omitempty"`          // 用户id,参见[用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction)
	Timezone       *string `json:"timezone,omitempty"`         // 时区
	StartTime      *string `json:"start_time,omitempty"`       // 休假开始时间:;有时间戳(1609430400)和日期(2021-01-01)两种格式,其它格式无效;;时间戳格式是按小时休假日程,日期格式是全天休假日程;;start_time与end_time格式需保持一致,否则无效。
	EndTime        *string `json:"end_time,omitempty"`         // 休假结束时间:;有时间戳(1609430400)和日期(2021-01-01)两种格式,其它格式无效;;时间戳格式是按小时休假日程,日期格式是全天休假日程;;start_time与end_time格式需保持一致,否则无效。
	Title          *string `json:"title,omitempty"`            // 自定义请假日程标题,没有设置则为默认日程标题
	Description    *string `json:"description,omitempty"`      // 自定义请假日程描述,没有设置则为默认日程描述
}

type TimeoffEventBuilder

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

func NewTimeoffEventBuilder

func NewTimeoffEventBuilder() *TimeoffEventBuilder

func (*TimeoffEventBuilder) Build

func (builder *TimeoffEventBuilder) Build() *TimeoffEvent

func (*TimeoffEventBuilder) Description

func (builder *TimeoffEventBuilder) Description(description string) *TimeoffEventBuilder

自定义请假日程描述,没有设置则为默认日程描述

示例值:若删除此日程,飞书中相应的“请假”标签将自动消失,而请假系统中的休假申请不会被撤销。

func (*TimeoffEventBuilder) EndTime

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

休假结束时间:;有时间戳(1609430400)和日期(2021-01-01)两种格式,其它格式无效;;时间戳格式是按小时休假日程,日期格式是全天休假日程;;start_time与end_time格式需保持一致,否则无效。

示例值:2021-01-01

func (*TimeoffEventBuilder) StartTime

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

休假开始时间:;有时间戳(1609430400)和日期(2021-01-01)两种格式,其它格式无效;;时间戳格式是按小时休假日程,日期格式是全天休假日程;;start_time与end_time格式需保持一致,否则无效。

示例值:2021-01-01

func (*TimeoffEventBuilder) TimeoffEventId

func (builder *TimeoffEventBuilder) TimeoffEventId(timeoffEventId string) *TimeoffEventBuilder

请假日程ID。参见[请假日程ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/timeoff_event/introduction#b6611a02)

示例值:timeoff:XXXXXX-XXXX-0917-1623-aa493d591a39-XXXXXX

func (*TimeoffEventBuilder) Timezone

func (builder *TimeoffEventBuilder) Timezone(timezone string) *TimeoffEventBuilder

时区

示例值:Asia/Shanghai

func (*TimeoffEventBuilder) Title

func (builder *TimeoffEventBuilder) Title(title string) *TimeoffEventBuilder

自定义请假日程标题,没有设置则为默认日程标题

示例值:请假中(全天) / 1-Day Time Off

func (*TimeoffEventBuilder) UserId

func (builder *TimeoffEventBuilder) UserId(userId string) *TimeoffEventBuilder

用户id,参见[用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction)

示例值:ou_XXXXXXXXXX

type UnsubscribeCalendarReq

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

type UnsubscribeCalendarReqBuilder

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

func NewUnsubscribeCalendarReqBuilder

func NewUnsubscribeCalendarReqBuilder() *UnsubscribeCalendarReqBuilder

func (*UnsubscribeCalendarReqBuilder) Build

func (*UnsubscribeCalendarReqBuilder) CalendarId

func (builder *UnsubscribeCalendarReqBuilder) CalendarId(calendarId string) *UnsubscribeCalendarReqBuilder

日历ID。参见[日历ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/introduction)

示例值:feishu.cn_xxxxxxxxxx@group.calendar.feishu.cn

type UnsubscribeCalendarResp

type UnsubscribeCalendarResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*UnsubscribeCalendarResp) Success

func (resp *UnsubscribeCalendarResp) Success() bool

type UnsubscriptionCalendarAclReq added in v3.0.1

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

type UnsubscriptionCalendarAclReqBuilder added in v3.0.1

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

func NewUnsubscriptionCalendarAclReqBuilder added in v3.0.1

func NewUnsubscriptionCalendarAclReqBuilder() *UnsubscriptionCalendarAclReqBuilder

func (*UnsubscriptionCalendarAclReqBuilder) Build added in v3.0.1

func (*UnsubscriptionCalendarAclReqBuilder) CalendarId added in v3.0.1

日历ID。参见[日历ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/introduction)

示例值:feishu.cn_xxxxxxxxxx@group.calendar.feishu.cn

type UnsubscriptionCalendarAclResp added in v3.0.1

type UnsubscriptionCalendarAclResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*UnsubscriptionCalendarAclResp) Success added in v3.0.1

func (resp *UnsubscriptionCalendarAclResp) Success() bool

type UnsubscriptionCalendarEventReq added in v3.0.1

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

type UnsubscriptionCalendarEventReqBuilder added in v3.0.1

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

func NewUnsubscriptionCalendarEventReqBuilder added in v3.0.1

func NewUnsubscriptionCalendarEventReqBuilder() *UnsubscriptionCalendarEventReqBuilder

func (*UnsubscriptionCalendarEventReqBuilder) Build added in v3.0.1

func (*UnsubscriptionCalendarEventReqBuilder) CalendarId added in v3.0.1

日历ID。参见[日历ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/introduction)

示例值:feishu.cn_xxxxxxxxxx@group.calendar.feishu.cn

type UnsubscriptionCalendarEventResp added in v3.0.1

type UnsubscriptionCalendarEventResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*UnsubscriptionCalendarEventResp) Success added in v3.0.1

func (resp *UnsubscriptionCalendarEventResp) Success() bool

type UnsubscriptionCalendarResp added in v3.0.1

type UnsubscriptionCalendarResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*UnsubscriptionCalendarResp) Success added in v3.0.1

func (resp *UnsubscriptionCalendarResp) Success() bool

type UserCalendar

type UserCalendar struct {
	Calendar *Calendar `json:"calendar,omitempty"` // 日历实体信息
	UserId   *string   `json:"user_id,omitempty"`  // 日历的创建者user ID,参见[用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction)
}

type UserCalendarBuilder

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

func NewUserCalendarBuilder

func NewUserCalendarBuilder() *UserCalendarBuilder

func (*UserCalendarBuilder) Build

func (builder *UserCalendarBuilder) Build() *UserCalendar

func (*UserCalendarBuilder) Calendar

func (builder *UserCalendarBuilder) Calendar(calendar *Calendar) *UserCalendarBuilder

日历实体信息

示例值:

func (*UserCalendarBuilder) UserId

func (builder *UserCalendarBuilder) UserId(userId string) *UserCalendarBuilder

日历的创建者user ID,参见[用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction)

示例值:ou_xxxxxx

type UserFreebusy added in v3.0.34

type UserFreebusy struct {
	FreebusyItems []*Freebusy `json:"freebusy_items,omitempty"` // 日历上请求时间区间内的忙闲信息
	UserId        *string     `json:"user_id,omitempty"`        // 日历的创建者userID
}

type UserFreebusyBuilder added in v3.0.34

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

func NewUserFreebusyBuilder added in v3.0.34

func NewUserFreebusyBuilder() *UserFreebusyBuilder

func (*UserFreebusyBuilder) Build added in v3.0.34

func (builder *UserFreebusyBuilder) Build() *UserFreebusy

func (*UserFreebusyBuilder) FreebusyItems added in v3.0.34

func (builder *UserFreebusyBuilder) FreebusyItems(freebusyItems []*Freebusy) *UserFreebusyBuilder

日历上请求时间区间内的忙闲信息

示例值:

func (*UserFreebusyBuilder) UserId added in v3.0.34

func (builder *UserFreebusyBuilder) UserId(userId string) *UserFreebusyBuilder

日历的创建者userID

示例值:

type UserId

type UserId struct {
	UserId  *string `json:"user_id,omitempty"`  //
	OpenId  *string `json:"open_id,omitempty"`  //
	UnionId *string `json:"union_id,omitempty"` //
}

type UserIdBuilder

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

func NewUserIdBuilder

func NewUserIdBuilder() *UserIdBuilder

func (*UserIdBuilder) Build

func (builder *UserIdBuilder) Build() *UserId

func (*UserIdBuilder) OpenId

func (builder *UserIdBuilder) OpenId(openId string) *UserIdBuilder

示例值:

func (*UserIdBuilder) UnionId

func (builder *UserIdBuilder) UnionId(unionId string) *UserIdBuilder

示例值:

func (*UserIdBuilder) UserId

func (builder *UserIdBuilder) UserId(userId string) *UserIdBuilder

示例值:

type UserMeta added in v3.0.34

type UserMeta struct {
	Name   *string `json:"name,omitempty"`    // 用户名称
	UserId *string `json:"user_id,omitempty"` // 用户ID
}

type UserMetaBuilder added in v3.0.34

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

func NewUserMetaBuilder added in v3.0.34

func NewUserMetaBuilder() *UserMetaBuilder

func (*UserMetaBuilder) Build added in v3.0.34

func (builder *UserMetaBuilder) Build() *UserMeta

func (*UserMetaBuilder) Name added in v3.0.34

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

用户名称

示例值:none

func (*UserMetaBuilder) UserId added in v3.0.34

func (builder *UserMetaBuilder) UserId(userId string) *UserMetaBuilder

用户ID

示例值:none

type V4 added in v3.1.0

type V4 struct {
	Calendar                        *calendar                        // 日历管理
	CalendarAcl                     *calendarAcl                     // 日历访问控制
	CalendarEvent                   *calendarEvent                   // 日程
	CalendarEventAttendee           *calendarEventAttendee           // 日程参与人
	CalendarEventAttendeeChatMember *calendarEventAttendeeChatMember // 日程参与人群成员
	CalendarEventMeetingChat        *calendarEventMeetingChat        // calendar.event.meeting_chat
	ExchangeBinding                 *exchangeBinding                 // Exchange绑定
	Freebusy                        *freebusy                        // freebusy
	Setting                         *setting                         // 日历设置
	TimeoffEvent                    *timeoffEvent                    // 请假
}

func New added in v3.1.0

func New(config *larkcore.Config) *V4

type VcInfo added in v3.0.22

type VcInfo struct {
	UniqueId  *string `json:"unique_id,omitempty"`  // 会议唯一ID
	MeetingNo *string `json:"meeting_no,omitempty"` // 会议号
}

type VcInfoBuilder added in v3.0.22

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

func NewVcInfoBuilder added in v3.0.22

func NewVcInfoBuilder() *VcInfoBuilder

func (*VcInfoBuilder) Build added in v3.0.22

func (builder *VcInfoBuilder) Build() *VcInfo

func (*VcInfoBuilder) MeetingNo added in v3.0.22

func (builder *VcInfoBuilder) MeetingNo(meetingNo string) *VcInfoBuilder

会议号

示例值:808056935

func (*VcInfoBuilder) UniqueId added in v3.0.22

func (builder *VcInfoBuilder) UniqueId(uniqueId string) *VcInfoBuilder

会议唯一ID

示例值:7226647229510582291

type Vchat

type Vchat struct {
	VcType      *string `json:"vc_type,omitempty"`     // 视频会议类型
	IconType    *string `json:"icon_type,omitempty"`   // 第三方视频会议icon类型;可以为空,为空展示默认icon。
	Description *string `json:"description,omitempty"` // 第三方视频会议文案,可以为空,为空展示默认文案
	MeetingUrl  *string `json:"meeting_url,omitempty"` // 视频会议URL

	MeetingSettings *MeetingSettings `json:"meeting_settings,omitempty"` // VC视频会议的会前设置
}

type VchatBuilder

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

func NewVchatBuilder

func NewVchatBuilder() *VchatBuilder

func (*VchatBuilder) Build

func (builder *VchatBuilder) Build() *Vchat

func (*VchatBuilder) Description

func (builder *VchatBuilder) Description(description string) *VchatBuilder

第三方视频会议文案,可以为空,为空展示默认文案

示例值:发起视频会议

func (*VchatBuilder) IconType

func (builder *VchatBuilder) IconType(iconType string) *VchatBuilder

第三方视频会议icon类型;可以为空,为空展示默认icon。

示例值:vc

func (*VchatBuilder) MeetingSettings added in v3.0.25

func (builder *VchatBuilder) MeetingSettings(meetingSettings *MeetingSettings) *VchatBuilder

VC视频会议的会前设置

示例值:

func (*VchatBuilder) MeetingUrl

func (builder *VchatBuilder) MeetingUrl(meetingUrl string) *VchatBuilder

视频会议URL

示例值:https://example.com

func (*VchatBuilder) VcType

func (builder *VchatBuilder) VcType(vcType string) *VchatBuilder

视频会议类型

示例值:third_party

type Workhour added in v3.0.34

type Workhour struct {
	DayOfWeek *int `json:"day_of_week,omitempty"` // 工作日,定义每周的星期几为工作日.枚举值 0-6 代表 周日-周六
	StartTime *int `json:"start_time,omitempty"`  // 工作时间的开始时间,单位为分钟,取值 0 - 1440
	EndTime   *int `json:"end_time,omitempty"`    // 工作时间的结束时间,单位为分钟,取值 start_time - 1440
}

type WorkhourBuilder added in v3.0.34

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

func NewWorkhourBuilder added in v3.0.34

func NewWorkhourBuilder() *WorkhourBuilder

func (*WorkhourBuilder) Build added in v3.0.34

func (builder *WorkhourBuilder) Build() *Workhour

func (*WorkhourBuilder) DayOfWeek added in v3.0.34

func (builder *WorkhourBuilder) DayOfWeek(dayOfWeek int) *WorkhourBuilder

工作日,定义每周的星期几为工作日.枚举值 0-6 代表 周日-周六

示例值:1

func (*WorkhourBuilder) EndTime added in v3.0.34

func (builder *WorkhourBuilder) EndTime(endTime int) *WorkhourBuilder

工作时间的结束时间,单位为分钟,取值 start_time - 1440

示例值:1020

func (*WorkhourBuilder) StartTime added in v3.0.34

func (builder *WorkhourBuilder) StartTime(startTime int) *WorkhourBuilder

工作时间的开始时间,单位为分钟,取值 0 - 1440

示例值:480

type WorkhourSetting added in v3.0.34

type WorkhourSetting struct {
	Timezone       *string     `json:"timezone,omitempty"`         // 用户设置的对外展示时区
	Workhours      []*Workhour `json:"workhours,omitempty"`        // 工作时间设置
	EnableWorkHour *bool       `json:"enable_work_hour,omitempty"` // 用户是否启用工作时间设置
	UserId         *string     `json:"user_id,omitempty"`          // 用户user id
}

type WorkhourSettingBuilder added in v3.0.34

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

func NewWorkhourSettingBuilder added in v3.0.34

func NewWorkhourSettingBuilder() *WorkhourSettingBuilder

func (*WorkhourSettingBuilder) Build added in v3.0.34

func (builder *WorkhourSettingBuilder) Build() *WorkhourSetting

func (*WorkhourSettingBuilder) EnableWorkHour added in v3.0.34

func (builder *WorkhourSettingBuilder) EnableWorkHour(enableWorkHour bool) *WorkhourSettingBuilder

用户是否启用工作时间设置

示例值:false

func (*WorkhourSettingBuilder) Timezone added in v3.0.34

func (builder *WorkhourSettingBuilder) Timezone(timezone string) *WorkhourSettingBuilder

用户设置的对外展示时区

示例值:Asia/Shanghai

func (*WorkhourSettingBuilder) UserId added in v3.0.34

func (builder *WorkhourSettingBuilder) UserId(userId string) *WorkhourSettingBuilder

用户user id

示例值:ou_xxxxxx

func (*WorkhourSettingBuilder) Workhours added in v3.0.34

func (builder *WorkhourSettingBuilder) Workhours(workhours []*Workhour) *WorkhourSettingBuilder

工作时间设置

示例值:

Jump to

Keyboard shortcuts

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