larktask

package
v3.2.9 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: MIT Imports: 6 Imported by: 9

Documentation

Index

Constants

View Source
const (
	UserIdTypeUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeBatchDeleteFollowerTaskUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeBatchDeleteFollowerTaskUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeBatchDeleteFollowerTaskOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeCreateTaskUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeCreateTaskUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeCreateTaskOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeGetTaskUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeGetTaskUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeGetTaskOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeListTaskUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeListTaskUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeListTaskOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypePatchTaskUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypePatchTaskUnionId = "union_id" // 以union_id来识别用户
	UserIdTypePatchTaskOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeCreateTaskCollaboratorUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeCreateTaskCollaboratorUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeCreateTaskCollaboratorOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeDeleteTaskCollaboratorUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeDeleteTaskCollaboratorUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeDeleteTaskCollaboratorOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeListTaskCollaboratorUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeListTaskCollaboratorUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeListTaskCollaboratorOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeCreateTaskCommentUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeCreateTaskCommentUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeCreateTaskCommentOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeGetTaskCommentUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeGetTaskCommentUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeGetTaskCommentOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	ListDirectionDown = 0 // 按照回复时间从小到大查询
	ListDirectionUp   = 1 // 按照回复时间从大到小查询

)
View Source
const (
	UserIdTypeListTaskCommentUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeListTaskCommentUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeListTaskCommentOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeUpdateTaskCommentUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeUpdateTaskCommentUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeUpdateTaskCommentOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeCreateTaskFollowerUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeCreateTaskFollowerUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeCreateTaskFollowerOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeDeleteTaskFollowerUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeDeleteTaskFollowerUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeDeleteTaskFollowerOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeListTaskFollowerUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeListTaskFollowerUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeListTaskFollowerOpenId  = "open_id"  // 以open_id来识别用户
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Attachment added in v3.0.18

type Attachment struct {
}

type Attatchment added in v3.0.18

type Attatchment struct {
	Guid *string `json:"guid,omitempty"` // 全局唯一ID
}

type AttatchmentBuilder added in v3.0.18

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

func NewAttatchmentBuilder added in v3.0.18

func NewAttatchmentBuilder() *AttatchmentBuilder

func (*AttatchmentBuilder) Build added in v3.0.18

func (builder *AttatchmentBuilder) Build() *Attatchment

func (*AttatchmentBuilder) Guid added in v3.0.18

func (builder *AttatchmentBuilder) Guid(guid string) *AttatchmentBuilder

全局唯一ID

示例值:dddd

type BatchDeleteCollaboratorTaskReq added in v3.0.1

type BatchDeleteCollaboratorTaskReq struct {
	Collaborator *Collaborator `body:""`
	// contains filtered or unexported fields
}

type BatchDeleteCollaboratorTaskReqBuilder added in v3.0.1

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

func NewBatchDeleteCollaboratorTaskReqBuilder added in v3.0.1

func NewBatchDeleteCollaboratorTaskReqBuilder() *BatchDeleteCollaboratorTaskReqBuilder

func (*BatchDeleteCollaboratorTaskReqBuilder) Build added in v3.0.1

func (*BatchDeleteCollaboratorTaskReqBuilder) Collaborator added in v3.0.1

该接口用于批量删除执行者

func (*BatchDeleteCollaboratorTaskReqBuilder) TaskId added in v3.0.1

任务ID

示例值:83912691-2e43-47fc-94a4-d512e03984fa

func (*BatchDeleteCollaboratorTaskReqBuilder) UserIdType added in v3.0.1

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

示例值:

type BatchDeleteCollaboratorTaskResp added in v3.0.1

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

func (*BatchDeleteCollaboratorTaskResp) Success added in v3.0.1

func (resp *BatchDeleteCollaboratorTaskResp) Success() bool

type BatchDeleteCollaboratorTaskRespData added in v3.0.1

type BatchDeleteCollaboratorTaskRespData struct {
	Collaborators []string `json:"collaborators,omitempty"` // 实际删除的执行人用户ID列表
}

type BatchDeleteFollowerTaskReq added in v3.0.1

type BatchDeleteFollowerTaskReq struct {
	Follower *Follower `body:""`
	// contains filtered or unexported fields
}

type BatchDeleteFollowerTaskReqBuilder added in v3.0.1

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

func NewBatchDeleteFollowerTaskReqBuilder added in v3.0.1

func NewBatchDeleteFollowerTaskReqBuilder() *BatchDeleteFollowerTaskReqBuilder

func (*BatchDeleteFollowerTaskReqBuilder) Build added in v3.0.1

func (*BatchDeleteFollowerTaskReqBuilder) Follower added in v3.0.1

该接口用于批量删除关注人

func (*BatchDeleteFollowerTaskReqBuilder) TaskId added in v3.0.1

任务ID

示例值:83912691-2e43-47fc-94a4-d512e03984fa

func (*BatchDeleteFollowerTaskReqBuilder) UserIdType added in v3.0.1

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

示例值:

type BatchDeleteFollowerTaskResp added in v3.0.1

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

func (*BatchDeleteFollowerTaskResp) Success added in v3.0.1

func (resp *BatchDeleteFollowerTaskResp) Success() bool

type BatchDeleteFollowerTaskRespData added in v3.0.1

type BatchDeleteFollowerTaskRespData struct {
	Followers []string `json:"followers,omitempty"` // 实际删除的关注人用户ID列表
}

type Collaborator

type Collaborator struct {
	Id     *string  `json:"id,omitempty"`      // 任务执行者的 ID。;传入的值为 user_id 或 open_id,由user_id_type 决定。user_id和open_id的获取可见文档[如何获取相关id](https://open.feishu.cn/document/home/user-identity-introduction/how-to-get)。;<md-alert>;已经废弃,为了向前兼容早期只支持单次添加一个人的情况而保留,但不再推荐使用,建议使用id_list字段;</md-alert>
	IdList []string `json:"id_list,omitempty"` // 执行者的用户ID列表。;传入的值为 user_id 或 open_id,由user_id_type 决定。user_id和open_id的获取可见文档[如何获取相关id](https://open.feishu.cn/document/home/user-identity-introduction/how-to-get)。
}

type CollaboratorBuilder

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

func NewCollaboratorBuilder

func NewCollaboratorBuilder() *CollaboratorBuilder

func (*CollaboratorBuilder) Build

func (builder *CollaboratorBuilder) Build() *Collaborator

func (*CollaboratorBuilder) Id

任务执行者的 ID。;传入的值为 user_id 或 open_id,由user_id_type 决定。user_id和open_id的获取可见文档[如何获取相关id](https://open.feishu.cn/document/home/user-identity-introduction/how-to-get)。;<md-alert>;已经废弃,为了向前兼容早期只支持单次添加一个人的情况而保留,但不再推荐使用,建议使用id_list字段;</md-alert>

示例值:ou_99e1a581b36ecc4862cbfbce473f1234

func (*CollaboratorBuilder) IdList added in v3.0.1

func (builder *CollaboratorBuilder) IdList(idList []string) *CollaboratorBuilder

执行者的用户ID列表。;传入的值为 user_id 或 open_id,由user_id_type 决定。user_id和open_id的获取可见文档[如何获取相关id](https://open.feishu.cn/document/home/user-identity-introduction/how-to-get)。

示例值:["ou_550cc75233d8b7b9fcbdad65f34433f4", "ou_d1e9d27cf3235b40ca9a67c67ef088b0"]

type Comment

type Comment struct {
	Content         *string `json:"content,omitempty"`           // 评论内容。;<md-alert>;评论内容和富文本评论内容同时存在时只使用富文本评论内容。;</md-alert>
	ParentId        *string `json:"parent_id,omitempty"`         // 评论的父ID,创建评论时若不为空则为某条评论的回复,若为空则不是回复
	Id              *string `json:"id,omitempty"`                // 评论ID,由飞书服务器发号
	CreateMilliTime *string `json:"create_milli_time,omitempty"` // 评论创建的时间戳,单位为毫秒,用于展示,创建时不用填写
	RichContent     *string `json:"rich_content,omitempty"`      // 富文本评论内容。语法格式参见[Markdown模块](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/task-v1/markdown-module)
	CreatorId       *string `json:"creator_id,omitempty"`        // 评论的创建者 ID。在创建评论时无需填充该字段
}

type CommentBuilder

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

func NewCommentBuilder

func NewCommentBuilder() *CommentBuilder

func (*CommentBuilder) Build

func (builder *CommentBuilder) Build() *Comment

func (*CommentBuilder) Content

func (builder *CommentBuilder) Content(content string) *CommentBuilder

评论内容。;<md-alert>;评论内容和富文本评论内容同时存在时只使用富文本评论内容。;</md-alert>

示例值:举杯邀明月,对影成三人

func (*CommentBuilder) CreateMilliTime added in v3.0.1

func (builder *CommentBuilder) CreateMilliTime(createMilliTime string) *CommentBuilder

评论创建的时间戳,单位为毫秒,用于展示,创建时不用填写

示例值:1657075055135

func (*CommentBuilder) CreatorId added in v3.0.10

func (builder *CommentBuilder) CreatorId(creatorId string) *CommentBuilder

评论的创建者 ID。在创建评论时无需填充该字段

示例值:ou_99e1a581b36ecc4862cbfbce473f346a

func (*CommentBuilder) Id

func (builder *CommentBuilder) Id(id string) *CommentBuilder

评论ID,由飞书服务器发号

示例值:6937231762296684564

func (*CommentBuilder) ParentId

func (builder *CommentBuilder) ParentId(parentId string) *CommentBuilder

评论的父ID,创建评论时若不为空则为某条评论的回复,若为空则不是回复

示例值:6937231762296684564

func (*CommentBuilder) RichContent added in v3.0.1

func (builder *CommentBuilder) RichContent(richContent string) *CommentBuilder

富文本评论内容。语法格式参见[Markdown模块](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/task-v1/markdown-module)

示例值:举杯邀明月,对影成三人<at id=7058204817822318612></at>

type CompleteTaskReq

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

type CompleteTaskReqBuilder

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

func NewCompleteTaskReqBuilder

func NewCompleteTaskReqBuilder() *CompleteTaskReqBuilder

func (*CompleteTaskReqBuilder) Build

func (builder *CompleteTaskReqBuilder) Build() *CompleteTaskReq

func (*CompleteTaskReqBuilder) TaskId

func (builder *CompleteTaskReqBuilder) TaskId(taskId string) *CompleteTaskReqBuilder

任务 ID,可通过[创建任务](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/task-v1/task/create)时响应体中的id字段获取

示例值:bb54ab99-d360-434f-bcaa-a4cc4c05840e

type CompleteTaskResp

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

func (*CompleteTaskResp) Success

func (resp *CompleteTaskResp) Success() bool

type CreateTaskCollaboratorReq

type CreateTaskCollaboratorReq struct {
	Collaborator *Collaborator `body:""`
	// contains filtered or unexported fields
}

type CreateTaskCollaboratorReqBuilder

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

func NewCreateTaskCollaboratorReqBuilder

func NewCreateTaskCollaboratorReqBuilder() *CreateTaskCollaboratorReqBuilder

func (*CreateTaskCollaboratorReqBuilder) Build

func (*CreateTaskCollaboratorReqBuilder) Collaborator

该接口用于新增任务执行者,一次性可以添加多个执行者。;只有任务的创建者和执行者才能添加执行者,关注人无权限添加。

func (*CreateTaskCollaboratorReqBuilder) TaskId

任务 ID,可通过[创建任务](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/task-v1/task/create)时响应体中的id字段获取

示例值:83912691-2e43-47fc-94a4-d512e03984fa

func (*CreateTaskCollaboratorReqBuilder) UserIdType

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

示例值:

type CreateTaskCollaboratorResp

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

func (*CreateTaskCollaboratorResp) Success

func (resp *CreateTaskCollaboratorResp) Success() bool

type CreateTaskCollaboratorRespData

type CreateTaskCollaboratorRespData struct {
	Collaborator *Collaborator `json:"collaborator,omitempty"` // 返回创建成功后的任务执行者列表
}

type CreateTaskCommentReq

type CreateTaskCommentReq struct {
	Comment *Comment `body:""`
	// contains filtered or unexported fields
}

type CreateTaskCommentReqBuilder

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

func NewCreateTaskCommentReqBuilder

func NewCreateTaskCommentReqBuilder() *CreateTaskCommentReqBuilder

func (*CreateTaskCommentReqBuilder) Build

func (*CreateTaskCommentReqBuilder) Comment

该接口用于创建和回复任务的评论。当parent_id字段为0时,为创建评论;当parent_id不为0时,为回复某条评论

func (*CreateTaskCommentReqBuilder) TaskId

任务 ID

示例值:83912691-2e43-47fc-94a4-d512e03984fa

func (*CreateTaskCommentReqBuilder) UserIdType added in v3.0.10

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

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

示例值:

type CreateTaskCommentResp

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

func (*CreateTaskCommentResp) Success

func (resp *CreateTaskCommentResp) Success() bool

type CreateTaskCommentRespData

type CreateTaskCommentRespData struct {
	Comment *Comment `json:"comment,omitempty"` // 返回创建好的任务评论
}

type CreateTaskFollowerReq

type CreateTaskFollowerReq struct {
	Follower *Follower `body:""`
	// contains filtered or unexported fields
}

type CreateTaskFollowerReqBuilder

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

func NewCreateTaskFollowerReqBuilder

func NewCreateTaskFollowerReqBuilder() *CreateTaskFollowerReqBuilder

func (*CreateTaskFollowerReqBuilder) Build

func (*CreateTaskFollowerReqBuilder) Follower

该接口用于创建任务关注人。可以一次性添加多位关注人。关注人ID要使用表示用户的ID。

func (*CreateTaskFollowerReqBuilder) TaskId

任务 ID

示例值:83912691-2e43-47fc-94a4-d512e03984fa

func (*CreateTaskFollowerReqBuilder) UserIdType

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

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

示例值:

type CreateTaskFollowerResp

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

func (*CreateTaskFollowerResp) Success

func (resp *CreateTaskFollowerResp) Success() bool

type CreateTaskFollowerRespData

type CreateTaskFollowerRespData struct {
	Follower *Follower `json:"follower,omitempty"` // 创建后的任务关注者
}

type CreateTaskReminderReq

type CreateTaskReminderReq struct {
	Reminder *Reminder `body:""`
	// contains filtered or unexported fields
}

type CreateTaskReminderReqBuilder

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

func NewCreateTaskReminderReqBuilder

func NewCreateTaskReminderReqBuilder() *CreateTaskReminderReqBuilder

func (*CreateTaskReminderReqBuilder) Build

func (*CreateTaskReminderReqBuilder) Reminder

该接口用于创建任务的提醒时间。提醒时间在截止时间基础上做偏移,但是偏移后的结果不能早于当前时间。

func (*CreateTaskReminderReqBuilder) TaskId

任务 ID

示例值:83912691-2e43-47fc-94a4-d512e03984fa

type CreateTaskReminderResp

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

func (*CreateTaskReminderResp) Success

func (resp *CreateTaskReminderResp) Success() bool

type CreateTaskReminderRespData

type CreateTaskReminderRespData struct {
	Reminder *Reminder `json:"reminder,omitempty"` // 返回创建成功的提醒时间
}

type CreateTaskReq

type CreateTaskReq struct {
	Task *Task `body:""`
	// contains filtered or unexported fields
}

type CreateTaskReqBuilder

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

func NewCreateTaskReqBuilder

func NewCreateTaskReqBuilder() *CreateTaskReqBuilder

func (*CreateTaskReqBuilder) Build

func (builder *CreateTaskReqBuilder) Build() *CreateTaskReq

func (*CreateTaskReqBuilder) Task

func (builder *CreateTaskReqBuilder) Task(task *Task) *CreateTaskReqBuilder

该接口可以创建一个任务,支持填写任务的基本信息,包括任务的标题,描述及协作者等。;在此基础上,创建任务时可以设置截止时间和重复规则,将任务设置为定期执行的重复任务。通过添加协作者,则可以让其他用户协同完成该任务。;此外,接口也提供了一些支持自定义内容的字段,调用方可以实现定制化效果,如完成任务后跳转到指定结束界面。

func (*CreateTaskReqBuilder) UserIdType

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

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

示例值:

type CreateTaskResp

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

func (*CreateTaskResp) Success

func (resp *CreateTaskResp) Success() bool

type CreateTaskRespData

type CreateTaskRespData struct {
	Task *Task `json:"task,omitempty"` // 返回创建好的任务
}

type DeleteTaskCollaboratorReq

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

type DeleteTaskCollaboratorReqBuilder

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

func NewDeleteTaskCollaboratorReqBuilder

func NewDeleteTaskCollaboratorReqBuilder() *DeleteTaskCollaboratorReqBuilder

func (*DeleteTaskCollaboratorReqBuilder) Build

func (*DeleteTaskCollaboratorReqBuilder) CollaboratorId

func (builder *DeleteTaskCollaboratorReqBuilder) CollaboratorId(collaboratorId string) *DeleteTaskCollaboratorReqBuilder

任务执行者 ID(Open ID或User ID,由user_id_type指定)

示例值:ou_99e1a581b36ecc4862cbfbce123f346a

func (*DeleteTaskCollaboratorReqBuilder) TaskId

任务 ID

示例值:83912691-2e43-47fc-94a4-d512e03984fa

func (*DeleteTaskCollaboratorReqBuilder) UserIdType added in v3.0.1

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

示例值:

type DeleteTaskCollaboratorResp

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

func (*DeleteTaskCollaboratorResp) Success

func (resp *DeleteTaskCollaboratorResp) Success() bool

type DeleteTaskCommentReq

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

type DeleteTaskCommentReqBuilder

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

func NewDeleteTaskCommentReqBuilder

func NewDeleteTaskCommentReqBuilder() *DeleteTaskCommentReqBuilder

func (*DeleteTaskCommentReqBuilder) Build

func (*DeleteTaskCommentReqBuilder) CommentId

func (builder *DeleteTaskCommentReqBuilder) CommentId(commentId string) *DeleteTaskCommentReqBuilder

评论ID

示例值:6937231762296684564

func (*DeleteTaskCommentReqBuilder) TaskId

任务ID

示例值:83912691-2e43-47fc-94a4-d512e03984fa

type DeleteTaskCommentResp

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

func (*DeleteTaskCommentResp) Success

func (resp *DeleteTaskCommentResp) Success() bool

type DeleteTaskFollowerReq

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

type DeleteTaskFollowerReqBuilder

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

func NewDeleteTaskFollowerReqBuilder

func NewDeleteTaskFollowerReqBuilder() *DeleteTaskFollowerReqBuilder

func (*DeleteTaskFollowerReqBuilder) Build

func (*DeleteTaskFollowerReqBuilder) FollowerId

func (builder *DeleteTaskFollowerReqBuilder) FollowerId(followerId string) *DeleteTaskFollowerReqBuilder

任务关注人 ID(Open ID或User ID,由user_id_type指定)

示例值:ou_87e1a581b36ecc4862cbfbce473f346a

func (*DeleteTaskFollowerReqBuilder) TaskId

任务 ID

示例值:83912691-2e43-47fc-94a4-d512e03984fa

func (*DeleteTaskFollowerReqBuilder) UserIdType added in v3.0.1

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

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

示例值:

type DeleteTaskFollowerResp

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

func (*DeleteTaskFollowerResp) Success

func (resp *DeleteTaskFollowerResp) Success() bool

type DeleteTaskReminderReq

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

type DeleteTaskReminderReqBuilder

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

func NewDeleteTaskReminderReqBuilder

func NewDeleteTaskReminderReqBuilder() *DeleteTaskReminderReqBuilder

func (*DeleteTaskReminderReqBuilder) Build

func (*DeleteTaskReminderReqBuilder) ReminderId

func (builder *DeleteTaskReminderReqBuilder) ReminderId(reminderId string) *DeleteTaskReminderReqBuilder

任务提醒时间设置的 ID(即 reminder.id)

示例值:1

func (*DeleteTaskReminderReqBuilder) TaskId

任务 ID

示例值:83912691-2e43-47fc-94a4-d512e03984fa

type DeleteTaskReminderResp

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

func (*DeleteTaskReminderResp) Success

func (resp *DeleteTaskReminderResp) Success() bool

type DeleteTaskReq

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

type DeleteTaskReqBuilder

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

func NewDeleteTaskReqBuilder

func NewDeleteTaskReqBuilder() *DeleteTaskReqBuilder

func (*DeleteTaskReqBuilder) Build

func (builder *DeleteTaskReqBuilder) Build() *DeleteTaskReq

func (*DeleteTaskReqBuilder) TaskId

func (builder *DeleteTaskReqBuilder) TaskId(taskId string) *DeleteTaskReqBuilder

任务 ID

示例值:83912691-2e43-47fc-94a4-d512e03984fa

type DeleteTaskResp

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

func (*DeleteTaskResp) Success

func (resp *DeleteTaskResp) 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 Due

type Due struct {
	Time     *string `json:"time,omitempty"`       // 表示截止时间的Unix时间戳(单位为秒)。
	Timezone *string `json:"timezone,omitempty"`   // 截止时间对应的时区。;传入值需要符合IANA Time Zone Database标准,规范见[Time Zone Database](https://www.iana.org/time-zones)。
	IsAllDay *bool   `json:"is_all_day,omitempty"` // 标记任务是否为全天任务。;包括如下取值:;- true:表示是全天任务,全天任务的截止时间为当天 UTC 时间的 0 点。;- false:表示不是全天任务。
}

type DueBuilder

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

func NewDueBuilder

func NewDueBuilder() *DueBuilder

func (*DueBuilder) Build

func (builder *DueBuilder) Build() *Due

func (*DueBuilder) IsAllDay

func (builder *DueBuilder) IsAllDay(isAllDay bool) *DueBuilder

标记任务是否为全天任务。;包括如下取值:;- true:表示是全天任务,全天任务的截止时间为当天 UTC 时间的 0 点。;- false:表示不是全天任务。

示例值:false

func (*DueBuilder) Time

func (builder *DueBuilder) Time(time string) *DueBuilder

表示截止时间的Unix时间戳(单位为秒)。

示例值:1623124318

func (*DueBuilder) Timezone

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

截止时间对应的时区。;传入值需要符合IANA Time Zone Database标准,规范见[Time Zone Database](https://www.iana.org/time-zones)。

示例值:Asia/Shanghai

type Follower

type Follower struct {
	Id     *string  `json:"id,omitempty"`      // 任务关注人 ID
	IdList []string `json:"id_list,omitempty"` // 要删除的关注人ID列表
}

type FollowerBuilder

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

func NewFollowerBuilder

func NewFollowerBuilder() *FollowerBuilder

func (*FollowerBuilder) Build

func (builder *FollowerBuilder) Build() *Follower

func (*FollowerBuilder) Id

func (builder *FollowerBuilder) Id(id string) *FollowerBuilder

任务关注人 ID

示例值:ou_99e1a581b36ecc4862cbfbce473f3123

func (*FollowerBuilder) IdList added in v3.0.1

func (builder *FollowerBuilder) IdList(idList []string) *FollowerBuilder

要删除的关注人ID列表

示例值:[; "ou_550cc75233d8b7b9fcbdad65f34433f4", "ou_d1e9d27cf3235b40ca9a67c67ef088b0";]

type GetTaskCommentReq

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

type GetTaskCommentReqBuilder

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

func NewGetTaskCommentReqBuilder

func NewGetTaskCommentReqBuilder() *GetTaskCommentReqBuilder

func (*GetTaskCommentReqBuilder) Build

func (builder *GetTaskCommentReqBuilder) Build() *GetTaskCommentReq

func (*GetTaskCommentReqBuilder) CommentId

func (builder *GetTaskCommentReqBuilder) CommentId(commentId string) *GetTaskCommentReqBuilder

评论ID

示例值:6937231762296684564

func (*GetTaskCommentReqBuilder) TaskId

func (builder *GetTaskCommentReqBuilder) TaskId(taskId string) *GetTaskCommentReqBuilder

任务ID

示例值:83912691-2e43-47fc-94a4-d512e03984fa

func (*GetTaskCommentReqBuilder) UserIdType added in v3.0.10

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

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

示例值:

type GetTaskCommentResp

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

func (*GetTaskCommentResp) Success

func (resp *GetTaskCommentResp) Success() bool

type GetTaskCommentRespData

type GetTaskCommentRespData struct {
	Comment *Comment `json:"comment,omitempty"` // 返回新的任务评论详情
}

type GetTaskReq

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

type GetTaskReqBuilder

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

func NewGetTaskReqBuilder

func NewGetTaskReqBuilder() *GetTaskReqBuilder

func (*GetTaskReqBuilder) Build

func (builder *GetTaskReqBuilder) Build() *GetTaskReq

func (*GetTaskReqBuilder) TaskId

func (builder *GetTaskReqBuilder) TaskId(taskId string) *GetTaskReqBuilder

任务 ID

示例值:83912691-2e43-47fc-94a4-d512e03984fa

func (*GetTaskReqBuilder) UserIdType

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

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

示例值:

type GetTaskResp

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

func (*GetTaskResp) Success

func (resp *GetTaskResp) Success() bool

type GetTaskRespData

type GetTaskRespData struct {
	Task *Task `json:"task,omitempty"` // 返回任务资源详情
}

type Href

type Href struct {
	Url   *string `json:"url,omitempty"`   // 具体链接地址。;URL仅支持解析http、https。详细参见:[任务字段补充说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/task-v1/Supplementary-directions-of-task-fields)
	Title *string `json:"title,omitempty"` // 链接对应的标题
}

type HrefBuilder

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

func NewHrefBuilder

func NewHrefBuilder() *HrefBuilder

func (*HrefBuilder) Build

func (builder *HrefBuilder) Build() *Href

func (*HrefBuilder) Title

func (builder *HrefBuilder) Title(title string) *HrefBuilder

链接对应的标题

示例值:反馈一个问题,需要协助排查

func (*HrefBuilder) Url

func (builder *HrefBuilder) Url(url string) *HrefBuilder

具体链接地址。;URL仅支持解析http、https。详细参见:[任务字段补充说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/task-v1/Supplementary-directions-of-task-fields)

示例值:https://support.feishu.com/internal/foo-bar

type ListTaskCollaboratorIterator

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

func (*ListTaskCollaboratorIterator) Next

func (iterator *ListTaskCollaboratorIterator) Next() (bool, *Collaborator, error)

func (*ListTaskCollaboratorIterator) NextPageToken

func (iterator *ListTaskCollaboratorIterator) NextPageToken() *string

type ListTaskCollaboratorReq

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

type ListTaskCollaboratorReqBuilder

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

func NewListTaskCollaboratorReqBuilder

func NewListTaskCollaboratorReqBuilder() *ListTaskCollaboratorReqBuilder

func (*ListTaskCollaboratorReqBuilder) Build

func (*ListTaskCollaboratorReqBuilder) Limit

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

func (*ListTaskCollaboratorReqBuilder) PageSize

分页大小

示例值:50

func (*ListTaskCollaboratorReqBuilder) PageToken

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

示例值:「上次返回的page_token」

func (*ListTaskCollaboratorReqBuilder) TaskId

任务 ID

示例值:0d38e26e-190a-49e9-93a2-35067763ed1f

func (*ListTaskCollaboratorReqBuilder) UserIdType

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

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

示例值:

type ListTaskCollaboratorResp

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

func (*ListTaskCollaboratorResp) Success

func (resp *ListTaskCollaboratorResp) Success() bool

type ListTaskCollaboratorRespData

type ListTaskCollaboratorRespData struct {
	Items     []*Collaborator `json:"items,omitempty"`      // 返回的执行者ID列表
	PageToken *string         `json:"page_token,omitempty"` // 分页标记,分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果
	HasMore   *bool           `json:"has_more,omitempty"`   // 是否还有更多数据
}

type ListTaskCommentIterator

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

func (*ListTaskCommentIterator) Next

func (iterator *ListTaskCommentIterator) Next() (bool, *Comment, error)

func (*ListTaskCommentIterator) NextPageToken

func (iterator *ListTaskCommentIterator) NextPageToken() *string

type ListTaskCommentReq

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

type ListTaskCommentReqBuilder

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

func NewListTaskCommentReqBuilder

func NewListTaskCommentReqBuilder() *ListTaskCommentReqBuilder

func (*ListTaskCommentReqBuilder) Build

func (*ListTaskCommentReqBuilder) Limit

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

func (*ListTaskCommentReqBuilder) ListDirection

func (builder *ListTaskCommentReqBuilder) ListDirection(listDirection int) *ListTaskCommentReqBuilder

评论排序标记,可按照评论时间从小到大查询,或者评论时间从大到小查询,不填默认按照从小到大

示例值:0

func (*ListTaskCommentReqBuilder) PageSize

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

分页大小

示例值:10

func (*ListTaskCommentReqBuilder) PageToken

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

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

示例值:"MTYzMTg3ODUxNQ=="

func (*ListTaskCommentReqBuilder) TaskId

任务id

示例值:"83912691-2e43-47fc-94a4-d512e03984fa"

func (*ListTaskCommentReqBuilder) UserIdType added in v3.0.10

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

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

示例值:

type ListTaskCommentResp

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

func (*ListTaskCommentResp) Success

func (resp *ListTaskCommentResp) Success() bool

type ListTaskCommentRespData

type ListTaskCommentRespData struct {
	Items     []*Comment `json:"items,omitempty"`      // 返回的评论列表
	PageToken *string    `json:"page_token,omitempty"` // 分页标记,分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果
	HasMore   *bool      `json:"has_more,omitempty"`   // 是否还有更多数据
}

type ListTaskFollowerIterator

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

func (*ListTaskFollowerIterator) Next

func (iterator *ListTaskFollowerIterator) Next() (bool, *Follower, error)

func (*ListTaskFollowerIterator) NextPageToken

func (iterator *ListTaskFollowerIterator) NextPageToken() *string

type ListTaskFollowerReq

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

type ListTaskFollowerReqBuilder

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

func NewListTaskFollowerReqBuilder

func NewListTaskFollowerReqBuilder() *ListTaskFollowerReqBuilder

func (*ListTaskFollowerReqBuilder) Build

func (*ListTaskFollowerReqBuilder) Limit

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

func (*ListTaskFollowerReqBuilder) PageSize

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

分页大小

示例值:10

func (*ListTaskFollowerReqBuilder) PageToken

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

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

示例值:「上次返回的page_token」

func (*ListTaskFollowerReqBuilder) TaskId

任务 ID

示例值:0d38e26e-190a-49e9-93a2-35067763ed1f

func (*ListTaskFollowerReqBuilder) UserIdType

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

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

示例值:

type ListTaskFollowerResp

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

func (*ListTaskFollowerResp) Success

func (resp *ListTaskFollowerResp) Success() bool

type ListTaskFollowerRespData

type ListTaskFollowerRespData struct {
	Items     []*Follower `json:"items,omitempty"`      // 返回的关注人ID列表
	PageToken *string     `json:"page_token,omitempty"` // 分页标记,分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果
	HasMore   *bool       `json:"has_more,omitempty"`   // 是否还有更多数据
}

type ListTaskIterator

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

func (*ListTaskIterator) Next

func (iterator *ListTaskIterator) Next() (bool, *Task, error)

func (*ListTaskIterator) NextPageToken

func (iterator *ListTaskIterator) NextPageToken() *string

type ListTaskReminderIterator

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

func (*ListTaskReminderIterator) Next

func (iterator *ListTaskReminderIterator) Next() (bool, *Reminder, error)

func (*ListTaskReminderIterator) NextPageToken

func (iterator *ListTaskReminderIterator) NextPageToken() *string

type ListTaskReminderReq

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

type ListTaskReminderReqBuilder

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

func NewListTaskReminderReqBuilder

func NewListTaskReminderReqBuilder() *ListTaskReminderReqBuilder

func (*ListTaskReminderReqBuilder) Build

func (*ListTaskReminderReqBuilder) Limit

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

func (*ListTaskReminderReqBuilder) PageSize

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

分页大小

示例值:50

func (*ListTaskReminderReqBuilder) PageToken

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

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

示例值:「填写上次返回的page_token」

func (*ListTaskReminderReqBuilder) TaskId

任务 ID

示例值:0d38e26e-190a-49e9-93a2-35067763ed1f

type ListTaskReminderResp

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

func (*ListTaskReminderResp) Success

func (resp *ListTaskReminderResp) Success() bool

type ListTaskReminderRespData

type ListTaskReminderRespData struct {
	Items     []*Reminder `json:"items,omitempty"`      // 返回提醒时间设置列表
	PageToken *string     `json:"page_token,omitempty"` // 分页标记,分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果
	HasMore   *bool       `json:"has_more,omitempty"`   // 是否还有更多数据
}

type ListTaskReq

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

type ListTaskReqBuilder

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

func NewListTaskReqBuilder

func NewListTaskReqBuilder() *ListTaskReqBuilder

func (*ListTaskReqBuilder) Build

func (builder *ListTaskReqBuilder) Build() *ListTaskReq

func (*ListTaskReqBuilder) EndCreateTime

func (builder *ListTaskReqBuilder) EndCreateTime(endCreateTime string) *ListTaskReqBuilder

范围查询任务时,查询的结束时间。不填时默认结束时间为最后一个任务的创建时间。

示例值:1652323335

func (*ListTaskReqBuilder) Limit

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

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

func (*ListTaskReqBuilder) PageSize

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

分页大小

示例值:10

func (*ListTaskReqBuilder) PageToken

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

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

示例值:MTYzMTg3ODUxNQ==

func (*ListTaskReqBuilder) StartCreateTime

func (builder *ListTaskReqBuilder) StartCreateTime(startCreateTime string) *ListTaskReqBuilder

范围查询任务时,查询的起始时间。不填时默认起始时间为第一个任务的创建时间。

示例值:1652323331

func (*ListTaskReqBuilder) TaskCompleted

func (builder *ListTaskReqBuilder) TaskCompleted(taskCompleted bool) *ListTaskReqBuilder

可用于查询时过滤任务完成状态。true表示只返回已完成的任务,false表示只返回未完成的任务。不填时表示同时返回两种完成状态的任务。

示例值:false

func (*ListTaskReqBuilder) UserIdType

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

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

示例值:

type ListTaskResp

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

func (*ListTaskResp) Success

func (resp *ListTaskResp) Success() bool

type ListTaskRespData

type ListTaskRespData struct {
	Items     []*Task `json:"items,omitempty"`      // 任务列表
	PageToken *string `json:"page_token,omitempty"` //
	HasMore   *bool   `json:"has_more,omitempty"`   //
}

type Origin

type Origin struct {
	PlatformI18nName *string `json:"platform_i18n_name,omitempty"` // 任务来源的名称。;用于在任务中心详情页展示。需要提供一个字典,支持多种语言名称映射。应用在使用不同语言时,导入来源也将展示对应的内容。详细参见:[任务字段补充说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/task-v1/Supplementary-directions-of-task-fields)
	Href             *Href   `json:"href,omitempty"`               // 任务关联的来源平台详情页链接
}

type OriginBuilder

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

func NewOriginBuilder

func NewOriginBuilder() *OriginBuilder

func (*OriginBuilder) Build

func (builder *OriginBuilder) Build() *Origin

func (*OriginBuilder) Href

func (builder *OriginBuilder) Href(href *Href) *OriginBuilder

任务关联的来源平台详情页链接

示例值:

func (*OriginBuilder) PlatformI18nName

func (builder *OriginBuilder) PlatformI18nName(platformI18nName string) *OriginBuilder

任务来源的名称。;用于在任务中心详情页展示。需要提供一个字典,支持多种语言名称映射。应用在使用不同语言时,导入来源也将展示对应的内容。详细参见:[任务字段补充说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/task-v1/Supplementary-directions-of-task-fields)

示例值:{\"zh_cn\": \"IT 工作台\", \"en_us\": \"IT Workspace\"}

type P2TaskCommentUpdatedV1

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

func (*P2TaskCommentUpdatedV1) RawReq

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

type P2TaskCommentUpdatedV1Data

type P2TaskCommentUpdatedV1Data struct {
	TaskId    *string `json:"task_id,omitempty"`    // 任务ID
	CommentId *string `json:"comment_id,omitempty"` // 任务评论ID
	ParentId  *string `json:"parent_id,omitempty"`  // 任务评论父ID
	ObjType   *int    `json:"obj_type,omitempty"`   // 通知类型(1:创建评论,2:回复评论,3:更新评论,4:删除评论)
}

type P2TaskCommentUpdatedV1Handler

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

消息处理器定义

func (*P2TaskCommentUpdatedV1Handler) Event

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

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

func (*P2TaskCommentUpdatedV1Handler) Handle

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

回调开发者注册的handle

type P2TaskUpdateTenantV1

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

func (*P2TaskUpdateTenantV1) RawReq

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

type P2TaskUpdateTenantV1Data

type P2TaskUpdateTenantV1Data struct {
	UserIdList *UserIdList `json:"user_id_list,omitempty"` // 用户 ID 列表
	TaskId     *string     `json:"task_id,omitempty"`      // 任务的id
	ObjectType *string     `json:"object_type,omitempty"`  // 变更的数据类型,可选值:;"task","collaborator","follower"
	EventType  *string     `json:"event_type,omitempty"`   // 事件类型,可选值:;"create","delete","update"
}

type P2TaskUpdateTenantV1Handler

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

消息处理器定义

func NewP2TaskUpdateTenantV1Handler

func NewP2TaskUpdateTenantV1Handler(handler func(context.Context, *P2TaskUpdateTenantV1) error) *P2TaskUpdateTenantV1Handler

func (*P2TaskUpdateTenantV1Handler) Event

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

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

func (*P2TaskUpdateTenantV1Handler) Handle

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

回调开发者注册的handle

type P2TaskUpdatedV1

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

func (*P2TaskUpdatedV1) RawReq

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

type P2TaskUpdatedV1Data

type P2TaskUpdatedV1Data struct {
	TaskId  *string `json:"task_id,omitempty"`  // 任务ID
	ObjType *int    `json:"obj_type,omitempty"` // 通知类型(1:任务详情发生变化,2:任务协作者发生变化,3:任务关注者发生变化,4:任务提醒时间发生变化,5:任务完成,6:任务取消完成,7:任务删除)
}

type P2TaskUpdatedV1Handler

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

消息处理器定义

func NewP2TaskUpdatedV1Handler

func NewP2TaskUpdatedV1Handler(handler func(context.Context, *P2TaskUpdatedV1) error) *P2TaskUpdatedV1Handler

func (*P2TaskUpdatedV1Handler) Event

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

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

func (*P2TaskUpdatedV1Handler) Handle

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

回调开发者注册的handle

type PatchTaskPathReqBodyBuilder

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

func NewPatchTaskPathReqBodyBuilder

func NewPatchTaskPathReqBodyBuilder() *PatchTaskPathReqBodyBuilder

func (*PatchTaskPathReqBodyBuilder) Build

func (builder *PatchTaskPathReqBodyBuilder) Build() (*PatchTaskReqBody, error)

func (*PatchTaskPathReqBodyBuilder) Task

被更新的任务实体基础信息

示例值:

func (*PatchTaskPathReqBodyBuilder) UpdateFields

func (builder *PatchTaskPathReqBodyBuilder) UpdateFields(updateFields []string) *PatchTaskPathReqBodyBuilder

指定需要更新的任务字段,否则服务端将不知道更新哪些字段

示例值:["summary"]

type PatchTaskReq

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

type PatchTaskReqBody

type PatchTaskReqBody struct {
	Task         *Task    `json:"task,omitempty"`          // 被更新的任务实体基础信息
	UpdateFields []string `json:"update_fields,omitempty"` // 指定需要更新的任务字段,否则服务端将不知道更新哪些字段
}

type PatchTaskReqBodyBuilder

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

func NewPatchTaskReqBodyBuilder

func NewPatchTaskReqBodyBuilder() *PatchTaskReqBodyBuilder

func (*PatchTaskReqBodyBuilder) Build

func (builder *PatchTaskReqBodyBuilder) Build() *PatchTaskReqBody

func (*PatchTaskReqBodyBuilder) Task

被更新的任务实体基础信息

示例值:

func (*PatchTaskReqBodyBuilder) UpdateFields

func (builder *PatchTaskReqBodyBuilder) UpdateFields(updateFields []string) *PatchTaskReqBodyBuilder

指定需要更新的任务字段,否则服务端将不知道更新哪些字段

示例值:["summary"]

type PatchTaskReqBuilder

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

func NewPatchTaskReqBuilder

func NewPatchTaskReqBuilder() *PatchTaskReqBuilder

func (*PatchTaskReqBuilder) Body

该接口用于修改任务的标题、描述、时间、来源等相关信息

func (*PatchTaskReqBuilder) Build

func (builder *PatchTaskReqBuilder) Build() *PatchTaskReq

func (*PatchTaskReqBuilder) TaskId

func (builder *PatchTaskReqBuilder) TaskId(taskId string) *PatchTaskReqBuilder

任务 ID

示例值:83912691-2e43-47fc-94a4-d512e03984fa

func (*PatchTaskReqBuilder) UserIdType

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

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

示例值:

type PatchTaskResp

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

func (*PatchTaskResp) Success

func (resp *PatchTaskResp) Success() bool

type PatchTaskRespData

type PatchTaskRespData struct {
	Task *Task `json:"task,omitempty"` // 返回修改后的任务详情
}

type Reminder

type Reminder struct {
	Id                 *string `json:"id,omitempty"`                   // 提醒时间设置的 ID(在删除时候需要使用这个)
	RelativeFireMinute *int    `json:"relative_fire_minute,omitempty"` // 相对于截止时间的提醒时间(如提前 30 分钟,截止时间后 30 分钟,则为 -30) 任务没有截止时间则为全天任务(截止时间为0)
}

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) Id

func (builder *ReminderBuilder) Id(id string) *ReminderBuilder

提醒时间设置的 ID(在删除时候需要使用这个)

示例值:1

func (*ReminderBuilder) RelativeFireMinute

func (builder *ReminderBuilder) RelativeFireMinute(relativeFireMinute int) *ReminderBuilder

相对于截止时间的提醒时间(如提前 30 分钟,截止时间后 30 分钟,则为 -30) 任务没有截止时间则为全天任务(截止时间为0)

示例值:30

type Section added in v3.0.20

type Section struct {
}

type Task

type Task struct {
	Id              *string         `json:"id,omitempty"`               // 任务的唯一ID,例如"83912691-2e43-47fc-94a4-d512e03984fa"
	Summary         *string         `json:"summary,omitempty"`          // 任务的标题,类型为文本字符串。;如果要在任务标题中插入 URL 或者 @某个用户,请使用rich_summary字段。;创建任务时,任务标题(summary字段)和任务富文本标题(rich_summary字段)不能同时为空,需要至少填充其中一个字段。;<md-alert>;任务标题和任务富文本标题同时存在时只使用富文本标题。;</md-alert>
	Description     *string         `json:"description,omitempty"`      // 任务的描述,类型为文本字符串。;如果要在任务描述中插入 URL 或者 @某个用户,请使用rich_description字段。;<md-alert>;任务备注和任务富文本备注同时存在时只使用富文本备注。;</md-alert>
	CompleteTime    *string         `json:"complete_time,omitempty"`    // 任务的完成时间戳(单位为秒),完成时间为0则表示任务尚未完成。;不支持部分完成,只有整个任务完成,该字段才会有非0值。
	CreatorId       *string         `json:"creator_id,omitempty"`       // 任务的创建者 ID。;其中查询字段 user_id_type 是用于控制返回体中 creator_id 的类型,不传时默认返回 open_id。;特别的,使用tenant_access_token 调用接口时,如果是user_id_type是openid,则返回代表该应用身份的openid;当user_id_type为user_id时,不返回creator_id。原因是user_id代表一个真实飞书用户的id,应用身份没有user_id。使用user_access_token调用接口正常返回创建者。
	Extra           *string         `json:"extra,omitempty"`            // 附属信息。;接入方可以传入base64 编码后的自定义的数据。用户如果需要对当前任务备注信息,但对外不显示,可使用该字段进行存储。;该数据会在获取任务详情时,原样返回给用户。
	CreateTime      *string         `json:"create_time,omitempty"`      // 任务的创建时间的Unix时间戳(单位为秒)
	UpdateTime      *string         `json:"update_time,omitempty"`      // 任务的更新时间的Unix时间戳(单位为秒);创建任务时update_time与create_time相同
	Due             *Due            `json:"due,omitempty"`              // 任务的截止时间设置
	Origin          *Origin         `json:"origin,omitempty"`           // 任务关联的第三方平台来源信息
	CanEdit         *bool           `json:"can_edit,omitempty"`         // 此字段用于控制该任务在飞书任务中心是否可编辑,默认为false;<md-alert>;已经废弃,向前兼容故仍然保留,但不推荐使用;</md-alert>
	Custom          *string         `json:"custom,omitempty"`           // 自定义完成配置。;此字段用于设置完成任务时的页面跳转,或展示提示语。详细参见:[任务字段补充说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/task-v1/Supplementary-directions-of-task-fields)
	Source          *int            `json:"source,omitempty"`           // 任务创建的来源
	Followers       []*Follower     `json:"followers,omitempty"`        // 任务的关注者
	Collaborators   []*Collaborator `json:"collaborators,omitempty"`    // 任务的执行者
	CollaboratorIds []string        `json:"collaborator_ids,omitempty"` // 创建任务时添加的执行者用户id列表。;传入的值为 user_id 或 open_id ,由user_id_type 决定。user_id和open_id的获取可见文档:[如何获取相关id](https://open.feishu.cn/document/home/user-identity-introduction/how-to-get)。
	FollowerIds     []string        `json:"follower_ids,omitempty"`     // 创建任务时添加的关注者用户id列表。;传入的值为 user_id 或 open_id ,由user_id_type 决定。user_id和open_id的获取可见文档:[如何获取相关id](https://open.feishu.cn/document/home/user-identity-introduction/how-to-get)。
	RepeatRule      *string         `json:"repeat_rule,omitempty"`      // 重复任务的规则表达式。;语法格式参见[RRule语法规范](https://www.ietf.org/rfc/rfc2445.txt) 4.3.10小节
	RichSummary     *string         `json:"rich_summary,omitempty"`     // 富文本任务标题。语法格式参见[Markdown模块](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/task-v1/markdown-module);。创建任务时,任务标题(summary字段)和任务富文本标题(rich_summary字段)不能同时为空,需要至少填充其中一个字段。
	RichDescription *string         `json:"rich_description,omitempty"` // 富文本任务备注。语法格式参见[Markdown模块](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/task-v1/markdown-module)
}

type TaskBuilder

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

func NewTaskBuilder

func NewTaskBuilder() *TaskBuilder

func (*TaskBuilder) Build

func (builder *TaskBuilder) Build() *Task

func (*TaskBuilder) CanEdit

func (builder *TaskBuilder) CanEdit(canEdit bool) *TaskBuilder

此字段用于控制该任务在飞书任务中心是否可编辑,默认为false;<md-alert>;已经废弃,向前兼容故仍然保留,但不推荐使用;</md-alert>

示例值:true

func (*TaskBuilder) CollaboratorIds added in v3.0.1

func (builder *TaskBuilder) CollaboratorIds(collaboratorIds []string) *TaskBuilder

创建任务时添加的执行者用户id列表。;传入的值为 user_id 或 open_id ,由user_id_type 决定。user_id和open_id的获取可见文档:[如何获取相关id](https://open.feishu.cn/document/home/user-identity-introduction/how-to-get)。

示例值:["ou_1400208f15333e20e11339d39067844b", "ou_84ed6312949945c8ae6168f10829e9e6"]

func (*TaskBuilder) Collaborators

func (builder *TaskBuilder) Collaborators(collaborators []*Collaborator) *TaskBuilder

任务的执行者

示例值:ou_558d4999baae26e32aa2fd9bb228660b

func (*TaskBuilder) CompleteTime

func (builder *TaskBuilder) CompleteTime(completeTime string) *TaskBuilder

任务的完成时间戳(单位为秒),完成时间为0则表示任务尚未完成。;不支持部分完成,只有整个任务完成,该字段才会有非0值。

示例值:1623499200

func (*TaskBuilder) CreateTime

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

任务的创建时间的Unix时间戳(单位为秒)

示例值:1623392486

func (*TaskBuilder) CreatorId

func (builder *TaskBuilder) CreatorId(creatorId string) *TaskBuilder

任务的创建者 ID。;其中查询字段 user_id_type 是用于控制返回体中 creator_id 的类型,不传时默认返回 open_id。;特别的,使用tenant_access_token 调用接口时,如果是user_id_type是openid,则返回代表该应用身份的openid;当user_id_type为user_id时,不返回creator_id。原因是user_id代表一个真实飞书用户的id,应用身份没有user_id。使用user_access_token调用接口正常返回创建者。

示例值:ou_99e1a581b36ecc4862cbfbce473f346a

func (*TaskBuilder) Custom

func (builder *TaskBuilder) Custom(custom string) *TaskBuilder

自定义完成配置。;此字段用于设置完成任务时的页面跳转,或展示提示语。详细参见:[任务字段补充说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/task-v1/Supplementary-directions-of-task-fields)

示例值:{\"custom_complete\":{\"android\":{\"href\":\"https://www.feishu.cn/\",\"tip\":{\"zh_cn\":\"你好\",\"en_us\":\"hello\"}},\"ios\":{\"href\":\"https://www.feishu.cn/\",\"tip\":{\"zh_cn\":\"你好\",\"en_us\":\"hello\"}},\"pc\":{\"href\":\"https://www.feishu.cn/\",\"tip\":{\"zh_cn\":\"你好\",\"en_us\":\"hello\"}}}}

func (*TaskBuilder) Description

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

任务的描述,类型为文本字符串。;如果要在任务描述中插入 URL 或者 @某个用户,请使用rich_description字段。;<md-alert>;任务备注和任务富文本备注同时存在时只使用富文本备注。;</md-alert>

示例值:对本次会议内容复盘总结,编写更新本季度OKR

func (*TaskBuilder) Due

func (builder *TaskBuilder) Due(due *Due) *TaskBuilder

任务的截止时间设置

示例值:

func (*TaskBuilder) Extra

func (builder *TaskBuilder) Extra(extra string) *TaskBuilder

附属信息。;接入方可以传入base64 编码后的自定义的数据。用户如果需要对当前任务备注信息,但对外不显示,可使用该字段进行存储。;该数据会在获取任务详情时,原样返回给用户。

示例值:dGVzdA==

func (*TaskBuilder) FollowerIds added in v3.0.1

func (builder *TaskBuilder) FollowerIds(followerIds []string) *TaskBuilder

创建任务时添加的关注者用户id列表。;传入的值为 user_id 或 open_id ,由user_id_type 决定。user_id和open_id的获取可见文档:[如何获取相关id](https://open.feishu.cn/document/home/user-identity-introduction/how-to-get)。

示例值:["ou_1400208f15333e20e11339d39067844b", "ou_84ed6312949945c8ae6168f10829e9e6"]

func (*TaskBuilder) Followers

func (builder *TaskBuilder) Followers(followers []*Follower) *TaskBuilder

任务的关注者

示例值:ou_03c21c80caea2c816665f8056dc59027

func (*TaskBuilder) Id

func (builder *TaskBuilder) Id(id string) *TaskBuilder

任务的唯一ID,例如"83912691-2e43-47fc-94a4-d512e03984fa"

示例值:83912691-2e43-47fc-94a4-d512e03984fa

func (*TaskBuilder) Origin

func (builder *TaskBuilder) Origin(origin *Origin) *TaskBuilder

任务关联的第三方平台来源信息

示例值:

func (*TaskBuilder) RepeatRule added in v3.0.1

func (builder *TaskBuilder) RepeatRule(repeatRule string) *TaskBuilder

重复任务的规则表达式。;语法格式参见[RRule语法规范](https://www.ietf.org/rfc/rfc2445.txt) 4.3.10小节

示例值:FREQ=WEEKLY;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR

func (*TaskBuilder) RichDescription added in v3.0.1

func (builder *TaskBuilder) RichDescription(richDescription string) *TaskBuilder

富文本任务备注。语法格式参见[Markdown模块](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/task-v1/markdown-module)

示例值:对本次会议内容复盘总结,编写更新本季度OKR\[飞书开放平台](https://open.feishu.cn/)

func (*TaskBuilder) RichSummary added in v3.0.1

func (builder *TaskBuilder) RichSummary(richSummary string) *TaskBuilder

富文本任务标题。语法格式参见[Markdown模块](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/task-v1/markdown-module);。创建任务时,任务标题(summary字段)和任务富文本标题(rich_summary字段)不能同时为空,需要至少填充其中一个字段。

示例值:完成本季度OKR编写\[飞书开放平台](https://open.feishu.cn/)

func (*TaskBuilder) Source

func (builder *TaskBuilder) Source(source int) *TaskBuilder

任务创建的来源

示例值:6

func (*TaskBuilder) Summary

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

任务的标题,类型为文本字符串。;如果要在任务标题中插入 URL 或者 @某个用户,请使用rich_summary字段。;创建任务时,任务标题(summary字段)和任务富文本标题(rich_summary字段)不能同时为空,需要至少填充其中一个字段。;<md-alert>;任务标题和任务富文本标题同时存在时只使用富文本标题。;</md-alert>

示例值:完成本季度OKR编写

func (*TaskBuilder) UpdateTime

func (builder *TaskBuilder) UpdateTime(updateTime string) *TaskBuilder

任务的更新时间的Unix时间戳(单位为秒);创建任务时update_time与create_time相同

示例值:1623392486

type Tasklist added in v3.0.18

type Tasklist struct {
}

type UncompleteTaskReq

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

type UncompleteTaskReqBuilder

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

func NewUncompleteTaskReqBuilder

func NewUncompleteTaskReqBuilder() *UncompleteTaskReqBuilder

func (*UncompleteTaskReqBuilder) Build

func (builder *UncompleteTaskReqBuilder) Build() *UncompleteTaskReq

func (*UncompleteTaskReqBuilder) TaskId

func (builder *UncompleteTaskReqBuilder) TaskId(taskId string) *UncompleteTaskReqBuilder

任务 ID

示例值:bb54ab99-d360-434f-bcaa-a4cc4c05840e

type UncompleteTaskResp

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

func (*UncompleteTaskResp) Success

func (resp *UncompleteTaskResp) Success() bool

type UpdateTaskCommentPathReqBodyBuilder

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

func NewUpdateTaskCommentPathReqBodyBuilder

func NewUpdateTaskCommentPathReqBodyBuilder() *UpdateTaskCommentPathReqBodyBuilder

func (*UpdateTaskCommentPathReqBodyBuilder) Build

func (*UpdateTaskCommentPathReqBodyBuilder) Content

新的评论内容

示例值:飞流直下三千尺,疑是银河落九天

func (*UpdateTaskCommentPathReqBodyBuilder) RichContent added in v3.0.1

新的富文本评论内容(优先使用)

示例值:飞流直下三千尺,疑是银河落九天<at id=7058204817822318612></at>

type UpdateTaskCommentReq

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

type UpdateTaskCommentReqBody

type UpdateTaskCommentReqBody struct {
	Content     *string `json:"content,omitempty"`      // 新的评论内容
	RichContent *string `json:"rich_content,omitempty"` // 新的富文本评论内容(优先使用)
}

type UpdateTaskCommentReqBodyBuilder

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

func NewUpdateTaskCommentReqBodyBuilder

func NewUpdateTaskCommentReqBodyBuilder() *UpdateTaskCommentReqBodyBuilder

func (*UpdateTaskCommentReqBodyBuilder) Build

func (*UpdateTaskCommentReqBodyBuilder) Content

新的评论内容

示例值:飞流直下三千尺,疑是银河落九天

func (*UpdateTaskCommentReqBodyBuilder) RichContent added in v3.0.1

func (builder *UpdateTaskCommentReqBodyBuilder) RichContent(richContent string) *UpdateTaskCommentReqBodyBuilder

新的富文本评论内容(优先使用)

示例值:飞流直下三千尺,疑是银河落九天<at id=7058204817822318612></at>

type UpdateTaskCommentReqBuilder

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

func NewUpdateTaskCommentReqBuilder

func NewUpdateTaskCommentReqBuilder() *UpdateTaskCommentReqBuilder

func (*UpdateTaskCommentReqBuilder) Body

该接口用于更新评论内容

func (*UpdateTaskCommentReqBuilder) Build

func (*UpdateTaskCommentReqBuilder) CommentId

func (builder *UpdateTaskCommentReqBuilder) CommentId(commentId string) *UpdateTaskCommentReqBuilder

评论 ID

示例值:6937231762296684564

func (*UpdateTaskCommentReqBuilder) TaskId

任务ID

示例值:83912691-2e43-47fc-94a4-d512e03984fa

func (*UpdateTaskCommentReqBuilder) UserIdType added in v3.0.10

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

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

示例值:

type UpdateTaskCommentResp

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

func (*UpdateTaskCommentResp) Success

func (resp *UpdateTaskCommentResp) Success() bool

type UpdateTaskCommentRespData

type UpdateTaskCommentRespData struct {
	Comment *Comment `json:"comment,omitempty"` // 返回修改后的任务评论详情
}

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 UserIdList

type UserIdList struct {
	UserIdList []*UserId `json:"user_id_list,omitempty"` // 用户 ID 列表
}

type UserIdListBuilder

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

func NewUserIdListBuilder

func NewUserIdListBuilder() *UserIdListBuilder

func (*UserIdListBuilder) Build

func (builder *UserIdListBuilder) Build() *UserIdList

func (*UserIdListBuilder) UserIdList

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

用户 ID 列表

示例值:

type V1 added in v3.1.0

type V1 struct {
	Task             *task             // 任务
	TaskCollaborator *taskCollaborator // 执行者
	TaskComment      *taskComment      // 评论
	TaskFollower     *taskFollower     // 关注人
	TaskReminder     *taskReminder     // 提醒
}

func New added in v3.1.0

func New(config *larkcore.Config) *V1

Jump to

Keyboard shortcuts

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