v1

package
v1.1.47 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Code generated by lark suite oapi sdk gen

Code generated by lark suite oapi sdk gen

Code generated by lark suite oapi sdk gen

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetTaskCommentUpdatedEventHandler

func SetTaskCommentUpdatedEventHandler(conf *config.Config, fn func(ctx *core.Context, event *TaskCommentUpdatedEvent) error)

func SetTaskUpdatedEventHandler

func SetTaskUpdatedEventHandler(conf *config.Config, fn func(ctx *core.Context, event *TaskUpdatedEvent) error)

Types

type Collaborator

type Collaborator struct {
	Id              string   `json:"id,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*Collaborator) MarshalJSON

func (s *Collaborator) MarshalJSON() ([]byte, error)

type Comment

type Comment struct {
	Content         string   `json:"content,omitempty"`
	ParentId        int64    `json:"parent_id,omitempty,string"`
	Id              int64    `json:"id,omitempty,string"`
	ForceSendFields []string `json:"-"`
}

func (*Comment) MarshalJSON

func (s *Comment) MarshalJSON() ([]byte, error)

type Due

type Due struct {
	Time            int64    `json:"time,omitempty,string"`
	Timezone        string   `json:"timezone,omitempty"`
	IsAllDay        bool     `json:"is_all_day,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*Due) MarshalJSON

func (s *Due) MarshalJSON() ([]byte, error)

type Follower

type Follower struct {
	Id              string   `json:"id,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*Follower) MarshalJSON

func (s *Follower) MarshalJSON() ([]byte, error)

type Href

type Href struct {
	Url             string   `json:"url,omitempty"`
	Title           string   `json:"title,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*Href) MarshalJSON

func (s *Href) MarshalJSON() ([]byte, error)

type Origin

type Origin struct {
	PlatformI18nName string   `json:"platform_i18n_name,omitempty"`
	Href             *Href    `json:"href,omitempty"`
	ForceSendFields  []string `json:"-"`
}

func (*Origin) MarshalJSON

func (s *Origin) MarshalJSON() ([]byte, error)

type Reminder

type Reminder struct {
	Id                 int64    `json:"id,omitempty,string"`
	RelativeFireMinute int      `json:"relative_fire_minute,omitempty"`
	ForceSendFields    []string `json:"-"`
}

func (*Reminder) MarshalJSON

func (s *Reminder) MarshalJSON() ([]byte, error)

type Service

type Service struct {
	Tasks             *TaskService
	TaskComments      *TaskCommentService
	TaskCollaborators *TaskCollaboratorService
	TaskFollowers     *TaskFollowerService
	TaskReminders     *TaskReminderService
	// contains filtered or unexported fields
}

func NewService

func NewService(conf *config.Config) *Service

type Task

type Task struct {
	Id              string   `json:"id,omitempty"`
	Summary         string   `json:"summary,omitempty"`
	Description     string   `json:"description,omitempty"`
	CompleteTime    int64    `json:"complete_time,omitempty,string"`
	CreatorId       string   `json:"creator_id,omitempty"`
	Extra           string   `json:"extra,omitempty"`
	CreateTime      int64    `json:"create_time,omitempty,string"`
	UpdateTime      int64    `json:"update_time,omitempty,string"`
	Due             *Due     `json:"due,omitempty"`
	Origin          *Origin  `json:"origin,omitempty"`
	CanEdit         bool     `json:"can_edit,omitempty"`
	Custom          string   `json:"custom,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*Task) MarshalJSON

func (s *Task) MarshalJSON() ([]byte, error)

type TaskCollaboratorCreateReqCall

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

func (*TaskCollaboratorCreateReqCall) Do

func (*TaskCollaboratorCreateReqCall) SetTaskId

func (rc *TaskCollaboratorCreateReqCall) SetTaskId(taskId string)

func (*TaskCollaboratorCreateReqCall) SetUserIdType

func (rc *TaskCollaboratorCreateReqCall) SetUserIdType(userIdType string)

type TaskCollaboratorCreateResult

type TaskCollaboratorCreateResult struct {
	Collaborator *Collaborator `json:"collaborator,omitempty"`
}

type TaskCollaboratorDeleteReqCall

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

func (*TaskCollaboratorDeleteReqCall) Do

func (*TaskCollaboratorDeleteReqCall) SetCollaboratorId

func (rc *TaskCollaboratorDeleteReqCall) SetCollaboratorId(collaboratorId string)

func (*TaskCollaboratorDeleteReqCall) SetTaskId

func (rc *TaskCollaboratorDeleteReqCall) SetTaskId(taskId string)

type TaskCollaboratorListReqCall

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

func (*TaskCollaboratorListReqCall) Do

func (*TaskCollaboratorListReqCall) SetPageSize

func (rc *TaskCollaboratorListReqCall) SetPageSize(pageSize int)

func (*TaskCollaboratorListReqCall) SetPageToken

func (rc *TaskCollaboratorListReqCall) SetPageToken(pageToken string)

func (*TaskCollaboratorListReqCall) SetTaskId

func (rc *TaskCollaboratorListReqCall) SetTaskId(taskId string)

func (*TaskCollaboratorListReqCall) SetUserIdType

func (rc *TaskCollaboratorListReqCall) SetUserIdType(userIdType string)

type TaskCollaboratorListResult

type TaskCollaboratorListResult struct {
	Items     []*Collaborator `json:"items,omitempty"`
	PageToken string          `json:"page_token,omitempty"`
	HasMore   bool            `json:"has_more,omitempty"`
}

type TaskCollaboratorService

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

func (*TaskCollaboratorService) Create

func (taskCollaborators *TaskCollaboratorService) Create(ctx *core.Context, body *Collaborator, optFns ...request.OptFn) *TaskCollaboratorCreateReqCall

func (*TaskCollaboratorService) Delete

func (taskCollaborators *TaskCollaboratorService) Delete(ctx *core.Context, optFns ...request.OptFn) *TaskCollaboratorDeleteReqCall

func (*TaskCollaboratorService) List

func (taskCollaborators *TaskCollaboratorService) List(ctx *core.Context, optFns ...request.OptFn) *TaskCollaboratorListReqCall

type TaskCommentCreateReqCall

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

func (*TaskCommentCreateReqCall) Do

func (*TaskCommentCreateReqCall) SetTaskId

func (rc *TaskCommentCreateReqCall) SetTaskId(taskId string)

type TaskCommentCreateResult

type TaskCommentCreateResult struct {
	Comment *Comment `json:"comment,omitempty"`
}

type TaskCommentDeleteReqCall

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

func (*TaskCommentDeleteReqCall) Do

func (*TaskCommentDeleteReqCall) SetCommentId

func (rc *TaskCommentDeleteReqCall) SetCommentId(commentId int64)

func (*TaskCommentDeleteReqCall) SetTaskId

func (rc *TaskCommentDeleteReqCall) SetTaskId(taskId string)

type TaskCommentGetReqCall

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

func (*TaskCommentGetReqCall) Do

func (*TaskCommentGetReqCall) SetCommentId

func (rc *TaskCommentGetReqCall) SetCommentId(commentId int64)

func (*TaskCommentGetReqCall) SetTaskId

func (rc *TaskCommentGetReqCall) SetTaskId(taskId string)

type TaskCommentGetResult

type TaskCommentGetResult struct {
	Comment *Comment `json:"comment,omitempty"`
}

type TaskCommentService

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

func (*TaskCommentService) Create

func (taskComments *TaskCommentService) Create(ctx *core.Context, body *Comment, optFns ...request.OptFn) *TaskCommentCreateReqCall

func (*TaskCommentService) Delete

func (taskComments *TaskCommentService) Delete(ctx *core.Context, optFns ...request.OptFn) *TaskCommentDeleteReqCall

func (*TaskCommentService) Get

func (taskComments *TaskCommentService) Get(ctx *core.Context, optFns ...request.OptFn) *TaskCommentGetReqCall

func (*TaskCommentService) Update

func (taskComments *TaskCommentService) Update(ctx *core.Context, body *TaskCommentUpdateReqBody, optFns ...request.OptFn) *TaskCommentUpdateReqCall

type TaskCommentUpdateReqBody

type TaskCommentUpdateReqBody struct {
	Content         string   `json:"content,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*TaskCommentUpdateReqBody) MarshalJSON

func (s *TaskCommentUpdateReqBody) MarshalJSON() ([]byte, error)

type TaskCommentUpdateReqCall

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

func (*TaskCommentUpdateReqCall) Do

func (*TaskCommentUpdateReqCall) SetCommentId

func (rc *TaskCommentUpdateReqCall) SetCommentId(commentId int64)

func (*TaskCommentUpdateReqCall) SetTaskId

func (rc *TaskCommentUpdateReqCall) SetTaskId(taskId string)

type TaskCommentUpdateResult

type TaskCommentUpdateResult struct {
	Comment *Comment `json:"comment,omitempty"`
}

type TaskCommentUpdatedEvent

type TaskCommentUpdatedEvent struct {
	*model.BaseEventV2
	Event *TaskCommentUpdatedEventData `json:"event"`
}

type TaskCommentUpdatedEventData

type TaskCommentUpdatedEventData 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 TaskCommentUpdatedEventHandler

type TaskCommentUpdatedEventHandler struct {
	Fn func(*core.Context, *TaskCommentUpdatedEvent) error
}

func (*TaskCommentUpdatedEventHandler) GetEvent

func (h *TaskCommentUpdatedEventHandler) GetEvent() interface{}

func (*TaskCommentUpdatedEventHandler) Handle

func (h *TaskCommentUpdatedEventHandler) Handle(ctx *core.Context, event interface{}) error

type TaskCompleteReqCall

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

func (*TaskCompleteReqCall) Do

func (*TaskCompleteReqCall) SetTaskId

func (rc *TaskCompleteReqCall) SetTaskId(taskId string)

type TaskCreateReqCall

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

func (*TaskCreateReqCall) Do

func (*TaskCreateReqCall) SetUserIdType

func (rc *TaskCreateReqCall) SetUserIdType(userIdType string)

type TaskCreateResult

type TaskCreateResult struct {
	Task *Task `json:"task,omitempty"`
}

type TaskDeleteReqCall

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

func (*TaskDeleteReqCall) Do

func (rc *TaskDeleteReqCall) Do() (*response.NoData, error)

func (*TaskDeleteReqCall) SetTaskId

func (rc *TaskDeleteReqCall) SetTaskId(taskId string)

type TaskFollowerCreateReqCall

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

func (*TaskFollowerCreateReqCall) Do

func (*TaskFollowerCreateReqCall) SetTaskId

func (rc *TaskFollowerCreateReqCall) SetTaskId(taskId string)

func (*TaskFollowerCreateReqCall) SetUserIdType

func (rc *TaskFollowerCreateReqCall) SetUserIdType(userIdType string)

type TaskFollowerCreateResult

type TaskFollowerCreateResult struct {
	Follower *Follower `json:"follower,omitempty"`
}

type TaskFollowerDeleteReqCall

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

func (*TaskFollowerDeleteReqCall) Do

func (*TaskFollowerDeleteReqCall) SetFollowerId

func (rc *TaskFollowerDeleteReqCall) SetFollowerId(followerId string)

func (*TaskFollowerDeleteReqCall) SetTaskId

func (rc *TaskFollowerDeleteReqCall) SetTaskId(taskId string)

type TaskFollowerListReqCall

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

func (*TaskFollowerListReqCall) Do

func (*TaskFollowerListReqCall) SetPageSize

func (rc *TaskFollowerListReqCall) SetPageSize(pageSize int)

func (*TaskFollowerListReqCall) SetPageToken

func (rc *TaskFollowerListReqCall) SetPageToken(pageToken string)

func (*TaskFollowerListReqCall) SetTaskId

func (rc *TaskFollowerListReqCall) SetTaskId(taskId string)

func (*TaskFollowerListReqCall) SetUserIdType

func (rc *TaskFollowerListReqCall) SetUserIdType(userIdType string)

type TaskFollowerListResult

type TaskFollowerListResult struct {
	Items     []*Follower `json:"items,omitempty"`
	PageToken string      `json:"page_token,omitempty"`
	HasMore   bool        `json:"has_more,omitempty"`
}

type TaskFollowerService

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

func (*TaskFollowerService) Create

func (taskFollowers *TaskFollowerService) Create(ctx *core.Context, body *Follower, optFns ...request.OptFn) *TaskFollowerCreateReqCall

func (*TaskFollowerService) Delete

func (taskFollowers *TaskFollowerService) Delete(ctx *core.Context, optFns ...request.OptFn) *TaskFollowerDeleteReqCall

func (*TaskFollowerService) List

func (taskFollowers *TaskFollowerService) List(ctx *core.Context, optFns ...request.OptFn) *TaskFollowerListReqCall

type TaskGetReqCall

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

func (*TaskGetReqCall) Do

func (rc *TaskGetReqCall) Do() (*TaskGetResult, error)

func (*TaskGetReqCall) SetTaskId

func (rc *TaskGetReqCall) SetTaskId(taskId string)

func (*TaskGetReqCall) SetUserIdType

func (rc *TaskGetReqCall) SetUserIdType(userIdType string)

type TaskGetResult

type TaskGetResult struct {
	Task *Task `json:"task,omitempty"`
}

type TaskPatchReqBody

type TaskPatchReqBody struct {
	Task            *Task    `json:"task,omitempty"`
	UpdateFields    []string `json:"update_fields,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*TaskPatchReqBody) MarshalJSON

func (s *TaskPatchReqBody) MarshalJSON() ([]byte, error)

type TaskPatchReqCall

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

func (*TaskPatchReqCall) Do

func (rc *TaskPatchReqCall) Do() (*TaskPatchResult, error)

func (*TaskPatchReqCall) SetTaskId

func (rc *TaskPatchReqCall) SetTaskId(taskId string)

func (*TaskPatchReqCall) SetUserIdType

func (rc *TaskPatchReqCall) SetUserIdType(userIdType string)

type TaskPatchResult

type TaskPatchResult struct {
	Task *Task `json:"task,omitempty"`
}

type TaskReminderCreateReqCall

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

func (*TaskReminderCreateReqCall) Do

func (*TaskReminderCreateReqCall) SetTaskId

func (rc *TaskReminderCreateReqCall) SetTaskId(taskId string)

type TaskReminderCreateResult

type TaskReminderCreateResult struct {
	Reminder *Reminder `json:"reminder,omitempty"`
}

type TaskReminderDeleteReqCall

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

func (*TaskReminderDeleteReqCall) Do

func (*TaskReminderDeleteReqCall) SetReminderId

func (rc *TaskReminderDeleteReqCall) SetReminderId(reminderId string)

func (*TaskReminderDeleteReqCall) SetTaskId

func (rc *TaskReminderDeleteReqCall) SetTaskId(taskId string)

type TaskReminderListReqCall

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

func (*TaskReminderListReqCall) Do

func (*TaskReminderListReqCall) SetPageSize

func (rc *TaskReminderListReqCall) SetPageSize(pageSize int)

func (*TaskReminderListReqCall) SetPageToken

func (rc *TaskReminderListReqCall) SetPageToken(pageToken string)

func (*TaskReminderListReqCall) SetTaskId

func (rc *TaskReminderListReqCall) SetTaskId(taskId string)

type TaskReminderListResult

type TaskReminderListResult struct {
	Items     []*Reminder `json:"items,omitempty"`
	PageToken string      `json:"page_token,omitempty"`
	HasMore   bool        `json:"has_more,omitempty"`
}

type TaskReminderService

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

func (*TaskReminderService) Create

func (taskReminders *TaskReminderService) Create(ctx *core.Context, body *Reminder, optFns ...request.OptFn) *TaskReminderCreateReqCall

func (*TaskReminderService) Delete

func (taskReminders *TaskReminderService) Delete(ctx *core.Context, optFns ...request.OptFn) *TaskReminderDeleteReqCall

func (*TaskReminderService) List

func (taskReminders *TaskReminderService) List(ctx *core.Context, optFns ...request.OptFn) *TaskReminderListReqCall

type TaskService

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

func (*TaskService) Complete

func (tasks *TaskService) Complete(ctx *core.Context, optFns ...request.OptFn) *TaskCompleteReqCall

func (*TaskService) Create

func (tasks *TaskService) Create(ctx *core.Context, body *Task, optFns ...request.OptFn) *TaskCreateReqCall

func (*TaskService) Delete

func (tasks *TaskService) Delete(ctx *core.Context, optFns ...request.OptFn) *TaskDeleteReqCall

func (*TaskService) Get

func (tasks *TaskService) Get(ctx *core.Context, optFns ...request.OptFn) *TaskGetReqCall

func (*TaskService) Patch

func (tasks *TaskService) Patch(ctx *core.Context, body *TaskPatchReqBody, optFns ...request.OptFn) *TaskPatchReqCall

func (*TaskService) Uncomplete

func (tasks *TaskService) Uncomplete(ctx *core.Context, optFns ...request.OptFn) *TaskUncompleteReqCall

type TaskUncompleteReqCall

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

func (*TaskUncompleteReqCall) Do

func (*TaskUncompleteReqCall) SetTaskId

func (rc *TaskUncompleteReqCall) SetTaskId(taskId string)

type TaskUpdatedEvent

type TaskUpdatedEvent struct {
	*model.BaseEventV2
	Event *TaskUpdatedEventData `json:"event"`
}

type TaskUpdatedEventData

type TaskUpdatedEventData struct {
	TaskId  string `json:"task_id,omitempty"`
	ObjType int    `json:"obj_type,omitempty"`
}

type TaskUpdatedEventHandler

type TaskUpdatedEventHandler struct {
	Fn func(*core.Context, *TaskUpdatedEvent) error
}

func (*TaskUpdatedEventHandler) GetEvent

func (h *TaskUpdatedEventHandler) GetEvent() interface{}

func (*TaskUpdatedEventHandler) Handle

func (h *TaskUpdatedEventHandler) Handle(ctx *core.Context, event interface{}) error

Jump to

Keyboard shortcuts

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