larktask

package
v3.0.0-beta-6 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 6 Imported by: 9

Documentation

Index

Constants

View Source
const (
	UserIdTypeUserId  = "user_id"
	UserIdTypeUnionId = "union_id"
	UserIdTypeOpenId  = "open_id"
)
View Source
const (
	ListDirectionDown = 0
	ListDirectionUp   = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Collaborator

type Collaborator struct {
	Id *string `json:"id,omitempty"`
}

type CollaboratorBuilder

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

builder开始

func NewCollaboratorBuilder

func NewCollaboratorBuilder() *CollaboratorBuilder

func (*CollaboratorBuilder) Build

func (builder *CollaboratorBuilder) Build() *Collaborator

func (*CollaboratorBuilder) Id

type Comment

type Comment struct {
	Content  *string `json:"content,omitempty"`
	ParentId *string `json:"parent_id,omitempty"`
	Id       *string `json:"id,omitempty"`
}

type CommentBuilder

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

builder开始

func NewCommentBuilder

func NewCommentBuilder() *CommentBuilder

func (*CommentBuilder) Build

func (builder *CommentBuilder) Build() *Comment

func (*CommentBuilder) Content

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

func (*CommentBuilder) Id

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

func (*CommentBuilder) ParentId

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

type CompleteTaskReq

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

type CompleteTaskReqBuilder

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

1.4 生成请求的builder结构体

func NewCompleteTaskReqBuilder

func NewCompleteTaskReqBuilder() *CompleteTaskReqBuilder

生成请求的New构造器

func (*CompleteTaskReqBuilder) Build

func (builder *CompleteTaskReqBuilder) Build() *CompleteTaskReq

1.5 生成请求的builder的build方法

func (*CompleteTaskReqBuilder) TaskId

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

1.5 生成请求的builder属性方法

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
}

1.4 生成请求的builder结构体

func NewCreateTaskCollaboratorReqBuilder

func NewCreateTaskCollaboratorReqBuilder() *CreateTaskCollaboratorReqBuilder

生成请求的New构造器

func (*CreateTaskCollaboratorReqBuilder) Build

1.5 生成请求的builder的build方法

func (*CreateTaskCollaboratorReqBuilder) Collaborator

func (*CreateTaskCollaboratorReqBuilder) TaskId

1.5 生成请求的builder属性方法

func (*CreateTaskCollaboratorReqBuilder) UserIdType

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
}

1.4 生成请求的builder结构体

func NewCreateTaskCommentReqBuilder

func NewCreateTaskCommentReqBuilder() *CreateTaskCommentReqBuilder

生成请求的New构造器

func (*CreateTaskCommentReqBuilder) Build

1.5 生成请求的builder的build方法

func (*CreateTaskCommentReqBuilder) Comment

func (*CreateTaskCommentReqBuilder) TaskId

1.5 生成请求的builder属性方法

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
}

1.4 生成请求的builder结构体

func NewCreateTaskFollowerReqBuilder

func NewCreateTaskFollowerReqBuilder() *CreateTaskFollowerReqBuilder

生成请求的New构造器

func (*CreateTaskFollowerReqBuilder) Build

1.5 生成请求的builder的build方法

func (*CreateTaskFollowerReqBuilder) Follower

func (*CreateTaskFollowerReqBuilder) TaskId

1.5 生成请求的builder属性方法

func (*CreateTaskFollowerReqBuilder) UserIdType

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

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
}

1.4 生成请求的builder结构体

func NewCreateTaskReminderReqBuilder

func NewCreateTaskReminderReqBuilder() *CreateTaskReminderReqBuilder

生成请求的New构造器

func (*CreateTaskReminderReqBuilder) Build

1.5 生成请求的builder的build方法

func (*CreateTaskReminderReqBuilder) Reminder

func (*CreateTaskReminderReqBuilder) TaskId

1.5 生成请求的builder属性方法

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
}

