v1

package
v1.1.26 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: MIT Imports: 10 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 SetFileDeletedEventHandler added in v1.1.23

func SetFileDeletedEventHandler(conf *config.Config, fn func(ctx *core.Context, event *FileDeletedEvent) error)

func SetFilePermissionMemberAddedEventHandler added in v1.1.23

func SetFilePermissionMemberAddedEventHandler(conf *config.Config, fn func(ctx *core.Context, event *FilePermissionMemberAddedEvent) error)

func SetFilePermissionMemberRemovedEventHandler added in v1.1.23

func SetFilePermissionMemberRemovedEventHandler(conf *config.Config, fn func(ctx *core.Context, event *FilePermissionMemberRemovedEvent) error)

func SetFileReadEventHandler added in v1.1.23

func SetFileReadEventHandler(conf *config.Config, fn func(ctx *core.Context, event *FileReadEvent) error)

func SetFileTitleUpdatedEventHandler added in v1.1.23

func SetFileTitleUpdatedEventHandler(conf *config.Config, fn func(ctx *core.Context, event *FileTitleUpdatedEvent) error)

func SetFileTrashedEventHandler added in v1.1.23

func SetFileTrashedEventHandler(conf *config.Config, fn func(ctx *core.Context, event *FileTrashedEvent) error)

Types

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

func (*DocsLink) MarshalJSON added in v1.1.23

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

type File