1.4 生成请求的builder结构体

func NewCreateTaskReqBuilder

func NewCreateTaskReqBuilder() *CreateTaskReqBuilder

生成请求的New构造器

func (*CreateTaskReqBuilder) Build

func (builder *CreateTaskReqBuilder) Build() *CreateTaskReq

1.5 生成请求的builder的build方法

func (*CreateTaskReqBuilder) Task

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

func (*CreateTaskReqBuilder) UserIdType

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

1.5 生成请求的builder属性方法

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
}

1.4 生成请求的builder结构体

func NewDeleteTaskCollaboratorReqBuilder

func NewDeleteTaskCollaboratorReqBuilder() *DeleteTaskCollaboratorReqBuilder

生成请求的New构造器

func (*DeleteTaskCollaboratorReqBuilder) Build

1.5 生成请求的builder的build方法

func (*DeleteTaskCollaboratorReqBuilder) CollaboratorId

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

func (*DeleteTaskCollaboratorReqBuilder) TaskId

1.5 生成请求的builder属性方法

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
}

1.4 生成请求的builder结构体

func NewDeleteTaskCommentReqBuilder

func NewDeleteTaskCommentReqBuilder() *DeleteTaskCommentReqBuilder

生成请求的New构造器

func (*DeleteTaskCommentReqBuilder) Build

1.5 生成请求的builder的build方法

func (*DeleteTaskCommentReqBuilder) CommentId

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

func (*DeleteTaskCommentReqBuilder) TaskId

1.5 生成请求的builder属性方法

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
}

1.4 生成请求的builder结构体

func NewDeleteTaskFollowerReqBuilder

func NewDeleteTaskFollowerReqBuilder() *DeleteTaskFollowerReqBuilder

生成请求的New构造器

func (*DeleteTaskFollowerReqBuilder) Build

1.5 生成请求的builder的build方法

func (*DeleteTaskFollowerReqBuilder) FollowerId

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

func (*DeleteTaskFollowerReqBuilder) TaskId

1.5 生成请求的builder属性方法

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
}

1.4 生成请求的builder结构体

func NewDeleteTaskReminderReqBuilder

func NewDeleteTaskReminderReqBuilder() *DeleteTaskReminderReqBuilder

生成请求的New构造器

func (*DeleteTaskReminderReqBuilder) Build

1.5 生成请求的builder的build方法

func (*DeleteTaskReminderReqBuilder) ReminderId

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

func (*DeleteTaskReminderReqBuilder) TaskId

1.5 生成请求的builder属性方法

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
}

1.4 生成请求的builder结构体

func NewDeleteTaskReqBuilder

func NewDeleteTaskReqBuilder() *DeleteTaskReqBuilder

生成请求的New构造器

func (*DeleteTaskReqBuilder) Build

func (builder *DeleteTaskReqBuilder) Build() *DeleteTaskReq

1.5 生成请求的builder的build方法

func (*DeleteTaskReqBuilder) TaskId

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

1.5 生成请求的builder属性方法

type DeleteTaskResp

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

func (*DeleteTaskResp) Success

func (resp *DeleteTaskResp) Success() bool

type Due

type Due struct {
	Time     *string `json:"time,omitempty"`
	Timezone *string `json:"timezone,omitempty"`
	IsAllDay *bool   `json:"is_all_day,omitempty"`
}

type DueBuilder

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

builder开始

func NewDueBuilder

func NewDueBuilder() *DueBuilder

func (*DueBuilder) Build

func (builder *DueBuilder) Build() *Due

func (*DueBuilder) IsAllDay

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

func (*DueBuilder) Time

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

func (*DueBuilder) Timezone

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

type Follower

type Follower struct {
	Id *string `json:"id,omitempty"`
}

type FollowerBuilder

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

builder开始

func NewFollowerBuilder

func NewFollowerBuilder() *FollowerBuilder

func (*FollowerBuilder) Build

func (builder *FollowerBuilder) Build() *Follower

func (*FollowerBuilder) Id

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

type GetTaskCommentReq

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

type GetTaskCommentReqBuilder

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

1.4 生成请求的builder结构体

func NewGetTaskCommentReqBuilder

func NewGetTaskCommentReqBuilder() *GetTaskCommentReqBuilder

生成请求的New构造器

func (*GetTaskCommentReqBuilder) Build

func (builder *GetTaskCommentReqBuilder) Build() *GetTaskCommentReq

1.5 生成请求的builder的build方法

func (*GetTaskCommentReqBuilder) CommentId

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

func (*GetTaskCommentReqBuilder) TaskId

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

1.5 生成请求的builder属性方法

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
}

1.4 生成请求的builder结构体

func NewGetTaskReqBuilder

func NewGetTaskReqBuilder() *GetTaskReqBuilder

生成请求的New构造器

func (*GetTaskReqBuilder) Build

func (builder *GetTaskReqBuilder) Build() *GetTaskReq

1.5 生成请求的builder的build方法

func (*GetTaskReqBuilder) TaskId

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

1.5 生成请求的builder属性方法

func (*GetTaskReqBuilder) UserIdType

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

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"`
	Title *string `json:"title,omitempty"`
}

type HrefBuilder

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

builder开始

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

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
}

1.4 生成请求的builder结构体

func NewListTaskCollaboratorReqBuilder

func NewListTaskCollaboratorReqBuilder() *ListTaskCollaboratorReqBuilder

生成请求的New构造器

func (*ListTaskCollaboratorReqBuilder) Build

1.5 生成请求的builder的build方法

func (*ListTaskCollaboratorReqBuilder) Limit

1.5 生成请求的builder属性方法

func (*ListTaskCollaboratorReqBuilder) PageSize

func (*ListTaskCollaboratorReqBuilder) PageToken

func (*ListTaskCollaboratorReqBuilder) TaskId

func (*ListTaskCollaboratorReqBuilder) UserIdType

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

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"`
	PageToken *string         `json:"page_token,omitempty"`
	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
}

1.4 生成请求的builder结构体

func NewListTaskCommentReqBuilder

func NewListTaskCommentReqBuilder() *ListTaskCommentReqBuilder

生成请求的New构造器

func (*ListTaskCommentReqBuilder) Build

1.5 生成请求的builder的build方法

func (*ListTaskCommentReqBuilder) Limit

1.5 生成请求的builder属性方法

func (*ListTaskCommentReqBuilder) ListDirection

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

func (*ListTaskCommentReqBuilder) PageSize

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

func (*ListTaskCommentReqBuilder) PageToken

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

func (*ListTaskCommentReqBuilder) TaskId

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"`
	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
}

1.4 生成请求的builder结构体

func NewListTaskFollowerReqBuilder

func NewListTaskFollowerReqBuilder() *ListTaskFollowerReqBuilder

生成请求的New构造器

func (*ListTaskFollowerReqBuilder) Build

1.5 生成请求的builder的build方法

func (*ListTaskFollowerReqBuilder) Limit

1.5 生成请求的builder属性方法

func (*ListTaskFollowerReqBuilder) PageSize

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

func (*ListTaskFollowerReqBuilder) PageToken

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

func (*ListTaskFollowerReqBuilder) TaskId

func (*ListTaskFollowerReqBuilder) UserIdType

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

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"`
	PageToken *string     `json:"page_token,omitempty"`
	HasMore   *bool       `json:"has_more,omitempty"`
}

type ListTaskIterator

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

生成请求的builder构造器 1.1 生成body的builder结构体

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
}

1.4 生成请求的builder结构体

func NewListTaskReminderReqBuilder

func NewListTaskReminderReqBuilder() *ListTaskReminderReqBuilder

生成请求的New构造器

func (*ListTaskReminderReqBuilder) Build