type File struct {
	FileToken       string   `json:"file_token,omitempty"`
	FileName        string   `json:"file_name,omitempty"`
	Size            int      `json:"size,omitempty"`
	MimeType        string   `json:"mime_type,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*File) MarshalJSON added in v1.1.23

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

type FileComment added in v1.1.23

type FileComment struct {
	CommentId       string     `json:"comment_id,omitempty"`
	UserId          string     `json:"user_id,omitempty"`
	CreateTime      int        `json:"create_time,omitempty"`
	UpdateTime      int        `json:"update_time,omitempty"`
	IsSolved        bool       `json:"is_solved,omitempty"`
	SolvedTime      int        `json:"solved_time,omitempty"`
	SolverUserId    string     `json:"solver_user_id,omitempty"`
	ReplyList       *ReplyList `json:"reply_list,omitempty"`
	ForceSendFields []string   `json:"-"`
}

func (*FileComment) MarshalJSON added in v1.1.23

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

type FileCommentCreateReqCall added in v1.1.23

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

func (*FileCommentCreateReqCall) Do added in v1.1.23

func (*FileCommentCreateReqCall) SetFileToken added in v1.1.23

func (rc *FileCommentCreateReqCall) SetFileToken(fileToken string)

func (*FileCommentCreateReqCall) SetFileType added in v1.1.23

func (rc *FileCommentCreateReqCall) SetFileType(fileType string)

func (*FileCommentCreateReqCall) SetUserIdType added in v1.1.23

func (rc *FileCommentCreateReqCall) SetUserIdType(userIdType string)

type FileCommentGetReqCall added in v1.1.23

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

func (*FileCommentGetReqCall) Do added in v1.1.23

func (*FileCommentGetReqCall) SetCommentId added in v1.1.23

func (rc *FileCommentGetReqCall) SetCommentId(commentId int64)

func (*FileCommentGetReqCall) SetFileToken added in v1.1.23

func (rc *FileCommentGetReqCall) SetFileToken(fileToken string)

func (*FileCommentGetReqCall) SetFileType added in v1.1.23

func (rc *FileCommentGetReqCall) SetFileType(fileType string)

func (*FileCommentGetReqCall) SetUserIdType added in v1.1.23

func (rc *FileCommentGetReqCall) SetUserIdType(userIdType string)

type FileCommentListReqCall added in v1.1.23

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

func (*FileCommentListReqCall) Do added in v1.1.23

func (*FileCommentListReqCall) SetFileToken added in v1.1.23

func (rc *FileCommentListReqCall) SetFileToken(fileToken string)

func (*FileCommentListReqCall) SetFileType added in v1.1.23

func (rc *FileCommentListReqCall) SetFileType(fileType string)

func (*FileCommentListReqCall) SetIsSolved added in v1.1.23

func (rc *FileCommentListReqCall) SetIsSolved(isSolved bool)

func (*FileCommentListReqCall) SetPageSize added in v1.1.23

func (rc *FileCommentListReqCall) SetPageSize(pageSize int)

func (*FileCommentListReqCall) SetPageToken added in v1.1.23

func (rc *FileCommentListReqCall) SetPageToken(pageToken string)

func (*FileCommentListReqCall) SetUserIdType added in v1.1.23

func (rc *FileCommentListReqCall) SetUserIdType(userIdType string)

type FileCommentListResult added in v1.1.23

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

type FileCommentPatchReqBody added in v1.1.23

type FileCommentPatchReqBody struct {
	IsSolved        bool     `json:"is_solved,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*FileCommentPatchReqBody) MarshalJSON added in v1.1.23

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

type FileCommentPatchReqCall added in v1.1.23

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

func (*FileCommentPatchReqCall) Do added in v1.1.23

func (*FileCommentPatchReqCall) SetCommentId added in v1.1.23

func (rc *FileCommentPatchReqCall) SetCommentId(commentId int64)

func (*FileCommentPatchReqCall) SetFileToken added in v1.1.23

func (rc *FileCommentPatchReqCall) SetFileToken(fileToken string)

func (*FileCommentPatchReqCall) SetFileType added in v1.1.23

func (rc *FileCommentPatchReqCall) SetFileType(fileType string)

type FileCommentReply added in v1.1.23

type FileCommentReply struct {
	ReplyId         string        `json:"reply_id,omitempty"`
	UserId          string        `json:"user_id,omitempty"`
	CreateTime      int           `json:"create_time,omitempty"`
	UpdateTime      int           `json:"update_time,omitempty"`
	Content         *ReplyContent `json:"content,omitempty"`
	ForceSendFields []string      `json:"-"`
}

func (*FileCommentReply) MarshalJSON added in v1.1.23

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

type FileCommentReplyDeleteReqCall added in v1.1.23

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

func (*FileCommentReplyDeleteReqCall) Do added in v1.1.23

func (*FileCommentReplyDeleteReqCall) SetCommentId added in v1.1.23

func (rc *FileCommentReplyDeleteReqCall) SetCommentId(commentId int64)

func (*FileCommentReplyDeleteReqCall) SetFileToken added in v1.1.23

func (rc *FileCommentReplyDeleteReqCall) SetFileToken(fileToken string)

func (*FileCommentReplyDeleteReqCall) SetFileType added in v1.1.23

func (rc *FileCommentReplyDeleteReqCall) SetFileType(fileType string)

func (*FileCommentReplyDeleteReqCall) SetReplyId added in v1.1.23

func (rc *FileCommentReplyDeleteReqCall) SetReplyId(replyId int64)

type FileCommentReplyService added in v1.1.23

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

func (*FileCommentReplyService) Delete added in v1.1.23

func (fileCommentReplys *FileCommentReplyService) Delete(ctx *core.Context, optFns ...request.OptFn) *FileCommentReplyDeleteReqCall

func (*FileCommentReplyService) Update added in v1.1.23

type FileCommentReplyUpdateReqBody added in v1.1.23

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

func (*FileCommentReplyUpdateReqBody) MarshalJSON added in v1.1.23

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

type FileCommentReplyUpdateReqCall added in v1.1.23

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

func (*FileCommentReplyUpdateReqCall) Do added in v1.1.23

func (*FileCommentReplyUpdateReqCall) SetCommentId added in v1.1.23

func (rc *FileCommentReplyUpdateReqCall) SetCommentId(commentId int64)

func (*FileCommentReplyUpdateReqCall) SetFileToken added in v1.1.23

func (rc *FileCommentReplyUpdateReqCall) SetFileToken(fileToken string)

func (*FileCommentReplyUpdateReqCall) SetFileType added in v1.1.23

func (rc *FileCommentReplyUpdateReqCall) SetFileType(fileType string)

func (*FileCommentReplyUpdateReqCall) SetReplyId added in v1.1.23

func (rc *FileCommentReplyUpdateReqCall) SetReplyId(replyId int64)

type FileCommentService added in v1.1.23

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

func (*FileCommentService) Create added in v1.1.23

func (fileComments *FileCommentService) Create(ctx *core.Context, body *FileComment, optFns ...request.OptFn) *FileCommentCreateReqCall

func (*FileCommentService) Get added in v1.1.23

func (fileComments *FileCommentService) Get(ctx *core.Context, optFns ...request.OptFn) *FileCommentGetReqCall

func (*FileCommentService) List added in v1.1.23

func (fileComments *FileCommentService) List(ctx *core.Context, optFns ...request.OptFn) *FileCommentListReqCall

func (*FileCommentService) Patch added in v1.1.23

func (fileComments *FileCommentService) Patch(ctx *core.Context, body *FileCommentPatchReqBody, optFns ...request.OptFn) *FileCommentPatchReqCall

type FileDeletedEvent added in v1.1.23

type FileDeletedEvent struct {
	*model.BaseEventV2
	Event *FileDeletedEventData `json:"event"`
}

type FileDeletedEventData added in v1.1.23

type FileDeletedEventData struct {
	FileType   string  `json:"file_type,omitempty"`
	FileToken  string  `json:"file_token,omitempty"`
	OperatorId *UserId `json:"operator_id,omitempty"`
}

type FileDeletedEventHandler added in v1.1.23

type FileDeletedEventHandler struct {
	Fn func(*core.Context, *FileDeletedEvent) error
}

func (*FileDeletedEventHandler) GetEvent added in v1.1.23

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

func (*FileDeletedEventHandler) Handle added in v1.1.23

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

type FileDownloadReqCall added in v1.1.19

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

func (*FileDownloadReqCall) Do added in v1.1.19

func (rc *FileDownloadReqCall) Do() (io.Writer, error)

func (*FileDownloadReqCall) SetFileToken added in v1.1.19

func (rc *FileDownloadReqCall) SetFileToken(fileToken string)

func (*FileDownloadReqCall) SetResponseStream added in v1.1.19

func (rc *FileDownloadReqCall) SetResponseStream(result io.Writer)

type FilePermissionMemberAddedEvent added in v1.1.23

type FilePermissionMemberAddedEvent struct {
	*model.BaseEventV2
	Event *FilePermissionMemberAddedEventData `json:"event"`
}

type FilePermissionMemberAddedEventData added in v1.1.23

type FilePermissionMemberAddedEventData struct {
	FileType   string    `json:"file_type,omitempty"`
	FileToken  string    `json:"file_token,omitempty"`
	OperatorId *UserId   `json:"operator_id,omitempty"`
	UserList   []*UserId `json:"user_list,omitempty"`
	ChatList   []string  `json:"chat_list,omitempty"`
}

type FilePermissionMemberAddedEventHandler added in v1.1.23

type FilePermissionMemberAddedEventHandler struct {
	Fn func(*core.Context, *FilePermissionMemberAddedEvent) error
}

func (*FilePermissionMemberAddedEventHandler) GetEvent added in v1.1.23

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

func (*FilePermissionMemberAddedEventHandler) Handle added in v1.1.23

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

type FilePermissionMemberRemovedEvent added in v1.1.23

type FilePermissionMemberRemovedEvent struct {
	*model.BaseEventV2
	Event *FilePermissionMemberRemovedEventData `json:"event"`
}

type FilePermissionMemberRemovedEventData added in v1.1.23

type FilePermissionMemberRemovedEventData struct {
	FileType   string    `json:"file_type,omitempty"`
	FileToken  string    `json:"file_token,omitempty"`
	OperatorId *UserId   `json:"operator_id,omitempty"`
	UserList   []*UserId `json:"user_list,omitempty"`
	ChatList   []string  `json:"chat_list,omitempty"`
}

type FilePermissionMemberRemovedEventHandler added in v1.1.23

type FilePermissionMemberRemovedEventHandler struct {
	Fn func(*core.Context, *FilePermissionMemberRemovedEvent) error
}

func (*FilePermissionMemberRemovedEventHandler) GetEvent added in v1.1.23

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

func (*FilePermissionMemberRemovedEventHandler) Handle added in v1.1.23

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

type FileReadEvent added in v1.1.23

type FileReadEvent struct {
	*model.BaseEventV2
	Event *FileReadEventData `json:"event"`
}

type FileReadEventData added in v1.1.23

type FileReadEventData struct {
	FileType       string    `json:"file_type,omitempty"`
	FileToken      string    `json:"file_token,omitempty"`
	OperatorIdList []*UserId `json:"operator_id_list,omitempty"`
}

type FileReadEventHandler added in v1.1.23

type FileReadEventHandler struct {
	Fn func(*core.Context, *FileReadEvent) error
}

func (*FileReadEventHandler) GetEvent added in v1.1.23

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

func (*FileReadEventHandler) Handle added in v1.1.23

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

type FileService

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

func (*FileService) Download added in v1.1.19

func (files *FileService) Download(ctx *core.Context, optFns ...request.OptFn) *FileDownloadReqCall

func (*FileService) Subscribe added in v1.1.23

func (files *FileService) Subscribe(ctx *core.Context, optFns ...request.OptFn) *FileSubscribeReqCall

func (*FileService) UploadAll

func (files *FileService) UploadAll(ctx *core.Context, optFns ...request.OptFn) *FileUploadAllReqCall

func (*FileService) UploadFinish

func (files *FileService) UploadFinish(ctx *core.Context, body *FileUploadFinishReqBody, optFns ...request.OptFn) *FileUploadFinishReqCall

func (*FileService) UploadPart

func (files *FileService) UploadPart(ctx *core.Context, optFns ...request.OptFn) *FileUploadPartReqCall

func (*FileService) UploadPrepare

func (files *FileService) UploadPrepare(ctx *core.Context, body *UploadInfo, optFns ...request.OptFn) *FileUploadPrepareReqCall

type FileSubscribeReqCall added in v1.1.23

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

func (*FileSubscribeReqCall) Do added in v1.1.23

func (*FileSubscribeReqCall) SetFileToken added in v1.1.23

func (rc *FileSubscribeReqCall) SetFileToken(fileToken string)

func (*FileSubscribeReqCall) SetFileType added in v1.1.23

func (rc *FileSubscribeReqCall) SetFileType(fileType string)

type FileTitleUpdatedEvent added in v1.1.23

type FileTitleUpdatedEvent struct {
	*model.BaseEventV2
	Event *FileTitleUpdatedEventData `json:"event"`
}

type FileTitleUpdatedEventData added in v1.1.23

type FileTitleUpdatedEventData struct {
	FileType   string  `json:"file_type,omitempty"`
	FileToken  string  `json:"file_token,omitempty"`
	OperatorId *UserId `json:"operator_id,omitempty"`
}

type FileTitleUpdatedEventHandler added in v1.1.23

type FileTitleUpdatedEventHandler struct {
	Fn func(*core.Context, *FileTitleUpdatedEvent) error
}

func (*FileTitleUpdatedEventHandler) GetEvent added in v1.1.23

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

func (*FileTitleUpdatedEventHandler) Handle added in v1.1.23

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

type FileTrashedEvent added in v1.1.23

type FileTrashedEvent struct {
	*model.BaseEventV2
	Event *FileTrashedEventData `json:"event"`
}

type FileTrashedEventData added in v1.1.23

type FileTrashedEventData struct {
	FileType   string  `json:"file_type,omitempty"`
	FileToken  string  `json:"file_token,omitempty"`
	OperatorId *UserId `json:"operator_id,omitempty"`
}

type FileTrashedEventHandler added in v1.1.23

type FileTrashedEventHandler struct {
	Fn func(*core.Context, *FileTrashedEvent) error
}

func (*FileTrashedEventHandler) GetEvent added in v1.1.23

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

func (*FileTrashedEventHandler) Handle added in v1.1.23

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

type FileUploadAllReqCall

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

func (*FileUploadAllReqCall) Do

func (*FileUploadAllReqCall) SetChecksum

func (rc *FileUploadAllReqCall) SetChecksum(checksum string)

func (*FileUploadAllReqCall) SetFile

func (rc *FileUploadAllReqCall) SetFile(file *request.File)

func (*FileUploadAllReqCall) SetFileName

func (rc *FileUploadAllReqCall) SetFileName(fileName string)

func (*FileUploadAllReqCall) SetParentNode

func (rc *FileUploadAllReqCall) SetParentNode(parentNode string)

func (*FileUploadAllReqCall) SetParentType

func (rc *FileUploadAllReqCall) SetParentType(parentType string)

func (*FileUploadAllReqCall) SetSize

func (rc *FileUploadAllReqCall) SetSize(size int)

type FileUploadAllResult

type FileUploadAllResult struct {
	FileToken string `json:"file_token,omitempty"`
}

type FileUploadFinishReqBody

type FileUploadFinishReqBody struct {
	UploadId        string   `json:"upload_id,omitempty"`
	BlockNum        int      `json:"block_num,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*FileUploadFinishReqBody) MarshalJSON added in v1.1.23

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

type FileUploadFinishReqCall

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

func (*FileUploadFinishReqCall) Do

type FileUploadFinishResult

type FileUploadFinishResult struct {
	FileToken string `json:"file_token,omitempty"`
}

type FileUploadPartReqCall

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

func (*FileUploadPartReqCall) Do

func (*FileUploadPartReqCall) SetChecksum

func (rc *FileUploadPartReqCall) SetChecksum(checksum string)

func (*FileUploadPartReqCall) SetFile

func (rc *FileUploadPartReqCall) SetFile(file *request.File)

func (*FileUploadPartReqCall) SetSeq

func (rc *FileUploadPartReqCall) SetSeq(seq int)

func (*FileUploadPartReqCall) SetSize

func (rc *FileUploadPartReqCall) SetSize(size int)

func (*FileUploadPartReqCall) SetUploadId

func (rc *FileUploadPartReqCall) SetUploadId(uploadId string)

type FileUploadPrepareReqCall

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

func (*FileUploadPrepareReqCall) Do

type FileUploadPrepareResult

type FileUploadPrepareResult struct {
	UploadId  string `json:"upload_id,omitempty"`
	BlockSize int    `json:"block_size,omitempty"`
	BlockNum  int    `json:"block_num,omitempty"`
}

type Media

type Media struct {
	FileToken       string   `json:"file_token,omitempty"`
	FileName        string   `json:"file_name,omitempty"`
	Size            int      `json:"size,omitempty"`
	MimeType        string   `json:"mime_type,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*Media) MarshalJSON added in v1.1.23

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

type MediaBatchGetTmpDownloadUrlReqCall added in v1.1.19

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

func (*MediaBatchGetTmpDownloadUrlReqCall) Do added in v1.1.19

func (*MediaBatchGetTmpDownloadUrlReqCall) SetFileTokens added in v1.1.19

func (rc *MediaBatchGetTmpDownloadUrlReqCall) SetFileTokens(fileTokens ...string)

type MediaBatchGetTmpDownloadUrlResult added in v1.1.19

type MediaBatchGetTmpDownloadUrlResult struct {
	TmpDownloadUrls []*TmpDownloadUrl `json:"tmp_download_urls,omitempty"`
}

type MediaDownloadReqCall added in v1.1.19

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

func (*MediaDownloadReqCall) Do added in v1.1.19

func (rc *MediaDownloadReqCall) Do() (io.Writer, error)

func (*MediaDownloadReqCall) SetFileToken added in v1.1.19

func (rc *MediaDownloadReqCall) SetFileToken(fileToken string)

func (*MediaDownloadReqCall) SetResponseStream added in v1.1.19

func (rc *MediaDownloadReqCall) SetResponseStream(result io.Writer)

type MediaService

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

func (*MediaService) BatchGetTmpDownloadUrl added in v1.1.19

func (medias *MediaService) BatchGetTmpDownloadUrl(ctx *core.Context, optFns ...request.OptFn) *MediaBatchGetTmpDownloadUrlReqCall

func (*MediaService) Download added in v1.1.19

func (medias *MediaService) Download(ctx *core.Context, optFns ...request.OptFn) *MediaDownloadReqCall

func (*MediaService) UploadAll

func (medias *MediaService) UploadAll(ctx *core.Context, optFns ...request.OptFn) *MediaUploadAllReqCall

func (*MediaService) UploadFinish

func (medias *MediaService) UploadFinish(ctx *core.Context, body *MediaUploadFinishReqBody, optFns ...request.OptFn) *MediaUploadFinishReqCall

func (*MediaService) UploadPart

func (medias *MediaService) UploadPart(ctx *core.Context, optFns ...request.OptFn) *MediaUploadPartReqCall

func (*MediaService) UploadPrepare

func (medias *MediaService) UploadPrepare(ctx *core.Context, body *UploadInfo, optFns ...request.OptFn) *MediaUploadPrepareReqCall

type MediaUploadAllReqCall

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

func (*MediaUploadAllReqCall) Do

func (*MediaUploadAllReqCall) SetChecksum

func (rc *MediaUploadAllReqCall) SetChecksum(checksum string)

func (*MediaUploadAllReqCall) SetFile

func (rc *MediaUploadAllReqCall) SetFile(file *request.File)

func (*MediaUploadAllReqCall) SetFileName

func (rc *MediaUploadAllReqCall) SetFileName(fileName string)

func (*MediaUploadAllReqCall) SetParentNode

func (rc *MediaUploadAllReqCall) SetParentNode(parentNode string)

func (*MediaUploadAllReqCall) SetParentType

func (rc *MediaUploadAllReqCall) SetParentType(parentType string)

func (*MediaUploadAllReqCall) SetSize

func (rc *MediaUploadAllReqCall) SetSize(size int)

type MediaUploadAllResult

type MediaUploadAllResult struct {
	FileToken string `json:"file_token,omitempty"`
}

type MediaUploadFinishReqBody

type MediaUploadFinishReqBody struct {
	UploadId        string   `json:"upload_id,omitempty"`
	BlockNum        int      `json:"block_num,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*MediaUploadFinishReqBody) MarshalJSON added in v1.1.23

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

type MediaUploadFinishReqCall

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

func (*MediaUploadFinishReqCall) Do

type MediaUploadFinishResult

type MediaUploadFinishResult struct {
	FileToken string `json:"file_token,omitempty"`
}

type MediaUploadPartReqCall

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

func (*MediaUploadPartReqCall) Do

func (*MediaUploadPartReqCall) SetChecksum

func (rc *MediaUploadPartReqCall) SetChecksum(checksum string)

func (*MediaUploadPartReqCall) SetFile

func (rc *MediaUploadPartReqCall) SetFile(file *request.File)

func (*MediaUploadPartReqCall) SetSeq

func (rc *MediaUploadPartReqCall) SetSeq(seq int)

func (*MediaUploadPartReqCall) SetSize

func (rc *MediaUploadPartReqCall) SetSize(size int)

func (*MediaUploadPartReqCall) SetUploadId

func (rc *MediaUploadPartReqCall) SetUploadId(uploadId string)

type MediaUploadPrepareReqCall

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

func (*MediaUploadPrepareReqCall) Do

type MediaUploadPrepareResult

type MediaUploadPrepareResult struct {
	UploadId  string `json:"upload_id,omitempty"`
	BlockSize int    `json:"block_size,omitempty"`
	BlockNum  int    `json:"block_num,omitempty"`
}

type Person added in v1.1.23

type Person struct {
	UserId          string   `json:"user_id,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*Person) MarshalJSON added in v1.1.23

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

type ReplyContent added in v1.1.23

type ReplyContent struct {
	Elements        []*ReplyElement `json:"elements,omitempty"`
	ForceSendFields []string        `json:"-"`
}

func (*ReplyContent) MarshalJSON added in v1.1.23

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

type ReplyElement added in v1.1.23

type ReplyElement struct {
	Type            string    `json:"type,omitempty"`
	TextRun         *TextRun  `json:"text_run,omitempty"`
	DocsLink        *DocsLink `json:"docs_link,omitempty"`
	Person          *Person   `json:"person,omitempty"`
	ForceSendFields []string  `json:"-"`
}

func (*ReplyElement) MarshalJSON added in v1.1.23

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

type ReplyList added in v1.1.23

type ReplyList struct {
	Replies         []*FileCommentReply `json:"replies,omitempty"`
	ForceSendFields []string            `json:"-"`
}

func (*ReplyList) MarshalJSON added in v1.1.23

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

type Service

type Service struct {
	Files             *FileService
	Medias            *MediaService
	FileCommentReplys *FileCommentReplyService
	FileComments      *FileCommentService
	// contains filtered or unexported fields
}

func NewService

func NewService(conf *config.Config) *Service

type TextRun added in v1.1.23

type TextRun struct {
	Text            string   `json:"text,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*TextRun) MarshalJSON added in v1.1.23

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

type TmpDownloadUrl added in v1.1.19

type TmpDownloadUrl struct {
	FileToken       string   `json:"file_token,omitempty"`
	TmpDownloadUrl  string   `json:"tmp_download_url,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*TmpDownloadUrl) MarshalJSON added in v1.1.23

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

type UploadInfo

type UploadInfo struct {
	FileName        string   `json:"file_name,omitempty"`
	ParentType      string   `json:"parent_type,omitempty"`
	ParentNode      string   `json:"parent_node,omitempty"`
	Size            int      `json:"size,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*UploadInfo) MarshalJSON added in v1.1.23

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

type UserId

type UserId struct {
	UserId          string   `json:"user_id,omitempty"`
	OpenId          string   `json:"open_id,omitempty"`
	UnionId         string   `json:"union_id,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*UserId) MarshalJSON added in v1.1.23

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

Jump to

Keyboard shortcuts

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