1.5 生成请求的builder的build方法

func (*ListTaskReminderReqBuilder) Limit

1.5 生成请求的builder属性方法

func (*ListTaskReminderReqBuilder) PageSize

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

func (*ListTaskReminderReqBuilder) PageToken

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

func (*ListTaskReminderReqBuilder) TaskId

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"`
	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
}

1.4 生成请求的builder结构体

func NewListTaskReqBuilder

func NewListTaskReqBuilder() *ListTaskReqBuilder

生成请求的New构造器

func (*ListTaskReqBuilder) Build

func (builder *ListTaskReqBuilder) Build() *ListTaskReq

1.5 生成请求的builder的build方法

func (*ListTaskReqBuilder) EndCreateTime

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

func (*ListTaskReqBuilder) Limit

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

1.5 生成请求的builder属性方法

func (*ListTaskReqBuilder) PageSize

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

func (*ListTaskReqBuilder) PageToken

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

func (*ListTaskReqBuilder) StartCreateTime

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

func (*ListTaskReqBuilder) TaskCompleted

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

func (*ListTaskReqBuilder) UserIdType

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

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"`
	Href             *Href   `json:"href,omitempty"`
}

type OriginBuilder

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

builder开始

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

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"`
	CommentId *string `json:"comment_id,omitempty"`
	ParentId  *string `json:"parent_id,omitempty"`
	ObjType   *int    `json:"obj_type,omitempty"`
}

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"`
	TaskId     *string     `json:"task_id,omitempty"`
	ObjectType *string     `json:"object_type,omitempty"`
	EventType  *string     `json:"event_type,omitempty"`
}

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"`
	ObjType *int    `json:"obj_type,omitempty"`
}

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
}

上传文件path开始

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

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

生成body的New构造器

func (*PatchTaskReqBodyBuilder) Build

func (builder *PatchTaskReqBodyBuilder) Build() *PatchTaskReqBody

1.3 生成body的build方法

func (*PatchTaskReqBodyBuilder) Task

1.2 生成body的builder属性方法

func (*PatchTaskReqBodyBuilder) UpdateFields

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

type PatchTaskReqBuilder

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

1.4 生成请求的builder结构体

func NewPatchTaskReqBuilder

func NewPatchTaskReqBuilder() *PatchTaskReqBuilder

生成请求的New构造器

func (*PatchTaskReqBuilder) Body

func (*PatchTaskReqBuilder) Build

func (builder *PatchTaskReqBuilder) Build() *PatchTaskReq

1.5 生成请求的builder的build方法

func (*PatchTaskReqBuilder) TaskId

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

1.5 生成请求的builder属性方法

func (*PatchTaskReqBuilder) UserIdType

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

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"`
	RelativeFireMinute *int    `json:"relative_fire_minute,omitempty"`
}

type ReminderBuilder

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

builder开始

func NewReminderBuilder

func NewReminderBuilder() *ReminderBuilder

func (*ReminderBuilder) Build

func (builder *ReminderBuilder) Build() *Reminder

func (*ReminderBuilder) Id

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

func (*ReminderBuilder) RelativeFireMinute

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

type Task

type Task struct {
	Id            *string         `json:"id,omitempty"`
	Summary       *string         `json:"summary,omitempty"`
	Description   *string         `json:"description,omitempty"`
	CompleteTime  *string         `json:"complete_time,omitempty"`
	CreatorId     *string         `json:"creator_id,omitempty"`
	Extra         *string         `json:"extra,omitempty"`
	CreateTime    *string         `json:"create_time,omitempty"`
	UpdateTime    *string         `json:"update_time,omitempty"`
	Due           *Due            `json:"due,omitempty"`
	Origin        *Origin         `json:"origin,omitempty"`
	CanEdit       *bool           `json:"can_edit,omitempty"`
	Custom        *string         `json:"custom,omitempty"`
	Source        *int            `json:"source,omitempty"`
	Followers     []*Follower     `json:"followers,omitempty"`
	Collaborators []*Collaborator `json:"collaborators,omitempty"`
}

type TaskBuilder

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

builder开始

func NewTaskBuilder

func NewTaskBuilder() *TaskBuilder

func (*TaskBuilder) Build

func (builder *TaskBuilder) Build() *Task

func (*TaskBuilder) CanEdit

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

func (*TaskBuilder) Collaborators

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

func (*TaskBuilder) CompleteTime

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

func (*TaskBuilder) CreateTime

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

func (*TaskBuilder) CreatorId

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

func (*TaskBuilder) Custom

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

func (*TaskBuilder) Description

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

func (*TaskBuilder) Due

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

func (*TaskBuilder) Extra

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

func (*TaskBuilder) Followers

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

func (*TaskBuilder) Id

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

func (*TaskBuilder) Origin

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

func (*TaskBuilder) Source

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

func (*TaskBuilder) Summary

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

func (*TaskBuilder) UpdateTime

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

type TaskService

type TaskService struct {
	Task             *task
	TaskCollaborator *taskCollaborator
	TaskComment      *taskComment
	TaskFollower     *taskFollower
	TaskReminder     *taskReminder
	// contains filtered or unexported fields
}

业务域服务定义

func NewService

func NewService(config *larkcore.Config) *TaskService

构建业务域服务实例

type UncompleteTaskReq

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

type UncompleteTaskReqBuilder

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

1.4 生成请求的builder结构体

func NewUncompleteTaskReqBuilder

func NewUncompleteTaskReqBuilder() *UncompleteTaskReqBuilder

生成请求的New构造器

func (*UncompleteTaskReqBuilder) Build

func (builder *UncompleteTaskReqBuilder) Build() *UncompleteTaskReq

1.5 生成请求的builder的build方法

func (*UncompleteTaskReqBuilder) TaskId

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

1.5 生成请求的builder属性方法

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
}

上传文件path开始

func NewUpdateTaskCommentPathReqBodyBuilder

func NewUpdateTaskCommentPathReqBodyBuilder() *UpdateTaskCommentPathReqBodyBuilder

func (*UpdateTaskCommentPathReqBodyBuilder) Build

func (*UpdateTaskCommentPathReqBodyBuilder) Content

type UpdateTaskCommentReq

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

type UpdateTaskCommentReqBody

type UpdateTaskCommentReqBody struct {
	Content *string `json:"content,omitempty"`
}

type UpdateTaskCommentReqBodyBuilder

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

func NewUpdateTaskCommentReqBodyBuilder

func NewUpdateTaskCommentReqBodyBuilder() *UpdateTaskCommentReqBodyBuilder

生成body的New构造器

func (*UpdateTaskCommentReqBodyBuilder) Build

1.3 生成body的build方法

func (*UpdateTaskCommentReqBodyBuilder) Content

1.2 生成body的builder属性方法

type UpdateTaskCommentReqBuilder

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

1.4 生成请求的builder结构体

func NewUpdateTaskCommentReqBuilder

func NewUpdateTaskCommentReqBuilder() *UpdateTaskCommentReqBuilder

生成请求的New构造器

func (*UpdateTaskCommentReqBuilder) Body

func (*UpdateTaskCommentReqBuilder) Build

1.5 生成请求的builder的build方法

func (*UpdateTaskCommentReqBuilder) CommentId

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

func (*UpdateTaskCommentReqBuilder) TaskId

1.5 生成请求的builder属性方法

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
}

builder开始

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"`
}

type UserIdListBuilder

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

builder开始

func NewUserIdListBuilder

func NewUserIdListBuilder() *UserIdListBuilder

func (*UserIdListBuilder) Build

func (builder *UserIdListBuilder) Build() *UserIdList

func (*UserIdListBuilder) UserIdList

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

Jump to

Keyboard shortcuts

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