Documentation ¶
Index ¶
- Constants
- type ApplyMemberRequest
- type ApplyMemberRequestBuilder
- type BaseMember
- type BaseMemberBuilder
- type BitableTableFieldAction
- type BitableTableFieldActionBuilder
- func (builder *BitableTableFieldActionBuilder) Action(action string) *BitableTableFieldActionBuilder
- func (builder *BitableTableFieldActionBuilder) AfterValue(afterValue *BitableTableFieldActionValue) *BitableTableFieldActionBuilder
- func (builder *BitableTableFieldActionBuilder) BeforeValue(beforeValue *BitableTableFieldActionValue) *BitableTableFieldActionBuilder
- func (builder *BitableTableFieldActionBuilder) Build() *BitableTableFieldAction
- func (builder *BitableTableFieldActionBuilder) FieldId(fieldId string) *BitableTableFieldActionBuilder
- type BitableTableFieldActionValue
- type BitableTableFieldActionValueBuilder
- func (builder *BitableTableFieldActionValueBuilder) Build() *BitableTableFieldActionValue
- func (builder *BitableTableFieldActionValueBuilder) Description(description string) *BitableTableFieldActionValueBuilder
- func (builder *BitableTableFieldActionValueBuilder) Id(id string) *BitableTableFieldActionValueBuilder
- func (builder *BitableTableFieldActionValueBuilder) Name(name string) *BitableTableFieldActionValueBuilder
- func (builder *BitableTableFieldActionValueBuilder) Property(property *BitableTableFieldActionValueProperty) *BitableTableFieldActionValueBuilder
- func (builder *BitableTableFieldActionValueBuilder) Type(type_ int) *BitableTableFieldActionValueBuilder
- type BitableTableFieldActionValueProperty
- type BitableTableFieldActionValuePropertyAutoSerial
- type BitableTableFieldActionValuePropertyAutoSerialBuilder
- func (builder *BitableTableFieldActionValuePropertyAutoSerialBuilder) Build() *BitableTableFieldActionValuePropertyAutoSerial
- func (builder *BitableTableFieldActionValuePropertyAutoSerialBuilder) Options(options []*BitableTableFieldActionValuePropertyAutoSerialOptions) *BitableTableFieldActionValuePropertyAutoSerialBuilder
- func (builder *BitableTableFieldActionValuePropertyAutoSerialBuilder) Type(type_ string) *BitableTableFieldActionValuePropertyAutoSerialBuilder
- type BitableTableFieldActionValuePropertyAutoSerialOptions
- type BitableTableFieldActionValuePropertyAutoSerialOptionsBuilder
- func (builder *BitableTableFieldActionValuePropertyAutoSerialOptionsBuilder) Build() *BitableTableFieldActionValuePropertyAutoSerialOptions
- func (builder *BitableTableFieldActionValuePropertyAutoSerialOptionsBuilder) Type(type_ string) *BitableTableFieldActionValuePropertyAutoSerialOptionsBuilder
- func (builder *BitableTableFieldActionValuePropertyAutoSerialOptionsBuilder) Value(value string) *BitableTableFieldActionValuePropertyAutoSerialOptionsBuilder
- type BitableTableFieldActionValuePropertyBuilder
- func (builder *BitableTableFieldActionValuePropertyBuilder) AutoFill(autoFill bool) *BitableTableFieldActionValuePropertyBuilder
- func (builder *BitableTableFieldActionValuePropertyBuilder) AutoSerial(autoSerial *BitableTableFieldActionValuePropertyAutoSerial) *BitableTableFieldActionValuePropertyBuilder
- func (builder *BitableTableFieldActionValuePropertyBuilder) BackFieldId(backFieldId string) *BitableTableFieldActionValuePropertyBuilder
- func (builder *BitableTableFieldActionValuePropertyBuilder) BackFieldName(backFieldName string) *BitableTableFieldActionValuePropertyBuilder
- func (builder *BitableTableFieldActionValuePropertyBuilder) Build() *BitableTableFieldActionValueProperty
- func (builder *BitableTableFieldActionValuePropertyBuilder) DateFormatter(dateFormatter string) *BitableTableFieldActionValuePropertyBuilder
- func (builder *BitableTableFieldActionValuePropertyBuilder) Formatter(formatter string) *BitableTableFieldActionValuePropertyBuilder
- func (builder *BitableTableFieldActionValuePropertyBuilder) FormulaExpression(formulaExpression string) *BitableTableFieldActionValuePropertyBuilder
- func (builder *BitableTableFieldActionValuePropertyBuilder) InputType(inputType string) *BitableTableFieldActionValuePropertyBuilder
- func (builder *BitableTableFieldActionValuePropertyBuilder) Multiple(multiple bool) *BitableTableFieldActionValuePropertyBuilder
- func (builder *BitableTableFieldActionValuePropertyBuilder) Options(options []*BitableTableFieldActionValuePropertyOption) *BitableTableFieldActionValuePropertyBuilder
- func (builder *BitableTableFieldActionValuePropertyBuilder) TableId(tableId string) *BitableTableFieldActionValuePropertyBuilder
- func (builder *BitableTableFieldActionValuePropertyBuilder) TableName(tableName string) *BitableTableFieldActionValuePropertyBuilder
- type BitableTableFieldActionValuePropertyOption
- type BitableTableFieldActionValuePropertyOptionBuilder
- func (builder *BitableTableFieldActionValuePropertyOptionBuilder) Build() *BitableTableFieldActionValuePropertyOption
- func (builder *BitableTableFieldActionValuePropertyOptionBuilder) Color(color int) *BitableTableFieldActionValuePropertyOptionBuilder
- func (builder *BitableTableFieldActionValuePropertyOptionBuilder) Id(id string) *BitableTableFieldActionValuePropertyOptionBuilder
- func (builder *BitableTableFieldActionValuePropertyOptionBuilder) Name(name string) *BitableTableFieldActionValuePropertyOptionBuilder
- type BitableTableRecordAction
- type BitableTableRecordActionBuilder
- func (builder *BitableTableRecordActionBuilder) Action(action string) *BitableTableRecordActionBuilder
- func (builder *BitableTableRecordActionBuilder) AfterValue(afterValue []*BitableTableRecordActionField) *BitableTableRecordActionBuilder
- func (builder *BitableTableRecordActionBuilder) BeforeValue(beforeValue []*BitableTableRecordActionField) *BitableTableRecordActionBuilder
- func (builder *BitableTableRecordActionBuilder) Build() *BitableTableRecordAction
- func (builder *BitableTableRecordActionBuilder) RecordId(recordId string) *BitableTableRecordActionBuilder
- type BitableTableRecordActionField
- type BitableTableRecordActionFieldBuilder
- func (builder *BitableTableRecordActionFieldBuilder) Build() *BitableTableRecordActionField
- func (builder *BitableTableRecordActionFieldBuilder) FieldId(fieldId string) *BitableTableRecordActionFieldBuilder
- func (builder *BitableTableRecordActionFieldBuilder) FieldIdentityValue(fieldIdentityValue *BitableTableRecordActionFieldIdentity) *BitableTableRecordActionFieldBuilder
- func (builder *BitableTableRecordActionFieldBuilder) FieldValue(fieldValue string) *BitableTableRecordActionFieldBuilder
- type BitableTableRecordActionFieldIdentity
- type BitableTableRecordActionFieldIdentityBuilder
- type BitableTableRecordActionFieldIdentityUser
- type BitableTableRecordActionFieldIdentityUserBuilder
- func (builder *BitableTableRecordActionFieldIdentityUserBuilder) AvatarUrl(avatarUrl string) *BitableTableRecordActionFieldIdentityUserBuilder
- func (builder *BitableTableRecordActionFieldIdentityUserBuilder) Build() *BitableTableRecordActionFieldIdentityUser
- func (builder *BitableTableRecordActionFieldIdentityUserBuilder) EnName(enName string) *BitableTableRecordActionFieldIdentityUserBuilder
- func (builder *BitableTableRecordActionFieldIdentityUserBuilder) Name(name string) *BitableTableRecordActionFieldIdentityUserBuilder
- func (builder *BitableTableRecordActionFieldIdentityUserBuilder) UserId(userId *UserId) *BitableTableRecordActionFieldIdentityUserBuilder
- type Collaborator
- type CollaboratorBuilder
- func (builder *CollaboratorBuilder) Build() *Collaborator
- func (builder *CollaboratorBuilder) MemberOpenId(memberOpenId string) *CollaboratorBuilder
- func (builder *CollaboratorBuilder) MemberType(memberType string) *CollaboratorBuilder
- func (builder *CollaboratorBuilder) MemberUserId(memberUserId string) *CollaboratorBuilder
- func (builder *CollaboratorBuilder) Perm(perm string) *CollaboratorBuilder
- type DepartmentId
- type DepartmentIdBuilder
- type DocsLink
- type DocsLinkBuilder
- type DownloadMediaReq
- type DownloadMediaReqBuilder
- type DownloadMediaResp
- type DriveService
- type ExportTask
- type ExportTaskBuilder
- func (builder *ExportTaskBuilder) Build() *ExportTask
- func (builder *ExportTaskBuilder) FileExtension(fileExtension string) *ExportTaskBuilder
- func (builder *ExportTaskBuilder) FileName(fileName string) *ExportTaskBuilder
- func (builder *ExportTaskBuilder) FileSize(fileSize int) *ExportTaskBuilder
- func (builder *ExportTaskBuilder) FileToken(fileToken string) *ExportTaskBuilder
- func (builder *ExportTaskBuilder) JobErrorMsg(jobErrorMsg string) *ExportTaskBuilder
- func (builder *ExportTaskBuilder) JobStatus(jobStatus int) *ExportTaskBuilder
- func (builder *ExportTaskBuilder) SubId(subId string) *ExportTaskBuilder
- func (builder *ExportTaskBuilder) Token(token string) *ExportTaskBuilder
- func (builder *ExportTaskBuilder) Type(type_ string) *ExportTaskBuilder
- type Favorite
- type File
- type FileBuilder
- func (builder *FileBuilder) Build() *File
- func (builder *FileBuilder) CreatedTime(createdTime string) *FileBuilder
- func (builder *FileBuilder) ModifiedTime(modifiedTime string) *FileBuilder
- func (builder *FileBuilder) Name(name string) *FileBuilder
- func (builder *FileBuilder) OwnerId(ownerId string) *FileBuilder
- func (builder *FileBuilder) ParentToken(parentToken string) *FileBuilder
- func (builder *FileBuilder) ShortcutInfo(shortcutInfo *ShortcutInfo) *FileBuilder
- func (builder *FileBuilder) Token(token string) *FileBuilder
- func (builder *FileBuilder) Type(type_ string) *FileBuilder
- func (builder *FileBuilder) Url(url string) *FileBuilder
- type FileComment
- type FileCommentBuilder
- func (builder *FileCommentBuilder) Build() *FileComment
- func (builder *FileCommentBuilder) CommentId(commentId string) *FileCommentBuilder
- func (builder *FileCommentBuilder) CreateTime(createTime int) *FileCommentBuilder
- func (builder *FileCommentBuilder) HasMore(hasMore bool) *FileCommentBuilder
- func (builder *FileCommentBuilder) IsSolved(isSolved bool) *FileCommentBuilder
- func (builder *FileCommentBuilder) IsWhole(isWhole bool) *FileCommentBuilder
- func (builder *FileCommentBuilder) PageToken(pageToken string) *FileCommentBuilder
- func (builder *FileCommentBuilder) Quote(quote string) *FileCommentBuilder
- func (builder *FileCommentBuilder) ReplyList(replyList *ReplyList) *FileCommentBuilder
- func (builder *FileCommentBuilder) SolvedTime(solvedTime int) *FileCommentBuilder
- func (builder *FileCommentBuilder) SolverUserId(solverUserId string) *FileCommentBuilder
- func (builder *FileCommentBuilder) UpdateTime(updateTime int) *FileCommentBuilder
- func (builder *FileCommentBuilder) UserId(userId string) *FileCommentBuilder
- type FileCommentReply
- type FileCommentReplyBuilder
- func (builder *FileCommentReplyBuilder) Build() *FileCommentReply
- func (builder *FileCommentReplyBuilder) Content(content *ReplyContent) *FileCommentReplyBuilder
- func (builder *FileCommentReplyBuilder) CreateTime(createTime int) *FileCommentReplyBuilder
- func (builder *FileCommentReplyBuilder) Extra(extra *ReplyExtra) *FileCommentReplyBuilder
- func (builder *FileCommentReplyBuilder) ReplyId(replyId string) *FileCommentReplyBuilder
- func (builder *FileCommentReplyBuilder) UpdateTime(updateTime int) *FileCommentReplyBuilder
- func (builder *FileCommentReplyBuilder) UserId(userId string) *FileCommentReplyBuilder
- type FileFavorite
- type FileSearch
- type FileSearchBuilder
- func (builder *FileSearchBuilder) Build() *FileSearch
- func (builder *FileSearchBuilder) DocsToken(docsToken string) *FileSearchBuilder
- func (builder *FileSearchBuilder) DocsType(docsType string) *FileSearchBuilder
- func (builder *FileSearchBuilder) OwnerId(ownerId string) *FileSearchBuilder
- func (builder *FileSearchBuilder) Title(title string) *FileSearchBuilder
- type FileStatistics
- type FileStatisticsBuilder
- func (builder *FileStatisticsBuilder) Build() *FileStatistics
- func (builder *FileStatisticsBuilder) LikeCount(likeCount int) *FileStatisticsBuilder
- func (builder *FileStatisticsBuilder) Pv(pv int) *FileStatisticsBuilder
- func (builder *FileStatisticsBuilder) Timestamp(timestamp int) *FileStatisticsBuilder
- func (builder *FileStatisticsBuilder) Uv(uv int) *FileStatisticsBuilder
- type FileSubscription
- type FileSubscriptionBuilder
- func (builder *FileSubscriptionBuilder) Build() *FileSubscription
- func (builder *FileSubscriptionBuilder) FileType(fileType string) *FileSubscriptionBuilder
- func (builder *FileSubscriptionBuilder) IsSubcribe(isSubcribe bool) *FileSubscriptionBuilder
- func (builder *FileSubscriptionBuilder) SubscriptionId(subscriptionId string) *FileSubscriptionBuilder
- func (builder *FileSubscriptionBuilder) SubscriptionType(subscriptionType string) *FileSubscriptionBuilder
- type FileUploadInfo
- type FileUploadInfoBuilder
- func (builder *FileUploadInfoBuilder) Build() *FileUploadInfo
- func (builder *FileUploadInfoBuilder) FileName(fileName string) *FileUploadInfoBuilder
- func (builder *FileUploadInfoBuilder) ParentNode(parentNode string) *FileUploadInfoBuilder
- func (builder *FileUploadInfoBuilder) ParentType(parentType string) *FileUploadInfoBuilder
- func (builder *FileUploadInfoBuilder) Size(size int) *FileUploadInfoBuilder
- type FileViewRecord
- type FileViewRecordBuilder
- func (builder *FileViewRecordBuilder) AvatarUrl(avatarUrl string) *FileViewRecordBuilder
- func (builder *FileViewRecordBuilder) Build() *FileViewRecord
- func (builder *FileViewRecordBuilder) LastViewTime(lastViewTime string) *FileViewRecordBuilder
- func (builder *FileViewRecordBuilder) Name(name string) *FileViewRecordBuilder
- func (builder *FileViewRecordBuilder) ViewerId(viewerId string) *FileViewRecordBuilder
- type ImportTask
- type ImportTaskBuilder
- func (builder *ImportTaskBuilder) Build() *ImportTask
- func (builder *ImportTaskBuilder) Extra(extra []string) *ImportTaskBuilder
- func (builder *ImportTaskBuilder) FileExtension(fileExtension string) *ImportTaskBuilder
- func (builder *ImportTaskBuilder) FileName(fileName string) *ImportTaskBuilder
- func (builder *ImportTaskBuilder) FileToken(fileToken string) *ImportTaskBuilder
- func (builder *ImportTaskBuilder) JobErrorMsg(jobErrorMsg string) *ImportTaskBuilder
- func (builder *ImportTaskBuilder) JobStatus(jobStatus int) *ImportTaskBuilder
- func (builder *ImportTaskBuilder) Point(point *ImportTaskMountPoint) *ImportTaskBuilder
- func (builder *ImportTaskBuilder) Ticket(ticket string) *ImportTaskBuilder
- func (builder *ImportTaskBuilder) Token(token string) *ImportTaskBuilder
- func (builder *ImportTaskBuilder) Type(type_ string) *ImportTaskBuilder
- func (builder *ImportTaskBuilder) Url(url string) *ImportTaskBuilder
- type ImportTaskMountPoint
- type ImportTaskMountPointBuilder
- type Media
- type MediaBuilder
- func (builder *MediaBuilder) Build() *Media
- func (builder *MediaBuilder) FileName(fileName string) *MediaBuilder
- func (builder *MediaBuilder) FileToken(fileToken string) *MediaBuilder
- func (builder *MediaBuilder) MimeType(mimeType string) *MediaBuilder
- func (builder *MediaBuilder) Size(size int) *MediaBuilder
- type MediaUploadInfo
- type MediaUploadInfoBuilder
- func (builder *MediaUploadInfoBuilder) Build() *MediaUploadInfo
- func (builder *MediaUploadInfoBuilder) Extra(extra string) *MediaUploadInfoBuilder
- func (builder *MediaUploadInfoBuilder) FileName(fileName string) *MediaUploadInfoBuilder
- func (builder *MediaUploadInfoBuilder) ParentNode(parentNode string) *MediaUploadInfoBuilder
- func (builder *MediaUploadInfoBuilder) ParentType(parentType string) *MediaUploadInfoBuilder
- func (builder *MediaUploadInfoBuilder) Size(size int) *MediaUploadInfoBuilder
- type Member
- type MemberBuilder
- func (builder *MemberBuilder) Avatar(avatar string) *MemberBuilder
- func (builder *MemberBuilder) Build() *Member
- func (builder *MemberBuilder) ExternalLabel(externalLabel bool) *MemberBuilder
- func (builder *MemberBuilder) MemberId(memberId string) *MemberBuilder
- func (builder *MemberBuilder) MemberType(memberType string) *MemberBuilder
- func (builder *MemberBuilder) Name(name string) *MemberBuilder
- func (builder *MemberBuilder) Perm(perm string) *MemberBuilder
- func (builder *MemberBuilder) Type(type_ string) *MemberBuilder
- type Meta
- type MetaBuilder
- func (builder *MetaBuilder) Build() *Meta
- func (builder *MetaBuilder) CreateTime(createTime string) *MetaBuilder
- func (builder *MetaBuilder) DocToken(docToken string) *MetaBuilder
- func (builder *MetaBuilder) DocType(docType string) *MetaBuilder
- func (builder *MetaBuilder) LatestModifyTime(latestModifyTime string) *MetaBuilder
- func (builder *MetaBuilder) LatestModifyUser(latestModifyUser string) *MetaBuilder
- func (builder *MetaBuilder) OwnerId(ownerId string) *MetaBuilder
- func (builder *MetaBuilder) SecLabelName(secLabelName string) *MetaBuilder
- func (builder *MetaBuilder) Title(title string) *MetaBuilder
- func (builder *MetaBuilder) Url(url string) *MetaBuilder
- type MetaFailed
- type MetaFailedBuilder
- type MetaRequest
- type MetaRequestBuilder
- type Owner
- type OwnerBuilder
- type PermissionPublic
- type PermissionPublicBuilder
- func (builder *PermissionPublicBuilder) Build() *PermissionPublic
- func (builder *PermissionPublicBuilder) CommentEntity(commentEntity string) *PermissionPublicBuilder
- func (builder *PermissionPublicBuilder) ExternalAccess(externalAccess bool) *PermissionPublicBuilder
- func (builder *PermissionPublicBuilder) InviteExternal(inviteExternal bool) *PermissionPublicBuilder
- func (builder *PermissionPublicBuilder) LinkShareEntity(linkShareEntity string) *PermissionPublicBuilder
- func (builder *PermissionPublicBuilder) LockSwitch(lockSwitch bool) *PermissionPublicBuilder
- func (builder *PermissionPublicBuilder) SecurityEntity(securityEntity string) *PermissionPublicBuilder
- func (builder *PermissionPublicBuilder) ShareEntity(shareEntity string) *PermissionPublicBuilder
- type PermissionPublicPassword
- type PermissionPublicRequest
- type PermissionPublicRequestBuilder
- func (builder *PermissionPublicRequestBuilder) Build() *PermissionPublicRequest
- func (builder *PermissionPublicRequestBuilder) CommentEntity(commentEntity string) *PermissionPublicRequestBuilder
- func (builder *PermissionPublicRequestBuilder) ExternalAccess(externalAccess bool) *PermissionPublicRequestBuilder
- func (builder *PermissionPublicRequestBuilder) InviteExternal(inviteExternal bool) *PermissionPublicRequestBuilder
- func (builder *PermissionPublicRequestBuilder) LinkShareEntity(linkShareEntity string) *PermissionPublicRequestBuilder
- func (builder *PermissionPublicRequestBuilder) SecurityEntity(securityEntity string) *PermissionPublicRequestBuilder
- func (builder *PermissionPublicRequestBuilder) ShareEntity(shareEntity string) *PermissionPublicRequestBuilder
- type Person
- type PersonBuilder
- type Property
- type PropertyBuilder
- type ReferEntity
- type ReferEntityBuilder
- type ReplyContent
- type ReplyContentBuilder
- type ReplyElement
- type ReplyElementBuilder
- func (builder *ReplyElementBuilder) Build() *ReplyElement
- func (builder *ReplyElementBuilder) DocsLink(docsLink *DocsLink) *ReplyElementBuilder
- func (builder *ReplyElementBuilder) Person(person *Person) *ReplyElementBuilder
- func (builder *ReplyElementBuilder) TextRun(textRun *TextRun) *ReplyElementBuilder
- func (builder *ReplyElementBuilder) Type(type_ string) *ReplyElementBuilder
- type ReplyExtra
- type ReplyExtraBuilder
- type ReplyList
- type ReplyListBuilder
- type RequestDoc
- type RequestDocBuilder
- type ShortcutInfo
- type ShortcutInfoBuilder
- type TextRun
- type TextRunBuilder
- type TmpDownloadUrl
- type TmpDownloadUrlBuilder
- type TokenType
- type TokenTypeBuilder
- type UploadAllMediaPathReqBodyBuilder
- func (builder *UploadAllMediaPathReqBodyBuilder) Build() (*UploadAllMediaReqBody, error)
- func (builder *UploadAllMediaPathReqBodyBuilder) Checksum(checksum string) *UploadAllMediaPathReqBodyBuilder
- func (builder *UploadAllMediaPathReqBodyBuilder) Extra(extra string) *UploadAllMediaPathReqBodyBuilder
- func (builder *UploadAllMediaPathReqBodyBuilder) FileName(fileName string) *UploadAllMediaPathReqBodyBuilder
- func (builder *UploadAllMediaPathReqBodyBuilder) FilePath(filePath string) *UploadAllMediaPathReqBodyBuilder
- func (builder *UploadAllMediaPathReqBodyBuilder) ParentNode(parentNode string) *UploadAllMediaPathReqBodyBuilder
- func (builder *UploadAllMediaPathReqBodyBuilder) ParentType(parentType string) *UploadAllMediaPathReqBodyBuilder
- func (builder *UploadAllMediaPathReqBodyBuilder) Size(size int) *UploadAllMediaPathReqBodyBuilder
- type UploadAllMediaReq
- type UploadAllMediaReqBody
- type UploadAllMediaReqBodyBuilder
- func (builder *UploadAllMediaReqBodyBuilder) Build() *UploadAllMediaReqBody
- func (builder *UploadAllMediaReqBodyBuilder) Checksum(checksum string) *UploadAllMediaReqBodyBuilder
- func (builder *UploadAllMediaReqBodyBuilder) Extra(extra string) *UploadAllMediaReqBodyBuilder
- func (builder *UploadAllMediaReqBodyBuilder) File(file io.Reader) *UploadAllMediaReqBodyBuilder
- func (builder *UploadAllMediaReqBodyBuilder) FileName(fileName string) *UploadAllMediaReqBodyBuilder
- func (builder *UploadAllMediaReqBodyBuilder) ParentNode(parentNode string) *UploadAllMediaReqBodyBuilder
- func (builder *UploadAllMediaReqBodyBuilder) ParentType(parentType string) *UploadAllMediaReqBodyBuilder
- func (builder *UploadAllMediaReqBodyBuilder) Size(size int) *UploadAllMediaReqBodyBuilder
- type UploadAllMediaReqBuilder
- type UploadAllMediaResp
- type UploadAllMediaRespData
- type UploadInfo
- type UploadInfoBuilder
- func (builder *UploadInfoBuilder) Build() *UploadInfo
- func (builder *UploadInfoBuilder) FileName(fileName string) *UploadInfoBuilder
- func (builder *UploadInfoBuilder) ParentNode(parentNode string) *UploadInfoBuilder
- func (builder *UploadInfoBuilder) ParentType(parentType string) *UploadInfoBuilder
- func (builder *UploadInfoBuilder) Size(size int) *UploadInfoBuilder
- type UserId
- type UserIdBuilder
- type Version
- type VersionBuilder
- func (builder *VersionBuilder) Build() *Version
- func (builder *VersionBuilder) CreateTime(createTime string) *VersionBuilder
- func (builder *VersionBuilder) CreatorId(creatorId string) *VersionBuilder
- func (builder *VersionBuilder) Name(name string) *VersionBuilder
- func (builder *VersionBuilder) ObjType(objType string) *VersionBuilder
- func (builder *VersionBuilder) OwnerId(ownerId string) *VersionBuilder
- func (builder *VersionBuilder) ParentToken(parentToken string) *VersionBuilder
- func (builder *VersionBuilder) ParentType(parentType string) *VersionBuilder
- func (builder *VersionBuilder) Status(status string) *VersionBuilder
- func (builder *VersionBuilder) UpdateTime(updateTime string) *VersionBuilder
- func (builder *VersionBuilder) Version(version string) *VersionBuilder
Constants ¶
const ( FileExtensionDocx = "docx" // word docx 格式 FileExtensionPdf = "pdf" // pdf 格式 FileExtensionXlsx = "xlsx" // excel xlsx 格式 FileExtensionCsv = "csv" // csv 格式 )
const ( TypeDoc = "doc" // 旧版飞书云文档类型 TypeSheet = "sheet" // 飞书电子表格类型 TypeBitable = "bitable" // 飞书多维表格类型 TypeDocx = "docx" // 新版飞书云文档类型 )
const ( TypeCopyFileFile = "file" // 文件类型 TypeCopyFileDoc = "doc" // 云文档类型 TypeCopyFileSheet = "sheet" // 电子表格类型 TypeCopyFileBitable = "bitable" // 多维表格类型 TypeCopyFileDocx = "docx" // 新版云文档类型 TypeCopyFileMindnote = "mindnote" // 思维笔记类型 TypeCopyFileSlides = "slides" // 幻灯片类型 )
const ( UserIdTypeUserId = "user_id" // 以user_id来识别用户 UserIdTypeUnionId = "union_id" // 以union_id来识别用户 UserIdTypeOpenId = "open_id" // 以open_id来识别用户 )
const ( UserIdTypeCreateShortcutFileUserId = "user_id" // 以user_id来识别用户 UserIdTypeCreateShortcutFileUnionId = "union_id" // 以union_id来识别用户 UserIdTypeCreateShortcutFileOpenId = "open_id" // 以open_id来识别用户 )
const ( TypeDeleteFileFile = "file" // 文件类型 TypeDeleteFileDocx = "docx" // docx文档类型 TypeDeleteFileBitable = "bitable" // 多维表格类型 TypeDeleteFileFolder = "folder" // 文件夹类型 TypeDeleteFileDoc = "doc" // doc文档类型 TypeDeleteFileSheet = "sheet" // 电子表格类型 TypeDeleteFileMindnote = "mindnote" // 思维笔记类型 TypeDeleteFileShortcut = "shortcut" // 快捷方式类型 TypeDeleteFileSlides = "slides" // 幻灯片 )
const ( FileTypeDoc = "doc" // 文档 FileTypeDocx = "docx" // docx文档 FileTypeSheet = "sheet" // 表格 FileTypeBitable = "bitable" // 多维表格 FileTypeFile = "file" // 文件 )
const ( FileTypeGetSubscribeFileDoc = "doc" // 文档 FileTypeGetSubscribeFileDocx = "docx" // docx文档 FileTypeGetSubscribeFileSheet = "sheet" // 表格 FileTypeGetSubscribeFileBitable = "bitable" // 多维表格 FileTypeGetSubscribeFileFile = "file" // 文件 )
const ( OrderByEditedTime = "EditedTime" // 编辑时间排序 OrderByCreatedTime = "CreatedTime" // 创建时间排序 )
const ( DirectionASC = "ASC" // 升序 DirectionDESC = "DESC" // 降序 )
const ( UserIdTypeListFileUserId = "user_id" // 以user_id来识别用户 UserIdTypeListFileUnionId = "union_id" // 以union_id来识别用户 UserIdTypeListFileOpenId = "open_id" // 以open_id来识别用户 )
const ( TypeMoveFileFile = "file" // 普通文件类型 TypeMoveFileDocx = "docx" // 新版文档类型 TypeMoveFileBitable = "bitable" // 多维表格类型 TypeMoveFileDoc = "doc" // doc文档类型 TypeMoveFileSheet = "sheet" // 电子表格类型 TypeMoveFileMindnote = "mindnote" // 思维笔记类型 TypeMoveFileFolder = "folder" // 文件夹类型 TypeMoveFileSlides = "slides" // 幻灯片类型 )
const ( FileTypeSubscribeFileDoc = "doc" // 文档 FileTypeSubscribeFileDocx = "docx" // docx文档 FileTypeSubscribeFileSheet = "sheet" // 表格 FileTypeSubscribeFileBitable = "bitable" // 多维表格 )
const ( FileTypeBatchQueryFileCommentDoc = "doc" // 文档 FileTypeBatchQueryFileCommentSheet = "sheet" // 表格 FileTypeBatchQueryFileCommentFile = "file" // 文件 FileTypeBatchQueryFileCommentDocx = "docx" // 新版文档 )
const ( UserIdTypeBatchQueryFileCommentUserId = "user_id" // 以user_id来识别用户 UserIdTypeBatchQueryFileCommentUnionId = "union_id" // 以union_id来识别用户 UserIdTypeBatchQueryFileCommentOpenId = "open_id" // 以open_id来识别用户 )
const ( FileTypeCreateFileCommentDoc = "doc" // 文档 FileTypeCreateFileCommentDocx = "docx" // 新版文档 )
const ( UserIdTypeCreateFileCommentUserId = "user_id" // 以user_id来识别用户 UserIdTypeCreateFileCommentUnionId = "union_id" // 以union_id来识别用户 UserIdTypeCreateFileCommentOpenId = "open_id" // 以open_id来识别用户 )
const ( FileTypeGetFileCommentDoc = "doc" // 文档 FileTypeGetFileCommentSheet = "sheet" // 表格 FileTypeGetFileCommentFile = "file" // 文件 FileTypeGetFileCommentDocx = "docx" // 新版文档 )
const ( UserIdTypeGetFileCommentUserId = "user_id" // 以user_id来识别用户 UserIdTypeGetFileCommentUnionId = "union_id" // 以union_id来识别用户 UserIdTypeGetFileCommentOpenId = "open_id" // 以open_id来识别用户 )
const ( FileTypeListFileCommentDoc = "doc" // 文档 FileTypeListFileCommentSheet = "sheet" // 表格 FileTypeListFileCommentFile = "file" // 文件 FileTypeListFileCommentDocx = "docx" // 新版文档 )
const ( UserIdTypeListFileCommentUserId = "user_id" // 以user_id来识别用户 UserIdTypeListFileCommentUnionId = "union_id" // 以union_id来识别用户 UserIdTypeListFileCommentOpenId = "open_id" // 以open_id来识别用户 )
const ( FileTypePatchFileCommentDoc = "doc" // 文档 FileTypePatchFileCommentSheet = "sheet" // 表格 FileTypePatchFileCommentFile = "file" // 文件 FileTypePatchFileCommentDocx = "docx" // 新版文档 )
const ( FileTypeDeleteFileCommentReplyDoc = "doc" // 文档 FileTypeDeleteFileCommentReplySheet = "sheet" // 表格 FileTypeDeleteFileCommentReplyFile = "file" // 文件 FileTypeDeleteFileCommentReplyDocx = "docx" // 新版文档 )
const ( FileTypeListFileCommentReplyDoc = "doc" // 文档 FileTypeListFileCommentReplySheet = "sheet" // 表格 FileTypeListFileCommentReplyFile = "file" // 文件 FileTypeListFileCommentReplyDocx = "docx" // 新版本文档 )
const ( UserIdTypeListFileCommentReplyUserId = "user_id" // 以user_id来识别用户 UserIdTypeListFileCommentReplyUnionId = "union_id" // 以union_id来识别用户 UserIdTypeListFileCommentReplyOpenId = "open_id" // 以open_id来识别用户 )
const ( FileTypeUpdateFileCommentReplyDoc = "doc" // 文档 FileTypeUpdateFileCommentReplySheet = "sheet" // 表格 FileTypeUpdateFileCommentReplyFile = "file" // 文件 FileTypeUpdateFileCommentReplyDocx = "docx" // 新版文档 )
const ( UserIdTypeUpdateFileCommentReplyUserId = "user_id" // 以user_id来识别用户 UserIdTypeUpdateFileCommentReplyUnionId = "union_id" // 以union_id来识别用户 UserIdTypeUpdateFileCommentReplyOpenId = "open_id" // 以open_id来识别用户 )
const ( FileTypeGetFileStatisticsDoc = "doc" // doc文档 FileTypeGetFileStatisticsSheet = "sheet" // 表格 FileTypeGetFileStatisticsMindnote = "mindnote" // 思维笔记 FileTypeGetFileStatisticsBitable = "bitable" // 多维表格 FileTypeGetFileStatisticsWiki = "wiki" // 知识库wiki FileTypeGetFileStatisticsFile = "file" // 文件 FileTypeGetFileStatisticsDocx = "docx" // docx文档 )
const ( FileTypeCreateFileSubscriptionDoc = "doc" // 文档 FileTypeCreateFileSubscriptionDocx = "docx" // 文档2.0 FileTypeCreateFileSubscriptionWiki = "wiki" // 知识库wiki )
const ( FileTypeGetFileSubscriptionDocs = "doc" // 旧版文档 FileTypeGetFileSubscriptionUpgradedDocs = "docx" // 新版文档 FileTypeGetFileSubscriptionWiki = "wiki" // 云空间 )
const ( FileTypePatchFileSubscriptionDoc = "doc" // 文档1.0 FileTypePatchFileSubscriptionDocx = "docx" // 文档2.0 FileTypePatchFileSubscriptionWiki = "wiki" // 知识库wiki )
const ( StatusStatusExist = "0" // 正常状态 StatusStatusDeleted = "1" // 删除状态 StatusStatusTrash = "2" // 回收站状态 )
const ( ObjTypeDocx = "docx" // 新版文档 ObjTypeSheet = "sheet" // 电子表格 )
const ( ParentTypeCreateFileVersionObjTypeDocx = "docx" // 新版文档 ParentTypeCreateFileVersionObjTypeSheet = "sheet" // 电子表格 )
const ( UserIdTypeCreateFileVersionUserId = "user_id" // 以user_id来识别用户 UserIdTypeCreateFileVersionUnionId = "union_id" // 以union_id来识别用户 UserIdTypeCreateFileVersionOpenId = "open_id" // 以open_id来识别用户 )
const ( ObjTypeDeleteFileVersionDocx = "docx" // 新版文档 ObjTypeDeleteFileVersionSheet = "sheet" // 电子表格 )
const ( UserIdTypeDeleteFileVersionOpenId = "open_id" // 用户open_id UserIdTypeDeleteFileVersionUnionId = "union_id" // 用户union_id UserIdTypeDeleteFileVersionUserId = "user_id" // 用户user_id )
const ( ObjTypeGetFileVersionDocx = "docx" // 新版文档 ObjTypeGetFileVersionSheet = "sheet" // 电子表格 )
const ( UserIdTypeGetFileVersionOpenId = "open_id" // 用户open_id UserIdTypeGetFileVersionUnionId = "union_id" // 用户union_id UserIdTypeGetFileVersionUserId = "user_id" // 用户user_id )
const ( ObjTypeListFileVersionDocx = "docx" // 新版文档 ObjTypeListFileVersionSheet = "sheet" // 电子表格 )
const ( UserIdTypeListFileVersionOpenId = "open_id" // 用户open_id UserIdTypeListFileVersionUnionId = "union_id" // 用户union_id UserIdTypeListFileVersionUserId = "user_id" // 用户user_id )
const ( FileTypeListFileViewRecordDoc = "doc" // 旧版文档 FileTypeListFileViewRecordDocx = "docx" // 新版文档 FileTypeListFileViewRecordSheet = "sheet" // 电子表格 FileTypeListFileViewRecordBitable = "bitable" // 多维表格 FileTypeListFileViewRecordMindnote = "mindnote" // 思维笔记 FileTypeListFileViewRecordWiki = "wiki" // 知识库文档 FileTypeListFileViewRecordFile = "file" // 文件 )
const ( ViewerIdTypeUserId = "user_id" // 以user_id来识别用户 ViewerIdTypeUnionId = "union_id" // 以union_id来识别用户 ViewerIdTypeOpenId = "open_id" // 以open_id来识别用户 )
const ( ParentTypeUploadAllMediaDocImage = "doc_image" // docs图片 ParentTypeUploadAllMediaDocxImage = "docx_image" // docx图片 ParentTypeUploadAllMediaSheetImage = "sheet_image" // sheet图片 ParentTypeUploadAllMediaDocFile = "doc_file" // doc文件 ParentTypeUploadAllMediaDocxFile = "docx_file" // docx文件 ParentTypeUploadAllMediaSheetFile = "sheet_file" // sheet文件 ParentTypeUploadAllMediaVcVirtualBackground = "vc_virtual_background" // vc虚拟背景 ParentTypeUploadAllMediaBitableImage = "bitable_image" // 多维表格图片 ParentTypeUploadAllMediaBitableFile = "bitable_file" // 多维表格文件 ParentTypeUploadAllMediaMoments = "moments" // 同事圈 ParentTypeUploadAllMediaCcmImportOpen = "ccm_import_open" // 云文档导入文件 )
const ( ParentTypeUploadPrepareMediaDocImage = "doc_image" // docs图片 ParentTypeUploadPrepareMediaDocxImage = "docx_image" // docx图片 ParentTypeUploadPrepareMediaSheetImage = "sheet_image" // sheet图片 ParentTypeUploadPrepareMediaDocFile = "doc_file" // doc文件 ParentTypeUploadPrepareMediaDocxFile = "docx_file" // docx文件 ParentTypeUploadPrepareMediaSheetFile = "sheet_file" // sheet文件 ParentTypeUploadPrepareMediaVcVirtualBackground = "vc_virtual_background" // vc虚拟背景 ParentTypeUploadPrepareMediaBitableImage = "bitable_image" // bitable图片 ParentTypeUploadPrepareMediaBitableFile = "bitable_file" // bitable文件 ParentTypeUploadPrepareMediaMoments = "moments" // 同事圈 ParentTypeUploadPrepareMediaCcmImportOpen = "ccm_import_open" // 云文档导入文件 )
const ( UserIdTypeBatchQueryMetaUserId = "user_id" // 以user_id来识别用户 UserIdTypeBatchQueryMetaUnionId = "union_id" // 以union_id来识别用户 UserIdTypeBatchQueryMetaOpenId = "open_id" // 以open_id来识别用户 )
const ( TokenTypeDoc = "doc" // 文档 TokenTypeSheet = "sheet" // 电子表格 TokenTypeFile = "file" // 云空间文件 TokenTypeWiki = "wiki" // 知识库节点 TokenTypeBitable = "bitable" // 多维表格 TokenTypeDocx = "docx" // 新版文档 TokenTypeMindnote = "mindnote" // 思维笔记 TokenTypeMinutes = "minutes" // 妙记 TokenTypeSlides = "slides" // 幻灯片 )
const ( PermView = "view" // 阅读 PermEdit = "edit" // 编辑 PermComment = "comment" // 评论 PermExport = "export" // 导出 PermCopy = "copy" // 拷贝 PermPrint = "print" // 打印 PermManagePublic = "manage_public" // 管理权限设置 )
const ( MemberTypeEmail = "email" // 飞书邮箱 MemberTypeOpenId = "openid" // 开放平台ID MemberTypeOpenChat = "openchat" // 开放平台群组ID MemberTypeOpenDepartmentId = "opendepartmentid" // 开放平台部门ID MemberTypeUserId = "userid" // 用户自定义ID )
const ( PermCreatePermissionMemberView = "view" // 可阅读角色 PermCreatePermissionMemberEdit = "edit" // 可编辑角色 PermCreatePermissionMemberFullAccess = "full_access" // 可管理角色 )
const ( TokenTypeV2Doc = "doc" // 文档 TokenTypeV2Sheet = "sheet" // 电子表格 TokenTypeV2File = "file" // 云空间文件 TokenTypeV2Wiki = "wiki" // 知识库节点 TokenTypeV2Bitable = "bitable" // 多维表格 TokenTypeV2Docx = "docx" // 新版文档 TokenTypeV2Folder = "folder" // 文件夹 TokenTypeV2Mindnote = "mindnote" // 思维笔记 TokenTypeV2Minutes = "minutes" // 妙记 TokenTypeV2Slides = "slides" // 幻灯片 )
const ( TokenTypeV2DeletePermissionMemberDoc = "doc" // 文档 TokenTypeV2DeletePermissionMemberSheet = "sheet" // 电子表格 TokenTypeV2DeletePermissionMemberFile = "file" // 云空间文件 TokenTypeV2DeletePermissionMemberWiki = "wiki" // 知识库节点 TokenTypeV2DeletePermissionMemberBitable = "bitable" // 多维表格 TokenTypeV2DeletePermissionMemberDocx = "docx" // 文档 TokenTypeV2DeletePermissionMemberFolder = "folder" // 文件夹 TokenTypeV2DeletePermissionMemberMindnote = "mindnote" // 思维笔记 TokenTypeV2DeletePermissionMemberMinutes = "minutes" // 妙记 TokenTypeV2DeletePermissionMemberSlides = "slides" // 幻灯片 )
const ( MemberTypeDeletePermissionMemberEmail = "email" // 邮箱地址 MemberTypeDeletePermissionMemberOpenID = "openid" // 开放平台ID MemberTypeDeletePermissionMemberOpenChatID = "openchat" // 开放平台群ID MemberTypeDeletePermissionMemberOpenDepartmentID = "opendepartmentid" // 开放平台部门ID MemberTypeDeletePermissionMemberUserID = "userid" // 自定义用户ID )
const ( TokenTypeListPermissionMemberDoc = "doc" // 文档 TokenTypeListPermissionMemberSheet = "sheet" // 电子表格 TokenTypeListPermissionMemberFile = "file" // 云空间文件 TokenTypeListPermissionMemberWiki = "wiki" // 知识库节点 TokenTypeListPermissionMemberBitable = "bitable" // 多维表格 TokenTypeListPermissionMemberDocx = "docx" // 新版文档 TokenTypeListPermissionMemberMindnote = "mindnote" // 思维笔记 TokenTypeListPermissionMemberMinutes = "minutes" // 妙记 TokenTypeListPermissionMemberSlides = "slides" // 幻灯片 )
const ( MemberTypeTransferOwnerPermissionMemberEmail = "email" // 飞书邮箱 MemberTypeTransferOwnerPermissionMemberOpenId = "openid" // 开放平台ID MemberTypeTransferOwnerPermissionMemberUserId = "userid" // 用户自定义ID )
const ( TokenTypeTransferOwnerPermissionMemberDoc = "doc" // 文档 TokenTypeTransferOwnerPermissionMemberSheet = "sheet" // 电子表格 TokenTypeTransferOwnerPermissionMemberFile = "file" // 云空间文件 TokenTypeTransferOwnerPermissionMemberWiki = "wiki" // 知识库节点 TokenTypeTransferOwnerPermissionMemberBitable = "bitable" // 多维表格 TokenTypeTransferOwnerPermissionMemberDocx = "docx" // 新版文档 TokenTypeTransferOwnerPermissionMemberMindnote = "mindnote" // 思维笔记 TokenTypeTransferOwnerPermissionMemberMinutes = "minutes" // 妙记 TokenTypeTransferOwnerPermissionMemberSlides = "slides" // 幻灯片 )
const ( MemberTypeUpdatePermissionMemberEmail = "email" // 飞书邮箱 MemberTypeUpdatePermissionMemberOpenId = "openid" // 开放平台ID MemberTypeUpdatePermissionMemberOpenChat = "openchat" // 开放平台群组ID MemberTypeUpdatePermissionMemberOpenDepartmentId = "opendepartmentid" // 开放平台部门ID MemberTypeUpdatePermissionMemberUserId = "userid" // 用户自定义ID )
const ( PermUpdatePermissionMemberView = "view" // 可阅读角色 PermUpdatePermissionMemberEdit = "edit" // 可编辑角色 PermUpdatePermissionMemberFullAccess = "full_access" // 可管理角色 )
const ( TokenTypeUpdatePermissionMemberDoc = "doc" // 文档 TokenTypeUpdatePermissionMemberSheet = "sheet" // 电子表格 TokenTypeUpdatePermissionMemberFile = "file" // 云空间文件 TokenTypeUpdatePermissionMemberWiki = "wiki" // 知识库节点 TokenTypeUpdatePermissionMemberBitable = "bitable" // 多维表格 TokenTypeUpdatePermissionMemberDocx = "docx" // 文档 TokenTypeUpdatePermissionMemberMindnote = "mindnote" // 思维笔记 TokenTypeUpdatePermissionMemberMinutes = "minutes" // 妙记 TokenTypeUpdatePermissionMemberSlides = "slides" // 幻灯片 )
const ( TokenTypeGetPermissionPublicDoc = "doc" // 文档 TokenTypeGetPermissionPublicSheet = "sheet" // 电子表格 TokenTypeGetPermissionPublicFile = "file" // 云空间文件 TokenTypeGetPermissionPublicWiki = "wiki" // 知识库节点 TokenTypeGetPermissionPublicBitable = "bitable" // 多维表格 TokenTypeGetPermissionPublicDocx = "docx" // 文档 TokenTypeGetPermissionPublicMindnote = "mindnote" // 思维笔记 TokenTypeGetPermissionPublicMinutes = "minutes" // 妙记 TokenTypeGetPermissionPublicSlides = "slides" // 幻灯片 )
const ( SecurityEntityAnyoneCanView = "anyone_can_view" // 拥有可阅读权限的用户 SecurityEntityAnyoneCanEdit = "anyone_can_edit" // 拥有可编辑权限的用户 SecurityEntityOnlyFullAccess = "only_full_access" // 拥有可管理权限(包括我)的用户 )
const ( CommentEntityAnyoneCanView = "anyone_can_view" // 拥有可阅读权限的用户 CommentEntityAnyoneCanEdit = "anyone_can_edit" // 拥有可编辑权限的用户 )
const ()
const ()
const ( TokenTypePatchPermissionPublicDoc = "doc" // 文档 TokenTypePatchPermissionPublicSheet = "sheet" // 电子表格 TokenTypePatchPermissionPublicFile = "file" // 云空间文件 TokenTypePatchPermissionPublicWiki = "wiki" // 知识库节点 TokenTypePatchPermissionPublicBitable = "bitable" // 多维表格 TokenTypePatchPermissionPublicDocx = "docx" // 文档 TokenTypePatchPermissionPublicMindnote = "mindnote" // 思维笔记 TokenTypePatchPermissionPublicMinutes = "minutes" // 妙记 TokenTypePatchPermissionPublicSlides = "slides" // 幻灯片 )
const ( TokenTypeCreatePermissionPublicPasswordDoc = "doc" // 文档 TokenTypeCreatePermissionPublicPasswordSheet = "sheet" // 电子表格 TokenTypeCreatePermissionPublicPasswordFile = "file" // 云空间文件 TokenTypeCreatePermissionPublicPasswordWiki = "wiki" // 知识库节点 TokenTypeCreatePermissionPublicPasswordBitable = "bitable" // 多维表格 TokenTypeCreatePermissionPublicPasswordDocx = "docx" // 新版文档 TokenTypeCreatePermissionPublicPasswordMindnote = "mindnote" // 思维笔记 TokenTypeCreatePermissionPublicPasswordMinutes = "minutes" // 妙计 TokenTypeCreatePermissionPublicPasswordSlides = "slides" // 幻灯片 )
const ( TypeDeletePermissionPublicPasswordDoc = "doc" // 文档 TypeDeletePermissionPublicPasswordSheet = "sheet" // 电子表格 TypeDeletePermissionPublicPasswordFile = "file" // 云空间文件 TypeDeletePermissionPublicPasswordWiki = "wiki" // 知识库节点 TypeDeletePermissionPublicPasswordBitable = "bitable" // 多维表格 TypeDeletePermissionPublicPasswordDocx = "docx" // 新版文档 TypeDeletePermissionPublicPasswordMindnote = "mindnote" // 思维笔记 TypeDeletePermissionPublicPasswordMinutes = "minutes" // 妙计 TypeDeletePermissionPublicPasswordSlides = "slides" // 幻灯片 )
const ( TypeUpdatePermissionPublicPasswordDoc = "doc" // 文档 TypeUpdatePermissionPublicPasswordSheet = "sheet" // 电子表格 TypeUpdatePermissionPublicPasswordFile = "file" // 云空间文件 TypeUpdatePermissionPublicPasswordWiki = "wiki" // 知识库节点 TypeUpdatePermissionPublicPasswordBitable = "bitable" // 多维表格 TypeUpdatePermissionPublicPasswordDocx = "docx" // 新版文档 TypeUpdatePermissionPublicPasswordMindnote = "mindnote" // 思维笔记 TypeUpdatePermissionPublicPasswordMinutes = "minutes" // 妙计 TypeUpdatePermissionPublicPasswordSlides = "slides" // 幻灯片 )
const (
ParentTypeExplorer = "explorer" // 云空间
)
const (
ParentTypeUploadPrepareFileExplorer = "explorer" // 云空间
)
const (
SubscriptionTypeCommentUpdate = "comment_update" // 评论更新
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplyMemberRequest ¶
type ApplyMemberRequestBuilder ¶
type ApplyMemberRequestBuilder struct {
// contains filtered or unexported fields
}
func NewApplyMemberRequestBuilder ¶
func NewApplyMemberRequestBuilder() *ApplyMemberRequestBuilder
func (*ApplyMemberRequestBuilder) Build ¶
func (builder *ApplyMemberRequestBuilder) Build() *ApplyMemberRequest
func (*ApplyMemberRequestBuilder) Perm ¶
func (builder *ApplyMemberRequestBuilder) Perm(perm string) *ApplyMemberRequestBuilder
需要申请的权限,权限值:"view","edit"
示例值:view
func (*ApplyMemberRequestBuilder) Remark ¶
func (builder *ApplyMemberRequestBuilder) Remark(remark string) *ApplyMemberRequestBuilder
申请权限备注
示例值:apply_remark
type BaseMember ¶
type BaseMemberBuilder ¶
type BaseMemberBuilder struct {
// contains filtered or unexported fields
}
func NewBaseMemberBuilder ¶
func NewBaseMemberBuilder() *BaseMemberBuilder
func (*BaseMemberBuilder) Build ¶
func (builder *BaseMemberBuilder) Build() *BaseMember
func (*BaseMemberBuilder) MemberId ¶
func (builder *BaseMemberBuilder) MemberId(memberId string) *BaseMemberBuilder
协作者 ID,与协作者 ID 类型需要对应
示例值:string
func (*BaseMemberBuilder) MemberType ¶
func (builder *BaseMemberBuilder) MemberType(memberType string) *BaseMemberBuilder
协作者 ID 类型,与协作者 ID 需要对应
示例值:openid
func (*BaseMemberBuilder) Perm ¶
func (builder *BaseMemberBuilder) Perm(perm string) *BaseMemberBuilder
协作者对应的权限角色
示例值:view
type BitableTableFieldAction ¶
type BitableTableFieldAction struct { Action *string `json:"action,omitempty"` // 操作类型 FieldId *string `json:"field_id,omitempty"` // 字段 ID BeforeValue *BitableTableFieldActionValue `json:"before_value,omitempty"` // 操作前的字段值 AfterValue *BitableTableFieldActionValue `json:"after_value,omitempty"` // 操作后的字段值 }
type BitableTableFieldActionBuilder ¶
type BitableTableFieldActionBuilder struct {
// contains filtered or unexported fields
}
func NewBitableTableFieldActionBuilder ¶
func NewBitableTableFieldActionBuilder() *BitableTableFieldActionBuilder
func (*BitableTableFieldActionBuilder) Action ¶
func (builder *BitableTableFieldActionBuilder) Action(action string) *BitableTableFieldActionBuilder
操作类型
示例值:field_edited
func (*BitableTableFieldActionBuilder) AfterValue ¶
func (builder *BitableTableFieldActionBuilder) AfterValue(afterValue *BitableTableFieldActionValue) *BitableTableFieldActionBuilder
操作后的字段值
示例值:
func (*BitableTableFieldActionBuilder) BeforeValue ¶
func (builder *BitableTableFieldActionBuilder) BeforeValue(beforeValue *BitableTableFieldActionValue) *BitableTableFieldActionBuilder
操作前的字段值
示例值:
func (*BitableTableFieldActionBuilder) Build ¶
func (builder *BitableTableFieldActionBuilder) Build() *BitableTableFieldAction
func (*BitableTableFieldActionBuilder) FieldId ¶
func (builder *BitableTableFieldActionBuilder) FieldId(fieldId string) *BitableTableFieldActionBuilder
字段 ID
示例值:fldmj5qNii
type BitableTableFieldActionValue ¶
type BitableTableFieldActionValue struct { Id *string `json:"id,omitempty"` // 字段 ID Name *string `json:"name,omitempty"` // 字段名字 Type *int `json:"type,omitempty"` // 字段类型 Description *string `json:"description,omitempty"` // 字段描述 Property *BitableTableFieldActionValueProperty `json:"property,omitempty"` // 字段属性 }
type BitableTableFieldActionValueBuilder ¶
type BitableTableFieldActionValueBuilder struct {
// contains filtered or unexported fields
}
func NewBitableTableFieldActionValueBuilder ¶
func NewBitableTableFieldActionValueBuilder() *BitableTableFieldActionValueBuilder
func (*BitableTableFieldActionValueBuilder) Build ¶
func (builder *BitableTableFieldActionValueBuilder) Build() *BitableTableFieldActionValue
func (*BitableTableFieldActionValueBuilder) Description ¶
func (builder *BitableTableFieldActionValueBuilder) Description(description string) *BitableTableFieldActionValueBuilder
字段描述
示例值:description
func (*BitableTableFieldActionValueBuilder) Id ¶
func (builder *BitableTableFieldActionValueBuilder) Id(id string) *BitableTableFieldActionValueBuilder
字段 ID
示例值:fldmj5qNii
func (*BitableTableFieldActionValueBuilder) Name ¶
func (builder *BitableTableFieldActionValueBuilder) Name(name string) *BitableTableFieldActionValueBuilder
字段名字
示例值:field name
func (*BitableTableFieldActionValueBuilder) Property ¶
func (builder *BitableTableFieldActionValueBuilder) Property(property *BitableTableFieldActionValueProperty) *BitableTableFieldActionValueBuilder
字段属性
示例值:
func (*BitableTableFieldActionValueBuilder) Type ¶
func (builder *BitableTableFieldActionValueBuilder) Type(type_ int) *BitableTableFieldActionValueBuilder
字段类型
示例值:20
type BitableTableFieldActionValueProperty ¶
type BitableTableFieldActionValueProperty struct { Formatter *string `json:"formatter,omitempty"` // 数字、公式字段的显示格式 DateFormatter *string `json:"date_formatter,omitempty"` // 日期、创建时间、最后更新时间字段的显示格式 AutoFill *bool `json:"auto_fill,omitempty"` // 日期字段中新纪录自动填写创建时间 Multiple *bool `json:"multiple,omitempty"` // 人员字段中允许添加多个成员,单向关联、双向关联中允许添加多个记录 TableId *string `json:"table_id,omitempty"` // 单向关联、双向关联字段中关联的数据表的ID TableName *string `json:"table_name,omitempty"` // 单向关联、双向关联字段中关联的数据表的名字 BackFieldName *string `json:"back_field_name,omitempty"` // 双向关联字段中关联的数据表中对应的双向关联字段的名字 InputType *string `json:"input_type,omitempty"` // 地理位置输入限制 BackFieldId *string `json:"back_field_id,omitempty"` // 双向关联字段中关联的数据表中对应的双向关联字段的id AutoSerial *BitableTableFieldActionValuePropertyAutoSerial `json:"auto_serial,omitempty"` // 自动编号类型 Options []*BitableTableFieldActionValuePropertyOption `json:"options,omitempty"` // 单选、多选字段的选项信息 FormulaExpression *string `json:"formula_expression,omitempty"` // 公式字段的公式表达式 }
type BitableTableFieldActionValuePropertyAutoSerial ¶
type BitableTableFieldActionValuePropertyAutoSerial struct { Type *string `json:"type,omitempty"` // 自动编号类型 Options []*BitableTableFieldActionValuePropertyAutoSerialOptions `json:"options,omitempty"` // 自动编号规则列表 }
type BitableTableFieldActionValuePropertyAutoSerialBuilder ¶
type BitableTableFieldActionValuePropertyAutoSerialBuilder struct {
// contains filtered or unexported fields
}
func NewBitableTableFieldActionValuePropertyAutoSerialBuilder ¶
func NewBitableTableFieldActionValuePropertyAutoSerialBuilder() *BitableTableFieldActionValuePropertyAutoSerialBuilder
func (*BitableTableFieldActionValuePropertyAutoSerialBuilder) Build ¶
func (builder *BitableTableFieldActionValuePropertyAutoSerialBuilder) Build() *BitableTableFieldActionValuePropertyAutoSerial
func (*BitableTableFieldActionValuePropertyAutoSerialBuilder) Options ¶
func (builder *BitableTableFieldActionValuePropertyAutoSerialBuilder) Options(options []*BitableTableFieldActionValuePropertyAutoSerialOptions) *BitableTableFieldActionValuePropertyAutoSerialBuilder
自动编号规则列表
示例值:
func (*BitableTableFieldActionValuePropertyAutoSerialBuilder) Type ¶
func (builder *BitableTableFieldActionValuePropertyAutoSerialBuilder) Type(type_ string) *BitableTableFieldActionValuePropertyAutoSerialBuilder
自动编号类型
示例值:custom
type BitableTableFieldActionValuePropertyAutoSerialOptionsBuilder ¶
type BitableTableFieldActionValuePropertyAutoSerialOptionsBuilder struct {
// contains filtered or unexported fields
}
func NewBitableTableFieldActionValuePropertyAutoSerialOptionsBuilder ¶
func NewBitableTableFieldActionValuePropertyAutoSerialOptionsBuilder() *BitableTableFieldActionValuePropertyAutoSerialOptionsBuilder
func (*BitableTableFieldActionValuePropertyAutoSerialOptionsBuilder) Type ¶
func (builder *BitableTableFieldActionValuePropertyAutoSerialOptionsBuilder) Type(type_ string) *BitableTableFieldActionValuePropertyAutoSerialOptionsBuilder
自动编号的可选规则项类型
示例值:created_time
func (*BitableTableFieldActionValuePropertyAutoSerialOptionsBuilder) Value ¶
func (builder *BitableTableFieldActionValuePropertyAutoSerialOptionsBuilder) Value(value string) *BitableTableFieldActionValuePropertyAutoSerialOptionsBuilder
与类型相对应的取值
示例值:yyyyMMdd
type BitableTableFieldActionValuePropertyBuilder ¶
type BitableTableFieldActionValuePropertyBuilder struct {
// contains filtered or unexported fields
}
func NewBitableTableFieldActionValuePropertyBuilder ¶
func NewBitableTableFieldActionValuePropertyBuilder() *BitableTableFieldActionValuePropertyBuilder
func (*BitableTableFieldActionValuePropertyBuilder) AutoFill ¶
func (builder *BitableTableFieldActionValuePropertyBuilder) AutoFill(autoFill bool) *BitableTableFieldActionValuePropertyBuilder
日期字段中新纪录自动填写创建时间
示例值:true
func (*BitableTableFieldActionValuePropertyBuilder) AutoSerial ¶
func (builder *BitableTableFieldActionValuePropertyBuilder) AutoSerial(autoSerial *BitableTableFieldActionValuePropertyAutoSerial) *BitableTableFieldActionValuePropertyBuilder
自动编号类型
示例值:
func (*BitableTableFieldActionValuePropertyBuilder) BackFieldId ¶
func (builder *BitableTableFieldActionValuePropertyBuilder) BackFieldId(backFieldId string) *BitableTableFieldActionValuePropertyBuilder
双向关联字段中关联的数据表中对应的双向关联字段的id
示例值:fldmj5qNii
func (*BitableTableFieldActionValuePropertyBuilder) BackFieldName ¶
func (builder *BitableTableFieldActionValuePropertyBuilder) BackFieldName(backFieldName string) *BitableTableFieldActionValuePropertyBuilder
双向关联字段中关联的数据表中对应的双向关联字段的名字
示例值:field name
func (*BitableTableFieldActionValuePropertyBuilder) Build ¶
func (builder *BitableTableFieldActionValuePropertyBuilder) Build() *BitableTableFieldActionValueProperty
func (*BitableTableFieldActionValuePropertyBuilder) DateFormatter ¶
func (builder *BitableTableFieldActionValuePropertyBuilder) DateFormatter(dateFormatter string) *BitableTableFieldActionValuePropertyBuilder
日期、创建时间、最后更新时间字段的显示格式
示例值:yyyyMMdd
func (*BitableTableFieldActionValuePropertyBuilder) Formatter ¶
func (builder *BitableTableFieldActionValuePropertyBuilder) Formatter(formatter string) *BitableTableFieldActionValuePropertyBuilder
数字、公式字段的显示格式
示例值:1,000
func (*BitableTableFieldActionValuePropertyBuilder) FormulaExpression ¶
func (builder *BitableTableFieldActionValuePropertyBuilder) FormulaExpression(formulaExpression string) *BitableTableFieldActionValuePropertyBuilder
公式字段的公式表达式
示例值:bitable::$table[tblIniLz0Ic8oXyN].$field[fldqatAwxx]*6+333
func (*BitableTableFieldActionValuePropertyBuilder) InputType ¶
func (builder *BitableTableFieldActionValuePropertyBuilder) InputType(inputType string) *BitableTableFieldActionValuePropertyBuilder
地理位置输入限制
示例值:only_mobile
func (*BitableTableFieldActionValuePropertyBuilder) Multiple ¶
func (builder *BitableTableFieldActionValuePropertyBuilder) Multiple(multiple bool) *BitableTableFieldActionValuePropertyBuilder
人员字段中允许添加多个成员,单向关联、双向关联中允许添加多个记录
示例值:true
func (*BitableTableFieldActionValuePropertyBuilder) Options ¶
func (builder *BitableTableFieldActionValuePropertyBuilder) Options(options []*BitableTableFieldActionValuePropertyOption) *BitableTableFieldActionValuePropertyBuilder
单选、多选字段的选项信息
示例值:
func (*BitableTableFieldActionValuePropertyBuilder) TableId ¶
func (builder *BitableTableFieldActionValuePropertyBuilder) TableId(tableId string) *BitableTableFieldActionValuePropertyBuilder
单向关联、双向关联字段中关联的数据表的ID
示例值:tblIniLz0Ic8oXyN
func (*BitableTableFieldActionValuePropertyBuilder) TableName ¶
func (builder *BitableTableFieldActionValuePropertyBuilder) TableName(tableName string) *BitableTableFieldActionValuePropertyBuilder
单向关联、双向关联字段中关联的数据表的名字
示例值:table name
type BitableTableFieldActionValuePropertyOptionBuilder ¶
type BitableTableFieldActionValuePropertyOptionBuilder struct {
// contains filtered or unexported fields
}
func NewBitableTableFieldActionValuePropertyOptionBuilder ¶
func NewBitableTableFieldActionValuePropertyOptionBuilder() *BitableTableFieldActionValuePropertyOptionBuilder
func (*BitableTableFieldActionValuePropertyOptionBuilder) Build ¶
func (builder *BitableTableFieldActionValuePropertyOptionBuilder) Build() *BitableTableFieldActionValuePropertyOption
func (*BitableTableFieldActionValuePropertyOptionBuilder) Color ¶
func (builder *BitableTableFieldActionValuePropertyOptionBuilder) Color(color int) *BitableTableFieldActionValuePropertyOptionBuilder
选项颜色
示例值:3
func (*BitableTableFieldActionValuePropertyOptionBuilder) Id ¶
func (builder *BitableTableFieldActionValuePropertyOptionBuilder) Id(id string) *BitableTableFieldActionValuePropertyOptionBuilder
选项ID
示例值:optabcef
func (*BitableTableFieldActionValuePropertyOptionBuilder) Name ¶
func (builder *BitableTableFieldActionValuePropertyOptionBuilder) Name(name string) *BitableTableFieldActionValuePropertyOptionBuilder
选项名
示例值:option name
type BitableTableRecordAction ¶
type BitableTableRecordAction struct { RecordId *string `json:"record_id,omitempty"` // 记录 ID Action *string `json:"action,omitempty"` // 操作类型 BeforeValue []*BitableTableRecordActionField `json:"before_value,omitempty"` // 操作前的记录值 AfterValue []*BitableTableRecordActionField `json:"after_value,omitempty"` // 操作后的记录值 }
type BitableTableRecordActionBuilder ¶
type BitableTableRecordActionBuilder struct {
// contains filtered or unexported fields
}
func NewBitableTableRecordActionBuilder ¶
func NewBitableTableRecordActionBuilder() *BitableTableRecordActionBuilder
func (*BitableTableRecordActionBuilder) Action ¶
func (builder *BitableTableRecordActionBuilder) Action(action string) *BitableTableRecordActionBuilder
操作类型
示例值:
func (*BitableTableRecordActionBuilder) AfterValue ¶
func (builder *BitableTableRecordActionBuilder) AfterValue(afterValue []*BitableTableRecordActionField) *BitableTableRecordActionBuilder
操作后的记录值
示例值:
func (*BitableTableRecordActionBuilder) BeforeValue ¶
func (builder *BitableTableRecordActionBuilder) BeforeValue(beforeValue []*BitableTableRecordActionField) *BitableTableRecordActionBuilder
操作前的记录值
示例值:
func (*BitableTableRecordActionBuilder) Build ¶
func (builder *BitableTableRecordActionBuilder) Build() *BitableTableRecordAction
func (*BitableTableRecordActionBuilder) RecordId ¶
func (builder *BitableTableRecordActionBuilder) RecordId(recordId string) *BitableTableRecordActionBuilder
记录 ID
示例值:
type BitableTableRecordActionField ¶
type BitableTableRecordActionField struct { FieldId *string `json:"field_id,omitempty"` // 字段 ID FieldValue *string `json:"field_value,omitempty"` // 字段值 FieldIdentityValue *BitableTableRecordActionFieldIdentity `json:"field_identity_value,omitempty"` // 人员字段补充信息 }
type BitableTableRecordActionFieldBuilder ¶
type BitableTableRecordActionFieldBuilder struct {
// contains filtered or unexported fields
}
func NewBitableTableRecordActionFieldBuilder ¶
func NewBitableTableRecordActionFieldBuilder() *BitableTableRecordActionFieldBuilder
func (*BitableTableRecordActionFieldBuilder) Build ¶
func (builder *BitableTableRecordActionFieldBuilder) Build() *BitableTableRecordActionField
func (*BitableTableRecordActionFieldBuilder) FieldId ¶
func (builder *BitableTableRecordActionFieldBuilder) FieldId(fieldId string) *BitableTableRecordActionFieldBuilder
字段 ID
示例值:
func (*BitableTableRecordActionFieldBuilder) FieldIdentityValue ¶
func (builder *BitableTableRecordActionFieldBuilder) FieldIdentityValue(fieldIdentityValue *BitableTableRecordActionFieldIdentity) *BitableTableRecordActionFieldBuilder
人员字段补充信息
示例值:
func (*BitableTableRecordActionFieldBuilder) FieldValue ¶
func (builder *BitableTableRecordActionFieldBuilder) FieldValue(fieldValue string) *BitableTableRecordActionFieldBuilder
字段值
示例值:
type BitableTableRecordActionFieldIdentity ¶
type BitableTableRecordActionFieldIdentity struct {
Users []*BitableTableRecordActionFieldIdentityUser `json:"users,omitempty"` // 用户信息列表
}
type BitableTableRecordActionFieldIdentityBuilder ¶
type BitableTableRecordActionFieldIdentityBuilder struct {
// contains filtered or unexported fields
}
func NewBitableTableRecordActionFieldIdentityBuilder ¶
func NewBitableTableRecordActionFieldIdentityBuilder() *BitableTableRecordActionFieldIdentityBuilder
func (*BitableTableRecordActionFieldIdentityBuilder) Build ¶
func (builder *BitableTableRecordActionFieldIdentityBuilder) Build() *BitableTableRecordActionFieldIdentity
func (*BitableTableRecordActionFieldIdentityBuilder) Users ¶
func (builder *BitableTableRecordActionFieldIdentityBuilder) Users(users []*BitableTableRecordActionFieldIdentityUser) *BitableTableRecordActionFieldIdentityBuilder
用户信息列表
示例值:
type BitableTableRecordActionFieldIdentityUserBuilder ¶
type BitableTableRecordActionFieldIdentityUserBuilder struct {
// contains filtered or unexported fields
}
func NewBitableTableRecordActionFieldIdentityUserBuilder ¶
func NewBitableTableRecordActionFieldIdentityUserBuilder() *BitableTableRecordActionFieldIdentityUserBuilder
func (*BitableTableRecordActionFieldIdentityUserBuilder) AvatarUrl ¶
func (builder *BitableTableRecordActionFieldIdentityUserBuilder) AvatarUrl(avatarUrl string) *BitableTableRecordActionFieldIdentityUserBuilder
用户头像URL
示例值:
func (*BitableTableRecordActionFieldIdentityUserBuilder) Build ¶
func (builder *BitableTableRecordActionFieldIdentityUserBuilder) Build() *BitableTableRecordActionFieldIdentityUser
func (*BitableTableRecordActionFieldIdentityUserBuilder) EnName ¶
func (builder *BitableTableRecordActionFieldIdentityUserBuilder) EnName(enName string) *BitableTableRecordActionFieldIdentityUserBuilder
用户英文名称
示例值:
func (*BitableTableRecordActionFieldIdentityUserBuilder) Name ¶
func (builder *BitableTableRecordActionFieldIdentityUserBuilder) Name(name string) *BitableTableRecordActionFieldIdentityUserBuilder
用户名称
示例值:
func (*BitableTableRecordActionFieldIdentityUserBuilder) UserId ¶
func (builder *BitableTableRecordActionFieldIdentityUserBuilder) UserId(userId *UserId) *BitableTableRecordActionFieldIdentityUserBuilder
用户ID
示例值:
type Collaborator ¶
type Collaborator struct { MemberType *string `json:"member_type,omitempty"` // 协作者类型 "user" or "chat" MemberOpenId *string `json:"member_open_id,omitempty"` // 协作者openid MemberUserId *string `json:"member_user_id,omitempty"` // 协作者userid(仅当member_type="user"时有效) Perm *string `json:"perm,omitempty"` // 协作者权限 (注意: **有"edit"权限的协作者一定有"view"权限**) }
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) MemberOpenId ¶
func (builder *CollaboratorBuilder) MemberOpenId(memberOpenId string) *CollaboratorBuilder
协作者openid
示例值:ou_65b0affcc6c342a50e4c66f700137b64
func (*CollaboratorBuilder) MemberType ¶
func (builder *CollaboratorBuilder) MemberType(memberType string) *CollaboratorBuilder
协作者类型 "user" or "chat"
示例值:user
func (*CollaboratorBuilder) MemberUserId ¶
func (builder *CollaboratorBuilder) MemberUserId(memberUserId string) *CollaboratorBuilder
协作者userid(仅当member_type="user"时有效)
示例值:96g3c421
func (*CollaboratorBuilder) Perm ¶
func (builder *CollaboratorBuilder) Perm(perm string) *CollaboratorBuilder
协作者权限 (注意: **有"edit"权限的协作者一定有"view"权限**)
示例值:view
type DepartmentId ¶
type DepartmentIdBuilder ¶
type DepartmentIdBuilder struct {
// contains filtered or unexported fields
}
func NewDepartmentIdBuilder ¶
func NewDepartmentIdBuilder() *DepartmentIdBuilder
func (*DepartmentIdBuilder) Build ¶
func (builder *DepartmentIdBuilder) Build() *DepartmentId
func (*DepartmentIdBuilder) DepartmentId ¶
func (builder *DepartmentIdBuilder) DepartmentId(departmentId string) *DepartmentIdBuilder
示例值:
func (*DepartmentIdBuilder) OpenDepartmentId ¶
func (builder *DepartmentIdBuilder) OpenDepartmentId(openDepartmentId string) *DepartmentIdBuilder
示例值:
type DocsLinkBuilder ¶
type DocsLinkBuilder struct {
// contains filtered or unexported fields
}
func NewDocsLinkBuilder ¶
func NewDocsLinkBuilder() *DocsLinkBuilder
func (*DocsLinkBuilder) Build ¶
func (builder *DocsLinkBuilder) Build() *DocsLink
func (*DocsLinkBuilder) Url ¶
func (builder *DocsLinkBuilder) Url(url string) *DocsLinkBuilder
回复 at云文档
示例值:https://bytedance.feishu.cn/docs/doccnHh7U87HOFpii5u5Gabcef
type DownloadMediaReq ¶
type DownloadMediaReq struct {
// contains filtered or unexported fields
}
type DownloadMediaReqBuilder ¶
type DownloadMediaReqBuilder struct {
// contains filtered or unexported fields
}
func NewDownloadMediaReqBuilder ¶
func NewDownloadMediaReqBuilder() *DownloadMediaReqBuilder
func (*DownloadMediaReqBuilder) Build ¶
func (builder *DownloadMediaReqBuilder) Build() *DownloadMediaReq
func (*DownloadMediaReqBuilder) Extra ¶
func (builder *DownloadMediaReqBuilder) Extra(extra string) *DownloadMediaReqBuilder
扩展信息
示例值:[请参考-上传点类型及对应Extra说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/media/introduction)
func (*DownloadMediaReqBuilder) FileToken ¶
func (builder *DownloadMediaReqBuilder) FileToken(fileToken string) *DownloadMediaReqBuilder
文件的 token,获取方式见 [概述](https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/files/guide/introduction)
示例值:boxcnrHpsg1QDqXAAAyachabcef
type DownloadMediaResp ¶
type DownloadMediaResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError File io.Reader `json:"-"` FileName string `json:"-"` }
func (*DownloadMediaResp) Success ¶
func (resp *DownloadMediaResp) Success() bool
func (*DownloadMediaResp) WriteFile ¶
func (resp *DownloadMediaResp) WriteFile(fileName string) error
type DriveService ¶
type DriveService struct { Media *media // 素材 // contains filtered or unexported fields }
func NewService ¶
func NewService(config *larkcore.Config) *DriveService
type ExportTask ¶
type ExportTask struct { FileExtension *string `json:"file_extension,omitempty"` // 导出文件扩展名 Token *string `json:"token,omitempty"` // 导出文档 token [获取文档 token](https://open.feishu.cn/document/ukTMukTMukTM/uczNzUjL3czM14yN3MTN#08bb5df6) Type *string `json:"type,omitempty"` // 导出文档类型 [文档类型说明](/ssl::ttdoc/ukTMukTMukTM/uczNzUjL3czM14yN3MTN#560bf735) FileName *string `json:"file_name,omitempty"` // 导出文件名 SubId *string `json:"sub_id,omitempty"` // 导出子表ID,仅当将电子表格/多维表格导出为 csv 时使用;;;[获取电子表格子表ID](https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet/query) 文档中的 sheet_id;;[获取多维表格子表ID](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/bitable-v1/app-table/list) 文档中的 table_id FileToken *string `json:"file_token,omitempty"` // 导出文件 drive token FileSize *int `json:"file_size,omitempty"` // 导出文件大小,单位字节 JobErrorMsg *string `json:"job_error_msg,omitempty"` // 任务失败原因 JobStatus *int `json:"job_status,omitempty"` // 任务状态 }
type ExportTaskBuilder ¶
type ExportTaskBuilder struct {
// contains filtered or unexported fields
}
func NewExportTaskBuilder ¶
func NewExportTaskBuilder() *ExportTaskBuilder
func (*ExportTaskBuilder) Build ¶
func (builder *ExportTaskBuilder) Build() *ExportTask
func (*ExportTaskBuilder) FileExtension ¶
func (builder *ExportTaskBuilder) FileExtension(fileExtension string) *ExportTaskBuilder
导出文件扩展名
示例值:pdf
func (*ExportTaskBuilder) FileName ¶
func (builder *ExportTaskBuilder) FileName(fileName string) *ExportTaskBuilder
导出文件名
示例值:docName
func (*ExportTaskBuilder) FileSize ¶
func (builder *ExportTaskBuilder) FileSize(fileSize int) *ExportTaskBuilder
导出文件大小,单位字节
示例值:34356
func (*ExportTaskBuilder) FileToken ¶
func (builder *ExportTaskBuilder) FileToken(fileToken string) *ExportTaskBuilder
导出文件 drive token
示例值:boxcnxe5OxxxxxxxSNdsJviENsk
func (*ExportTaskBuilder) JobErrorMsg ¶
func (builder *ExportTaskBuilder) JobErrorMsg(jobErrorMsg string) *ExportTaskBuilder
任务失败原因
示例值:success
func (*ExportTaskBuilder) JobStatus ¶
func (builder *ExportTaskBuilder) JobStatus(jobStatus int) *ExportTaskBuilder
任务状态
示例值:0
func (*ExportTaskBuilder) SubId ¶
func (builder *ExportTaskBuilder) SubId(subId string) *ExportTaskBuilder
导出子表ID,仅当将电子表格/多维表格导出为 csv 时使用;;;[获取电子表格子表ID](https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/sheets-v3/spreadsheet-sheet/query) 文档中的 sheet_id;;[获取多维表格子表ID](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/bitable-v1/app-table/list) 文档中的 table_id
示例值:tblKz5D60T4JlfcT
func (*ExportTaskBuilder) Token ¶
func (builder *ExportTaskBuilder) Token(token string) *ExportTaskBuilder
导出文档 token [获取文档 token](https://open.feishu.cn/document/ukTMukTMukTM/uczNzUjL3czM14yN3MTN#08bb5df6)
示例值:doccnxe5OxxxxxxxSNdsJviENsk
func (*ExportTaskBuilder) Type ¶
func (builder *ExportTaskBuilder) Type(type_ string) *ExportTaskBuilder
导出文档类型 [文档类型说明](/ssl::ttdoc/ukTMukTMukTM/uczNzUjL3czM14yN3MTN#560bf735)
示例值:doc
type File ¶
type File struct { Token *string `json:"token,omitempty"` // 文件标识 Name *string `json:"name,omitempty"` // 文件名 Type *string `json:"type,omitempty"` // 文件类型 ParentToken *string `json:"parent_token,omitempty"` // 父文件夹标识 Url *string `json:"url,omitempty"` // 在浏览器中查看的链接 ShortcutInfo *ShortcutInfo `json:"shortcut_info,omitempty"` // 快捷方式文件信息 CreatedTime *string `json:"created_time,omitempty"` // 文件创建时间 ModifiedTime *string `json:"modified_time,omitempty"` // 文件最近修改时间 OwnerId *string `json:"owner_id,omitempty"` // 文件所有者 }
type FileBuilder ¶
type FileBuilder struct {
// contains filtered or unexported fields
}
func NewFileBuilder ¶
func NewFileBuilder() *FileBuilder
func (*FileBuilder) Build ¶
func (builder *FileBuilder) Build() *File
func (*FileBuilder) CreatedTime ¶
func (builder *FileBuilder) CreatedTime(createdTime string) *FileBuilder
文件创建时间
示例值:1686125119
func (*FileBuilder) ModifiedTime ¶
func (builder *FileBuilder) ModifiedTime(modifiedTime string) *FileBuilder
文件最近修改时间
示例值:1686125119
func (*FileBuilder) OwnerId ¶
func (builder *FileBuilder) OwnerId(ownerId string) *FileBuilder
文件所有者
示例值:ou_b13d41c02edc52ce66aaae67bf1abcef
func (*FileBuilder) ParentToken ¶
func (builder *FileBuilder) ParentToken(parentToken string) *FileBuilder
父文件夹标识
示例值:fldcnP8B5Fpr3UwVi24JykpuOic
func (*FileBuilder) ShortcutInfo ¶
func (builder *FileBuilder) ShortcutInfo(shortcutInfo *ShortcutInfo) *FileBuilder
快捷方式文件信息
示例值:
func (*FileBuilder) Token ¶
func (builder *FileBuilder) Token(token string) *FileBuilder
文件标识
示例值:fldcnP8B5Fpr3UwVi24JykpuOic
func (*FileBuilder) Url ¶
func (builder *FileBuilder) Url(url string) *FileBuilder
在浏览器中查看的链接
示例值:https://bytedance.feishu.cn/drive/folder/fldcnP8B5Fpr3UwVi24JykpuOic
type FileComment ¶
type FileComment struct { CommentId *string `json:"comment_id,omitempty"` // 评论ID(创建新评论可不填;如填写,则视为回复已有评论) UserId *string `json:"user_id,omitempty"` // 用户ID 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"` // 解决评论者的用户ID HasMore *bool `json:"has_more,omitempty"` // 是否有更多回复 PageToken *string `json:"page_token,omitempty"` // 回复分页标记 IsWhole *bool `json:"is_whole,omitempty"` // 是否是全文评论 Quote *string `json:"quote,omitempty"` // 如果是局部评论,引用字段 ReplyList *ReplyList `json:"reply_list,omitempty"` // 评论里的回复列表 }
type FileCommentBuilder ¶
type FileCommentBuilder struct {
// contains filtered or unexported fields
}
func NewFileCommentBuilder ¶
func NewFileCommentBuilder() *FileCommentBuilder
func (*FileCommentBuilder) Build ¶
func (builder *FileCommentBuilder) Build() *FileComment
func (*FileCommentBuilder) CommentId ¶
func (builder *FileCommentBuilder) CommentId(commentId string) *FileCommentBuilder
评论ID(创建新评论可不填;如填写,则视为回复已有评论)
示例值:6916106822734512356
func (*FileCommentBuilder) CreateTime ¶
func (builder *FileCommentBuilder) CreateTime(createTime int) *FileCommentBuilder
创建时间
示例值:1610281603
func (*FileCommentBuilder) HasMore ¶
func (builder *FileCommentBuilder) HasMore(hasMore bool) *FileCommentBuilder
是否有更多回复
示例值:false
func (*FileCommentBuilder) IsSolved ¶
func (builder *FileCommentBuilder) IsSolved(isSolved bool) *FileCommentBuilder
是否已解决
示例值:false
func (*FileCommentBuilder) IsWhole ¶
func (builder *FileCommentBuilder) IsWhole(isWhole bool) *FileCommentBuilder
是否是全文评论
示例值:true
func (*FileCommentBuilder) PageToken ¶
func (builder *FileCommentBuilder) PageToken(pageToken string) *FileCommentBuilder
回复分页标记
示例值:6916106822734512356
func (*FileCommentBuilder) Quote ¶
func (builder *FileCommentBuilder) Quote(quote string) *FileCommentBuilder
如果是局部评论,引用字段
示例值:划词评论引用内容
func (*FileCommentBuilder) ReplyList ¶
func (builder *FileCommentBuilder) ReplyList(replyList *ReplyList) *FileCommentBuilder
评论里的回复列表
示例值:
func (*FileCommentBuilder) SolvedTime ¶
func (builder *FileCommentBuilder) SolvedTime(solvedTime int) *FileCommentBuilder
解决评论时间
示例值:1610281603
func (*FileCommentBuilder) SolverUserId ¶
func (builder *FileCommentBuilder) SolverUserId(solverUserId string) *FileCommentBuilder
解决评论者的用户ID
示例值:null
func (*FileCommentBuilder) UpdateTime ¶
func (builder *FileCommentBuilder) UpdateTime(updateTime int) *FileCommentBuilder
更新时间
示例值:1610281603
func (*FileCommentBuilder) UserId ¶
func (builder *FileCommentBuilder) UserId(userId string) *FileCommentBuilder
用户ID
示例值:ou_cc19b2bfb93f8a44db4b4d6eababcef
type FileCommentReply ¶
type FileCommentReply struct { ReplyId *string `json:"reply_id,omitempty"` // 回复ID UserId *string `json:"user_id,omitempty"` // 用户ID CreateTime *int `json:"create_time,omitempty"` // 创建时间 UpdateTime *int `json:"update_time,omitempty"` // 更新时间 Content *ReplyContent `json:"content,omitempty"` // 回复内容 Extra *ReplyExtra `json:"extra,omitempty"` // 回复的其他内容,图片token等 }
type FileCommentReplyBuilder ¶
type FileCommentReplyBuilder struct {
// contains filtered or unexported fields
}
func NewFileCommentReplyBuilder ¶
func NewFileCommentReplyBuilder() *FileCommentReplyBuilder
func (*FileCommentReplyBuilder) Build ¶
func (builder *FileCommentReplyBuilder) Build() *FileCommentReply
func (*FileCommentReplyBuilder) Content ¶
func (builder *FileCommentReplyBuilder) Content(content *ReplyContent) *FileCommentReplyBuilder
回复内容
示例值:
func (*FileCommentReplyBuilder) CreateTime ¶
func (builder *FileCommentReplyBuilder) CreateTime(createTime int) *FileCommentReplyBuilder
创建时间
示例值:1610281603
func (*FileCommentReplyBuilder) Extra ¶
func (builder *FileCommentReplyBuilder) Extra(extra *ReplyExtra) *FileCommentReplyBuilder
回复的其他内容,图片token等
示例值:
func (*FileCommentReplyBuilder) ReplyId ¶
func (builder *FileCommentReplyBuilder) ReplyId(replyId string) *FileCommentReplyBuilder
回复ID
示例值:6916106822734512356
func (*FileCommentReplyBuilder) UpdateTime ¶
func (builder *FileCommentReplyBuilder) UpdateTime(updateTime int) *FileCommentReplyBuilder
更新时间
示例值:1610281603
func (*FileCommentReplyBuilder) UserId ¶
func (builder *FileCommentReplyBuilder) UserId(userId string) *FileCommentReplyBuilder
用户ID
示例值:ou_cc19b2bfb93f8a44db4b4d6eab2abcef
type FileFavorite ¶
type FileFavorite struct { }
type FileSearch ¶
type FileSearchBuilder ¶
type FileSearchBuilder struct {
// contains filtered or unexported fields
}
func NewFileSearchBuilder ¶
func NewFileSearchBuilder() *FileSearchBuilder
func (*FileSearchBuilder) Build ¶
func (builder *FileSearchBuilder) Build() *FileSearch
func (*FileSearchBuilder) DocsToken ¶
func (builder *FileSearchBuilder) DocsToken(docsToken string) *FileSearchBuilder
文档token
示例值:doxbcxcAgzUTcPI5xR7c6nGJDGc
func (*FileSearchBuilder) DocsType ¶
func (builder *FileSearchBuilder) DocsType(docsType string) *FileSearchBuilder
文档类型
示例值:sheet
func (*FileSearchBuilder) OwnerId ¶
func (builder *FileSearchBuilder) OwnerId(ownerId string) *FileSearchBuilder
文件所有者
示例值:ou_6e92f20bb8842c89c0f7e4090b13d57a
func (*FileSearchBuilder) Title ¶
func (builder *FileSearchBuilder) Title(title string) *FileSearchBuilder
标题
示例值:标题
type FileStatistics ¶
type FileStatistics struct { Uv *int `json:"uv,omitempty"` // 文件历史访问人数,同一用户(user_id)多次访问按一次计算。 Pv *int `json:"pv,omitempty"` // 文件历史访问次数,同一用户(user_id)多次访问按多次计算。(注:同一用户相邻两次访问间隔在半小时内视为一次访问) LikeCount *int `json:"like_count,omitempty"` // 文件历史点赞总数,若对应的文档类型不支持点赞,返回 -1 Timestamp *int `json:"timestamp,omitempty"` // 时间戳(秒) }
type FileStatisticsBuilder ¶
type FileStatisticsBuilder struct {
// contains filtered or unexported fields
}
func NewFileStatisticsBuilder ¶
func NewFileStatisticsBuilder() *FileStatisticsBuilder
func (*FileStatisticsBuilder) Build ¶
func (builder *FileStatisticsBuilder) Build() *FileStatistics
func (*FileStatisticsBuilder) LikeCount ¶
func (builder *FileStatisticsBuilder) LikeCount(likeCount int) *FileStatisticsBuilder
文件历史点赞总数,若对应的文档类型不支持点赞,返回 -1
示例值:2
func (*FileStatisticsBuilder) Pv ¶
func (builder *FileStatisticsBuilder) Pv(pv int) *FileStatisticsBuilder
文件历史访问次数,同一用户(user_id)多次访问按多次计算。(注:同一用户相邻两次访问间隔在半小时内视为一次访问)
示例值:15
func (*FileStatisticsBuilder) Timestamp ¶
func (builder *FileStatisticsBuilder) Timestamp(timestamp int) *FileStatisticsBuilder
时间戳(秒)
示例值:1627367349
func (*FileStatisticsBuilder) Uv ¶
func (builder *FileStatisticsBuilder) Uv(uv int) *FileStatisticsBuilder
文件历史访问人数,同一用户(user_id)多次访问按一次计算。
示例值:10
type FileSubscription ¶
type FileSubscriptionBuilder ¶
type FileSubscriptionBuilder struct {
// contains filtered or unexported fields
}
func NewFileSubscriptionBuilder ¶
func NewFileSubscriptionBuilder() *FileSubscriptionBuilder
func (*FileSubscriptionBuilder) Build ¶
func (builder *FileSubscriptionBuilder) Build() *FileSubscription
func (*FileSubscriptionBuilder) FileType ¶
func (builder *FileSubscriptionBuilder) FileType(fileType string) *FileSubscriptionBuilder
文档类型
示例值:doc
func (*FileSubscriptionBuilder) IsSubcribe ¶
func (builder *FileSubscriptionBuilder) IsSubcribe(isSubcribe bool) *FileSubscriptionBuilder
是否订阅
示例值:true
func (*FileSubscriptionBuilder) SubscriptionId ¶
func (builder *FileSubscriptionBuilder) SubscriptionId(subscriptionId string) *FileSubscriptionBuilder
订阅关系ID
示例值:1234567890987654321
func (*FileSubscriptionBuilder) SubscriptionType ¶
func (builder *FileSubscriptionBuilder) SubscriptionType(subscriptionType string) *FileSubscriptionBuilder
订阅类型
示例值:comment_update
type FileUploadInfo ¶
type FileUploadInfoBuilder ¶
type FileUploadInfoBuilder struct {
// contains filtered or unexported fields
}
func NewFileUploadInfoBuilder ¶
func NewFileUploadInfoBuilder() *FileUploadInfoBuilder
func (*FileUploadInfoBuilder) Build ¶
func (builder *FileUploadInfoBuilder) Build() *FileUploadInfo
func (*FileUploadInfoBuilder) FileName ¶
func (builder *FileUploadInfoBuilder) FileName(fileName string) *FileUploadInfoBuilder
文件名
示例值:test.txt
func (*FileUploadInfoBuilder) ParentNode ¶
func (builder *FileUploadInfoBuilder) ParentNode(parentNode string) *FileUploadInfoBuilder
文件夹的token
示例值:fldbcO1UuPz8VwnpPx5a92abcef
func (*FileUploadInfoBuilder) ParentType ¶
func (builder *FileUploadInfoBuilder) ParentType(parentType string) *FileUploadInfoBuilder
上传点类型
示例值:explorer
func (*FileUploadInfoBuilder) Size ¶
func (builder *FileUploadInfoBuilder) Size(size int) *FileUploadInfoBuilder
文件大小
示例值:1024
type FileViewRecord ¶
type FileViewRecordBuilder ¶
type FileViewRecordBuilder struct {
// contains filtered or unexported fields
}
func NewFileViewRecordBuilder ¶
func NewFileViewRecordBuilder() *FileViewRecordBuilder
func (*FileViewRecordBuilder) AvatarUrl ¶
func (builder *FileViewRecordBuilder) AvatarUrl(avatarUrl string) *FileViewRecordBuilder
访问者头像 URL
func (*FileViewRecordBuilder) Build ¶
func (builder *FileViewRecordBuilder) Build() *FileViewRecord
func (*FileViewRecordBuilder) LastViewTime ¶
func (builder *FileViewRecordBuilder) LastViewTime(lastViewTime string) *FileViewRecordBuilder
最近访问时间,秒级时间戳
示例值:1679284285
func (*FileViewRecordBuilder) Name ¶
func (builder *FileViewRecordBuilder) Name(name string) *FileViewRecordBuilder
访问者名称
示例值:zhangsan
func (*FileViewRecordBuilder) ViewerId ¶
func (builder *FileViewRecordBuilder) ViewerId(viewerId string) *FileViewRecordBuilder
访问者 ID
示例值:ou_cc19b2bfb93f8a44db4b4d6eababcef
type ImportTask ¶
type ImportTask struct { Ticket *string `json:"ticket,omitempty"` // 任务ID FileExtension *string `json:"file_extension,omitempty"` // 导入文件格式后缀 FileToken *string `json:"file_token,omitempty"` // 导入文件Drive FileToken Type *string `json:"type,omitempty"` // 导入目标云文档格式 FileName *string `json:"file_name,omitempty"` // 导入目标云文档文件名 ,若为空使用Drive文件名 Point *ImportTaskMountPoint `json:"point,omitempty"` // 挂载点 JobStatus *int `json:"job_status,omitempty"` // 任务状态 JobErrorMsg *string `json:"job_error_msg,omitempty"` // 任务失败原因 Token *string `json:"token,omitempty"` // 导入云文档Token Url *string `json:"url,omitempty"` // 导入云文档URL Extra []string `json:"extra,omitempty"` // 任务成功后的提示信息 }
type ImportTaskBuilder ¶
type ImportTaskBuilder struct {
// contains filtered or unexported fields
}
func NewImportTaskBuilder ¶
func NewImportTaskBuilder() *ImportTaskBuilder
func (*ImportTaskBuilder) Build ¶
func (builder *ImportTaskBuilder) Build() *ImportTask
func (*ImportTaskBuilder) Extra ¶
func (builder *ImportTaskBuilder) Extra(extra []string) *ImportTaskBuilder
任务成功后的提示信息
示例值:
func (*ImportTaskBuilder) FileExtension ¶
func (builder *ImportTaskBuilder) FileExtension(fileExtension string) *ImportTaskBuilder
导入文件格式后缀
示例值:xlsx
func (*ImportTaskBuilder) FileName ¶
func (builder *ImportTaskBuilder) FileName(fileName string) *ImportTaskBuilder
导入目标云文档文件名 ,若为空使用Drive文件名
示例值:test
func (*ImportTaskBuilder) FileToken ¶
func (builder *ImportTaskBuilder) FileToken(fileToken string) *ImportTaskBuilder
导入文件Drive FileToken
示例值:boxcnxe5OxxxxxxxSNdsJviENsk
func (*ImportTaskBuilder) JobErrorMsg ¶
func (builder *ImportTaskBuilder) JobErrorMsg(jobErrorMsg string) *ImportTaskBuilder
任务失败原因
示例值:success
func (*ImportTaskBuilder) JobStatus ¶
func (builder *ImportTaskBuilder) JobStatus(jobStatus int) *ImportTaskBuilder
任务状态
示例值:0
func (*ImportTaskBuilder) Point ¶
func (builder *ImportTaskBuilder) Point(point *ImportTaskMountPoint) *ImportTaskBuilder
挂载点
示例值:
func (*ImportTaskBuilder) Ticket ¶
func (builder *ImportTaskBuilder) Ticket(ticket string) *ImportTaskBuilder
任务ID
示例值:6990281865xxxxxxxx7843
func (*ImportTaskBuilder) Token ¶
func (builder *ImportTaskBuilder) Token(token string) *ImportTaskBuilder
导入云文档Token
示例值:shtcnVBTG6SuxxxxxxxkM2tUX
func (*ImportTaskBuilder) Type ¶
func (builder *ImportTaskBuilder) Type(type_ string) *ImportTaskBuilder
导入目标云文档格式
示例值:sheet
func (*ImportTaskBuilder) Url ¶
func (builder *ImportTaskBuilder) Url(url string) *ImportTaskBuilder
导入云文档URL
示例值:https://bytedance.feishu.cn/sheets/shtcnVBTG6SuxxxxxxxkM2tUX
type ImportTaskMountPoint ¶
type ImportTaskMountPointBuilder ¶
type ImportTaskMountPointBuilder struct {
// contains filtered or unexported fields
}
func NewImportTaskMountPointBuilder ¶
func NewImportTaskMountPointBuilder() *ImportTaskMountPointBuilder
func (*ImportTaskMountPointBuilder) Build ¶
func (builder *ImportTaskMountPointBuilder) Build() *ImportTaskMountPoint
func (*ImportTaskMountPointBuilder) MountKey ¶
func (builder *ImportTaskMountPointBuilder) MountKey(mountKey string) *ImportTaskMountPointBuilder
挂载位置,对于mount_type=1, 云空间目录token,空表示根目录
示例值:fldxxxxxxxx
func (*ImportTaskMountPointBuilder) MountType ¶
func (builder *ImportTaskMountPointBuilder) MountType(mountType int) *ImportTaskMountPointBuilder
挂载类型
示例值:1
type MediaBuilder ¶
type MediaBuilder struct {
// contains filtered or unexported fields
}
func NewMediaBuilder ¶
func NewMediaBuilder() *MediaBuilder
func (*MediaBuilder) Build ¶
func (builder *MediaBuilder) Build() *Media
func (*MediaBuilder) FileName ¶
func (builder *MediaBuilder) FileName(fileName string) *MediaBuilder
文件名
示例值:
func (*MediaBuilder) FileToken ¶
func (builder *MediaBuilder) FileToken(fileToken string) *MediaBuilder
文件标识符
示例值:
func (*MediaBuilder) MimeType ¶
func (builder *MediaBuilder) MimeType(mimeType string) *MediaBuilder
文件MIME类型
示例值:
type MediaUploadInfo ¶
type MediaUploadInfoBuilder ¶
type MediaUploadInfoBuilder struct {
// contains filtered or unexported fields
}
func NewMediaUploadInfoBuilder ¶
func NewMediaUploadInfoBuilder() *MediaUploadInfoBuilder
func (*MediaUploadInfoBuilder) Build ¶
func (builder *MediaUploadInfoBuilder) Build() *MediaUploadInfo
func (*MediaUploadInfoBuilder) Extra ¶
func (builder *MediaUploadInfoBuilder) Extra(extra string) *MediaUploadInfoBuilder
扩展信息(可选)
示例值:{\"test\":\"test\"}
func (*MediaUploadInfoBuilder) FileName ¶
func (builder *MediaUploadInfoBuilder) FileName(fileName string) *MediaUploadInfoBuilder
文件名
示例值:demo.jpeg
func (*MediaUploadInfoBuilder) ParentNode ¶
func (builder *MediaUploadInfoBuilder) ParentNode(parentNode string) *MediaUploadInfoBuilder
上传点的标识符
示例值:doccnFivLCfJfblZjGZtxgabcef
func (*MediaUploadInfoBuilder) ParentType ¶
func (builder *MediaUploadInfoBuilder) ParentType(parentType string) *MediaUploadInfoBuilder
上传点类型
示例值:doc_image
func (*MediaUploadInfoBuilder) Size ¶
func (builder *MediaUploadInfoBuilder) Size(size int) *MediaUploadInfoBuilder
文件大小
示例值:1024
type Member ¶
type Member struct { MemberType *string `json:"member_type,omitempty"` // 协作者 ID 类型,与协作者 ID 需要对应 MemberId *string `json:"member_id,omitempty"` // 协作者 ID,与协作者 ID 类型需要对应 Perm *string `json:"perm,omitempty"` // 协作者对应的权限角色 Type *string `json:"type,omitempty"` // 协作者的类型 Name *string `json:"name,omitempty"` // 协作者的名字 Avatar *string `json:"avatar,omitempty"` // 协作者的头像 ExternalLabel *bool `json:"external_label,omitempty"` // 协作者的外部标签 }
type MemberBuilder ¶
type MemberBuilder struct {
// contains filtered or unexported fields
}
func NewMemberBuilder ¶
func NewMemberBuilder() *MemberBuilder
func (*MemberBuilder) Avatar ¶
func (builder *MemberBuilder) Avatar(avatar string) *MemberBuilder
协作者的头像
func (*MemberBuilder) Build ¶
func (builder *MemberBuilder) Build() *Member
func (*MemberBuilder) ExternalLabel ¶
func (builder *MemberBuilder) ExternalLabel(externalLabel bool) *MemberBuilder
协作者的外部标签
示例值:true
func (*MemberBuilder) MemberId ¶
func (builder *MemberBuilder) MemberId(memberId string) *MemberBuilder
协作者 ID,与协作者 ID 类型需要对应
示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62
func (*MemberBuilder) MemberType ¶
func (builder *MemberBuilder) MemberType(memberType string) *MemberBuilder
协作者 ID 类型,与协作者 ID 需要对应
示例值:openid
func (*MemberBuilder) Name ¶
func (builder *MemberBuilder) Name(name string) *MemberBuilder
协作者的名字
示例值:zhangsan
func (*MemberBuilder) Perm ¶
func (builder *MemberBuilder) Perm(perm string) *MemberBuilder
协作者对应的权限角色
示例值:view
func (*MemberBuilder) Type ¶
func (builder *MemberBuilder) Type(type_ string) *MemberBuilder
协作者的类型
示例值:user
type Meta ¶
type Meta struct { DocToken *string `json:"doc_token,omitempty"` // 文件token DocType *string `json:"doc_type,omitempty"` // 文件类型 Title *string `json:"title,omitempty"` // 标题 OwnerId *string `json:"owner_id,omitempty"` // 文件所有者 CreateTime *string `json:"create_time,omitempty"` // 创建时间(Unix时间戳) LatestModifyUser *string `json:"latest_modify_user,omitempty"` // 最后编辑者 LatestModifyTime *string `json:"latest_modify_time,omitempty"` // 最后编辑时间(Unix时间戳) Url *string `json:"url,omitempty"` // 文档链接 SecLabelName *string `json:"sec_label_name,omitempty"` // 文档密级标签名称 }
type MetaBuilder ¶
type MetaBuilder struct {
// contains filtered or unexported fields
}
func NewMetaBuilder ¶
func NewMetaBuilder() *MetaBuilder
func (*MetaBuilder) Build ¶
func (builder *MetaBuilder) Build() *Meta
func (*MetaBuilder) CreateTime ¶
func (builder *MetaBuilder) CreateTime(createTime string) *MetaBuilder
创建时间(Unix时间戳)
示例值:1652066345
func (*MetaBuilder) DocToken ¶
func (builder *MetaBuilder) DocToken(docToken string) *MetaBuilder
文件token
示例值:doccnfYZzTlvXqZIGTdAHKabcef
func (*MetaBuilder) DocType ¶
func (builder *MetaBuilder) DocType(docType string) *MetaBuilder
文件类型
示例值:doc
func (*MetaBuilder) LatestModifyTime ¶
func (builder *MetaBuilder) LatestModifyTime(latestModifyTime string) *MetaBuilder
最后编辑时间(Unix时间戳)
示例值:1652066345
func (*MetaBuilder) LatestModifyUser ¶
func (builder *MetaBuilder) LatestModifyUser(latestModifyUser string) *MetaBuilder
最后编辑者
示例值:ou_b13d41c02edc52ce66aaae67bf1abcef
func (*MetaBuilder) OwnerId ¶
func (builder *MetaBuilder) OwnerId(ownerId string) *MetaBuilder
文件所有者
示例值:ou_b13d41c02edc52ce66aaae67bf1abcef
func (*MetaBuilder) SecLabelName ¶
func (builder *MetaBuilder) SecLabelName(secLabelName string) *MetaBuilder
文档密级标签名称
示例值:L2-内部
func (*MetaBuilder) Title ¶
func (builder *MetaBuilder) Title(title string) *MetaBuilder
标题
示例值:sampletitle
func (*MetaBuilder) Url ¶
func (builder *MetaBuilder) Url(url string) *MetaBuilder
文档链接
示例值:https://sample.feishu.cn/docs/doccnfYZzTlvXqZIGTdAHKabcef
type MetaFailed ¶
type MetaFailedBuilder ¶
type MetaFailedBuilder struct {
// contains filtered or unexported fields
}
func NewMetaFailedBuilder ¶
func NewMetaFailedBuilder() *MetaFailedBuilder
func (*MetaFailedBuilder) Build ¶
func (builder *MetaFailedBuilder) Build() *MetaFailed
func (*MetaFailedBuilder) Code ¶
func (builder *MetaFailedBuilder) Code(code int) *MetaFailedBuilder
获取元数据失败的错误码
示例值:970005
func (*MetaFailedBuilder) Token ¶
func (builder *MetaFailedBuilder) Token(token string) *MetaFailedBuilder
获取元数据失败的文档token
示例值:boxcnrHpsg1QDqXAAAyachabcef
type MetaRequest ¶
type MetaRequest struct { RequestDocs []*RequestDoc `json:"request_docs,omitempty"` // 请求文档, 一次不超过200个 WithUrl *bool `json:"with_url,omitempty"` // 是否获取文档链接 }
type MetaRequestBuilder ¶
type MetaRequestBuilder struct {
// contains filtered or unexported fields
}
func NewMetaRequestBuilder ¶
func NewMetaRequestBuilder() *MetaRequestBuilder
func (*MetaRequestBuilder) Build ¶
func (builder *MetaRequestBuilder) Build() *MetaRequest
func (*MetaRequestBuilder) RequestDocs ¶
func (builder *MetaRequestBuilder) RequestDocs(requestDocs []*RequestDoc) *MetaRequestBuilder
请求文档, 一次不超过200个
示例值:
func (*MetaRequestBuilder) WithUrl ¶
func (builder *MetaRequestBuilder) WithUrl(withUrl bool) *MetaRequestBuilder
是否获取文档链接
示例值:false
type OwnerBuilder ¶
type OwnerBuilder struct {
// contains filtered or unexported fields
}
func NewOwnerBuilder ¶
func NewOwnerBuilder() *OwnerBuilder
func (*OwnerBuilder) Build ¶
func (builder *OwnerBuilder) Build() *Owner
func (*OwnerBuilder) MemberId ¶
func (builder *OwnerBuilder) MemberId(memberId string) *OwnerBuilder
文档拥有者的ID,与文档拥有者的ID类型需要对应
示例值:string
func (*OwnerBuilder) MemberType ¶
func (builder *OwnerBuilder) MemberType(memberType string) *OwnerBuilder
文档拥有者的ID类型
示例值:openid
type PermissionPublic ¶
type PermissionPublic struct { ExternalAccess *bool `json:"external_access,omitempty"` // 允许内容被分享到组织外;;**可选值有:** ;- `true`: 允许;- `false`: 不允许 SecurityEntity *string `json:"security_entity,omitempty"` // 谁可以复制内容、创建副本、打印、下载 CommentEntity *string `json:"comment_entity,omitempty"` // 可评论设置 InviteExternal *bool `json:"invite_external,omitempty"` // 允许非「可管理权限」的人分享到组织外 LockSwitch *bool `json:"lock_switch,omitempty"` // 节点加锁状态 }
type PermissionPublicBuilder ¶
type PermissionPublicBuilder struct {
// contains filtered or unexported fields
}
func NewPermissionPublicBuilder ¶
func NewPermissionPublicBuilder() *PermissionPublicBuilder
func (*PermissionPublicBuilder) Build ¶
func (builder *PermissionPublicBuilder) Build() *PermissionPublic
func (*PermissionPublicBuilder) CommentEntity ¶
func (builder *PermissionPublicBuilder) CommentEntity(commentEntity string) *PermissionPublicBuilder
可评论设置
示例值:anyone_can_view
func (*PermissionPublicBuilder) ExternalAccess ¶
func (builder *PermissionPublicBuilder) ExternalAccess(externalAccess bool) *PermissionPublicBuilder
允许内容被分享到组织外;;**可选值有:** ;- `true`: 允许;- `false`: 不允许
示例值:true
func (*PermissionPublicBuilder) InviteExternal ¶
func (builder *PermissionPublicBuilder) InviteExternal(inviteExternal bool) *PermissionPublicBuilder
允许非「可管理权限」的人分享到组织外
示例值:true
func (*PermissionPublicBuilder) LinkShareEntity ¶
func (builder *PermissionPublicBuilder) LinkShareEntity(linkShareEntity string) *PermissionPublicBuilder
链接分享设置
示例值:tenant_readable
func (*PermissionPublicBuilder) LockSwitch ¶
func (builder *PermissionPublicBuilder) LockSwitch(lockSwitch bool) *PermissionPublicBuilder
节点加锁状态
示例值:false
func (*PermissionPublicBuilder) SecurityEntity ¶
func (builder *PermissionPublicBuilder) SecurityEntity(securityEntity string) *PermissionPublicBuilder
谁可以复制内容、创建副本、打印、下载
示例值:anyone_can_view
func (*PermissionPublicBuilder) ShareEntity ¶
func (builder *PermissionPublicBuilder) ShareEntity(shareEntity string) *PermissionPublicBuilder
谁可以添加和管理协作者
示例值:anyone
type PermissionPublicPassword ¶
type PermissionPublicPassword struct { }
type PermissionPublicRequest ¶
type PermissionPublicRequest struct { ExternalAccess *bool `json:"external_access,omitempty"` // 允许内容被分享到组织外 SecurityEntity *string `json:"security_entity,omitempty"` // 谁可以复制内容、创建副本、打印、下载 CommentEntity *string `json:"comment_entity,omitempty"` // 谁可以评论 InviteExternal *bool `json:"invite_external,omitempty"` // 允许非「可管理权限」的人分享到组织外 }
type PermissionPublicRequestBuilder ¶
type PermissionPublicRequestBuilder struct {
// contains filtered or unexported fields
}
func NewPermissionPublicRequestBuilder ¶
func NewPermissionPublicRequestBuilder() *PermissionPublicRequestBuilder
func (*PermissionPublicRequestBuilder) Build ¶
func (builder *PermissionPublicRequestBuilder) Build() *PermissionPublicRequest
func (*PermissionPublicRequestBuilder) CommentEntity ¶
func (builder *PermissionPublicRequestBuilder) CommentEntity(commentEntity string) *PermissionPublicRequestBuilder
谁可以评论
示例值:anyone_can_view
func (*PermissionPublicRequestBuilder) ExternalAccess ¶
func (builder *PermissionPublicRequestBuilder) ExternalAccess(externalAccess bool) *PermissionPublicRequestBuilder
允许内容被分享到组织外
示例值:true
func (*PermissionPublicRequestBuilder) InviteExternal ¶
func (builder *PermissionPublicRequestBuilder) InviteExternal(inviteExternal bool) *PermissionPublicRequestBuilder
允许非「可管理权限」的人分享到组织外
示例值:true
func (*PermissionPublicRequestBuilder) LinkShareEntity ¶
func (builder *PermissionPublicRequestBuilder) LinkShareEntity(linkShareEntity string) *PermissionPublicRequestBuilder
链接分享设置
示例值:tenant_readable
func (*PermissionPublicRequestBuilder) SecurityEntity ¶
func (builder *PermissionPublicRequestBuilder) SecurityEntity(securityEntity string) *PermissionPublicRequestBuilder
谁可以复制内容、创建副本、打印、下载
示例值:anyone_can_view
func (*PermissionPublicRequestBuilder) ShareEntity ¶
func (builder *PermissionPublicRequestBuilder) ShareEntity(shareEntity string) *PermissionPublicRequestBuilder
谁可以添加和管理协作者
示例值:anyone
type PersonBuilder ¶
type PersonBuilder struct {
// contains filtered or unexported fields
}
func NewPersonBuilder ¶
func NewPersonBuilder() *PersonBuilder
func (*PersonBuilder) Build ¶
func (builder *PersonBuilder) Build() *Person
func (*PersonBuilder) UserId ¶
func (builder *PersonBuilder) UserId(userId string) *PersonBuilder
回复 at联系人
示例值:ou_cc19b2bfb93f8a44db4b4d6eababcef
type PropertyBuilder ¶
type PropertyBuilder struct {
// contains filtered or unexported fields
}
func NewPropertyBuilder ¶
func NewPropertyBuilder() *PropertyBuilder
func (*PropertyBuilder) Build ¶
func (builder *PropertyBuilder) Build() *Property
func (*PropertyBuilder) Key ¶
func (builder *PropertyBuilder) Key(key string) *PropertyBuilder
自定义属性键对象
示例值:target_type
func (*PropertyBuilder) Value ¶
func (builder *PropertyBuilder) Value(value string) *PropertyBuilder
自定义属性值对象
示例值:docx
type ReferEntity ¶
type ReferEntityBuilder ¶
type ReferEntityBuilder struct {
// contains filtered or unexported fields
}
func NewReferEntityBuilder ¶
func NewReferEntityBuilder() *ReferEntityBuilder
func (*ReferEntityBuilder) Build ¶
func (builder *ReferEntityBuilder) Build() *ReferEntity
func (*ReferEntityBuilder) ReferToken ¶
func (builder *ReferEntityBuilder) ReferToken(referToken string) *ReferEntityBuilder
快捷方式指向的文档token
示例值:doxbcGvhSVN0R6octqPwAEYNfFb
func (*ReferEntityBuilder) ReferType ¶
func (builder *ReferEntityBuilder) ReferType(referType string) *ReferEntityBuilder
快捷方式指向的文档类型
示例值:doc
type ReplyContent ¶
type ReplyContent struct {
Elements []*ReplyElement `json:"elements,omitempty"` // 回复的内容
}
type ReplyContentBuilder ¶
type ReplyContentBuilder struct {
// contains filtered or unexported fields
}
func NewReplyContentBuilder ¶
func NewReplyContentBuilder() *ReplyContentBuilder
func (*ReplyContentBuilder) Build ¶
func (builder *ReplyContentBuilder) Build() *ReplyContent
func (*ReplyContentBuilder) Elements ¶
func (builder *ReplyContentBuilder) Elements(elements []*ReplyElement) *ReplyContentBuilder
回复的内容
示例值:
type ReplyElement ¶
type ReplyElementBuilder ¶
type ReplyElementBuilder struct {
// contains filtered or unexported fields
}
func NewReplyElementBuilder ¶
func NewReplyElementBuilder() *ReplyElementBuilder
func (*ReplyElementBuilder) Build ¶
func (builder *ReplyElementBuilder) Build() *ReplyElement
func (*ReplyElementBuilder) DocsLink ¶
func (builder *ReplyElementBuilder) DocsLink(docsLink *DocsLink) *ReplyElementBuilder
文本内容
示例值:
func (*ReplyElementBuilder) Person ¶
func (builder *ReplyElementBuilder) Person(person *Person) *ReplyElementBuilder
文本内容
示例值:
func (*ReplyElementBuilder) TextRun ¶
func (builder *ReplyElementBuilder) TextRun(textRun *TextRun) *ReplyElementBuilder
文本内容
示例值:
func (*ReplyElementBuilder) Type ¶
func (builder *ReplyElementBuilder) Type(type_ string) *ReplyElementBuilder
回复的内容元素
示例值:text_run
type ReplyExtra ¶
type ReplyExtra struct {
ImageList []string `json:"image_list,omitempty"` // 评论中的图片token list
}
type ReplyExtraBuilder ¶
type ReplyExtraBuilder struct {
// contains filtered or unexported fields
}
func NewReplyExtraBuilder ¶
func NewReplyExtraBuilder() *ReplyExtraBuilder
func (*ReplyExtraBuilder) Build ¶
func (builder *ReplyExtraBuilder) Build() *ReplyExtra
func (*ReplyExtraBuilder) ImageList ¶
func (builder *ReplyExtraBuilder) ImageList(imageList []string) *ReplyExtraBuilder
评论中的图片token list
示例值:["xfsfseewewabcef"]
type ReplyList ¶
type ReplyList struct {
Replies []*FileCommentReply `json:"replies,omitempty"` // 回复列表
}
type ReplyListBuilder ¶
type ReplyListBuilder struct {
// contains filtered or unexported fields
}
func NewReplyListBuilder ¶
func NewReplyListBuilder() *ReplyListBuilder
func (*ReplyListBuilder) Build ¶
func (builder *ReplyListBuilder) Build() *ReplyList
func (*ReplyListBuilder) Replies ¶
func (builder *ReplyListBuilder) Replies(replies []*FileCommentReply) *ReplyListBuilder
回复列表
示例值:
type RequestDoc ¶
type RequestDoc struct { DocToken *string `json:"doc_token,omitempty"` // 文件的 token,获取方式见[如何获取云文档资源相关 token](https://open.feishu.cn/document/ukTMukTMukTM/uczNzUjL3czM14yN3MTN#08bb5df6) DocType *string `json:"doc_type,omitempty"` // 文件类型 }
type RequestDocBuilder ¶
type RequestDocBuilder struct {
// contains filtered or unexported fields
}
func NewRequestDocBuilder ¶
func NewRequestDocBuilder() *RequestDocBuilder
func (*RequestDocBuilder) Build ¶
func (builder *RequestDocBuilder) Build() *RequestDoc
func (*RequestDocBuilder) DocToken ¶
func (builder *RequestDocBuilder) DocToken(docToken string) *RequestDocBuilder
文件的 token,获取方式见[如何获取云文档资源相关 token](https://open.feishu.cn/document/ukTMukTMukTM/uczNzUjL3czM14yN3MTN#08bb5df6)
示例值:doccnfYZzTlvXqZIGTdAHKabcef
func (*RequestDocBuilder) DocType ¶
func (builder *RequestDocBuilder) DocType(docType string) *RequestDocBuilder
文件类型
示例值:doc
type ShortcutInfo ¶
type ShortcutInfoBuilder ¶
type ShortcutInfoBuilder struct {
// contains filtered or unexported fields
}
func NewShortcutInfoBuilder ¶
func NewShortcutInfoBuilder() *ShortcutInfoBuilder
func (*ShortcutInfoBuilder) Build ¶
func (builder *ShortcutInfoBuilder) Build() *ShortcutInfo
func (*ShortcutInfoBuilder) TargetToken ¶
func (builder *ShortcutInfoBuilder) TargetToken(targetToken string) *ShortcutInfoBuilder
快捷方式指向的原文件token
示例值:
func (*ShortcutInfoBuilder) TargetType ¶
func (builder *ShortcutInfoBuilder) TargetType(targetType string) *ShortcutInfoBuilder
快捷方式指向的原文件类型
示例值:
type TextRunBuilder ¶
type TextRunBuilder struct {
// contains filtered or unexported fields
}
func NewTextRunBuilder ¶
func NewTextRunBuilder() *TextRunBuilder
func (*TextRunBuilder) Build ¶
func (builder *TextRunBuilder) Build() *TextRun
func (*TextRunBuilder) Text ¶
func (builder *TextRunBuilder) Text(text string) *TextRunBuilder
回复 普通文本
示例值:comment text
type TmpDownloadUrl ¶
type TmpDownloadUrlBuilder ¶
type TmpDownloadUrlBuilder struct {
// contains filtered or unexported fields
}
func NewTmpDownloadUrlBuilder ¶
func NewTmpDownloadUrlBuilder() *TmpDownloadUrlBuilder
func (*TmpDownloadUrlBuilder) Build ¶
func (builder *TmpDownloadUrlBuilder) Build() *TmpDownloadUrl
func (*TmpDownloadUrlBuilder) FileToken ¶
func (builder *TmpDownloadUrlBuilder) FileToken(fileToken string) *TmpDownloadUrlBuilder
文件标识符
示例值:boxcnrHpsg1QDqXAAAyachabcef
func (*TmpDownloadUrlBuilder) TmpDownloadUrl ¶
func (builder *TmpDownloadUrlBuilder) TmpDownloadUrl(tmpDownloadUrl string) *TmpDownloadUrlBuilder
文件临时下载链接
type TokenType ¶
type TokenType struct { Token *string `json:"token,omitempty"` // 文件的 token,获取方式见 [对接前说明](https://open.feishu.cn/document/ukTMukTMukTM/uczNzUjL3czM14yN3MTN)的第 4 项 Type *string `json:"type,omitempty"` // 文档类型 "isv" }
type TokenTypeBuilder ¶
type TokenTypeBuilder struct {
// contains filtered or unexported fields
}
func NewTokenTypeBuilder ¶
func NewTokenTypeBuilder() *TokenTypeBuilder
func (*TokenTypeBuilder) Build ¶
func (builder *TokenTypeBuilder) Build() *TokenType
func (*TokenTypeBuilder) Token ¶
func (builder *TokenTypeBuilder) Token(token string) *TokenTypeBuilder
文件的 token,获取方式见 [对接前说明](https://open.feishu.cn/document/ukTMukTMukTM/uczNzUjL3czM14yN3MTN)的第 4 项
示例值:isvcnBKgoMyY5OMbUG6FioTXuBe
func (*TokenTypeBuilder) Type ¶
func (builder *TokenTypeBuilder) Type(type_ string) *TokenTypeBuilder
文档类型 "isv"
示例值:isv
type UploadAllMediaPathReqBodyBuilder ¶
type UploadAllMediaPathReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewUploadAllMediaPathReqBodyBuilder ¶
func NewUploadAllMediaPathReqBodyBuilder() *UploadAllMediaPathReqBodyBuilder
func (*UploadAllMediaPathReqBodyBuilder) Build ¶
func (builder *UploadAllMediaPathReqBodyBuilder) Build() (*UploadAllMediaReqBody, error)
func (*UploadAllMediaPathReqBodyBuilder) Checksum ¶
func (builder *UploadAllMediaPathReqBodyBuilder) Checksum(checksum string) *UploadAllMediaPathReqBodyBuilder
文件adler32校验和(可选)。
示例值:12345678
func (*UploadAllMediaPathReqBodyBuilder) Extra ¶
func (builder *UploadAllMediaPathReqBodyBuilder) Extra(extra string) *UploadAllMediaPathReqBodyBuilder
扩展信息(可选)。
示例值:{"test":"test"}
func (*UploadAllMediaPathReqBodyBuilder) FileName ¶
func (builder *UploadAllMediaPathReqBodyBuilder) FileName(fileName string) *UploadAllMediaPathReqBodyBuilder
文件名。
示例值:demo.jpeg
func (*UploadAllMediaPathReqBodyBuilder) FilePath ¶
func (builder *UploadAllMediaPathReqBodyBuilder) FilePath(filePath string) *UploadAllMediaPathReqBodyBuilder
文件二进制内容。
示例值:file binary
func (*UploadAllMediaPathReqBodyBuilder) ParentNode ¶
func (builder *UploadAllMediaPathReqBodyBuilder) ParentNode(parentNode string) *UploadAllMediaPathReqBodyBuilder
上传点的token。
示例值:doccnFivLCfJfblZjGZtxgabcef
func (*UploadAllMediaPathReqBodyBuilder) ParentType ¶
func (builder *UploadAllMediaPathReqBodyBuilder) ParentType(parentType string) *UploadAllMediaPathReqBodyBuilder
上传点类型。
示例值:doc_image
func (*UploadAllMediaPathReqBodyBuilder) Size ¶
func (builder *UploadAllMediaPathReqBodyBuilder) Size(size int) *UploadAllMediaPathReqBodyBuilder
文件大小(以字节为单位)。
示例值:1024
type UploadAllMediaReq ¶
type UploadAllMediaReq struct { Body *UploadAllMediaReqBody `body:""` // contains filtered or unexported fields }
type UploadAllMediaReqBody ¶
type UploadAllMediaReqBody struct { FileName *string `json:"file_name,omitempty"` // 文件名。 ParentType *string `json:"parent_type,omitempty"` // 上传点类型。 ParentNode *string `json:"parent_node,omitempty"` // 上传点的token。 Size *int `json:"size,omitempty"` // 文件大小(以字节为单位)。 Checksum *string `json:"checksum,omitempty"` // 文件adler32校验和(可选)。 Extra *string `json:"extra,omitempty"` // 扩展信息(可选)。 File io.Reader `json:"file,omitempty"` // 文件二进制内容。 }
type UploadAllMediaReqBodyBuilder ¶
type UploadAllMediaReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewUploadAllMediaReqBodyBuilder ¶
func NewUploadAllMediaReqBodyBuilder() *UploadAllMediaReqBodyBuilder
func (*UploadAllMediaReqBodyBuilder) Build ¶
func (builder *UploadAllMediaReqBodyBuilder) Build() *UploadAllMediaReqBody
func (*UploadAllMediaReqBodyBuilder) Checksum ¶
func (builder *UploadAllMediaReqBodyBuilder) Checksum(checksum string) *UploadAllMediaReqBodyBuilder
文件adler32校验和(可选)。
示例值:12345678
func (*UploadAllMediaReqBodyBuilder) Extra ¶
func (builder *UploadAllMediaReqBodyBuilder) Extra(extra string) *UploadAllMediaReqBodyBuilder
扩展信息(可选)。
示例值:{"test":"test"}
func (*UploadAllMediaReqBodyBuilder) File ¶
func (builder *UploadAllMediaReqBodyBuilder) File(file io.Reader) *UploadAllMediaReqBodyBuilder
文件二进制内容。
示例值:file binary
func (*UploadAllMediaReqBodyBuilder) FileName ¶
func (builder *UploadAllMediaReqBodyBuilder) FileName(fileName string) *UploadAllMediaReqBodyBuilder
文件名。
示例值:demo.jpeg
func (*UploadAllMediaReqBodyBuilder) ParentNode ¶
func (builder *UploadAllMediaReqBodyBuilder) ParentNode(parentNode string) *UploadAllMediaReqBodyBuilder
上传点的token。
示例值:doccnFivLCfJfblZjGZtxgabcef
func (*UploadAllMediaReqBodyBuilder) ParentType ¶
func (builder *UploadAllMediaReqBodyBuilder) ParentType(parentType string) *UploadAllMediaReqBodyBuilder
上传点类型。
示例值:doc_image
func (*UploadAllMediaReqBodyBuilder) Size ¶
func (builder *UploadAllMediaReqBodyBuilder) Size(size int) *UploadAllMediaReqBodyBuilder
文件大小(以字节为单位)。
示例值:1024
type UploadAllMediaReqBuilder ¶
type UploadAllMediaReqBuilder struct {
// contains filtered or unexported fields
}
func NewUploadAllMediaReqBuilder ¶
func NewUploadAllMediaReqBuilder() *UploadAllMediaReqBuilder
func (*UploadAllMediaReqBuilder) Body ¶
func (builder *UploadAllMediaReqBuilder) Body(body *UploadAllMediaReqBody) *UploadAllMediaReqBuilder
将文件、图片、视频等素材文件上传到指定云文档中。素材文件在云空间中不会显示,只会显示在对应云文档中。
func (*UploadAllMediaReqBuilder) Build ¶
func (builder *UploadAllMediaReqBuilder) Build() *UploadAllMediaReq
type UploadAllMediaResp ¶
type UploadAllMediaResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *UploadAllMediaRespData `json:"data"` // 业务数据 }
func (*UploadAllMediaResp) Success ¶
func (resp *UploadAllMediaResp) Success() bool
type UploadAllMediaRespData ¶
type UploadAllMediaRespData struct {
FileToken *string `json:"file_token,omitempty"` // 素材文件的 token。
}
type UploadInfo ¶
type UploadInfoBuilder ¶
type UploadInfoBuilder struct {
// contains filtered or unexported fields
}
func NewUploadInfoBuilder ¶
func NewUploadInfoBuilder() *UploadInfoBuilder
func (*UploadInfoBuilder) Build ¶
func (builder *UploadInfoBuilder) Build() *UploadInfo
func (*UploadInfoBuilder) FileName ¶
func (builder *UploadInfoBuilder) FileName(fileName string) *UploadInfoBuilder
文件名
示例值:
func (*UploadInfoBuilder) ParentNode ¶
func (builder *UploadInfoBuilder) ParentNode(parentNode string) *UploadInfoBuilder
父节点
示例值:
func (*UploadInfoBuilder) ParentType ¶
func (builder *UploadInfoBuilder) ParentType(parentType string) *UploadInfoBuilder
父节点类型(父文件系统类型)
示例值:
func (*UploadInfoBuilder) Size ¶
func (builder *UploadInfoBuilder) Size(size int) *UploadInfoBuilder
文件大小
示例值:
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 Version ¶
type Version struct { Name *string `json:"name,omitempty"` // 版本文档标题 Version *string `json:"version,omitempty"` // 版本文档版本号 ParentToken *string `json:"parent_token,omitempty"` // shtbcpM2mm3znrLfWnf4browTYp OwnerId *string `json:"owner_id,omitempty"` // 版本文档所有者id CreatorId *string `json:"creator_id,omitempty"` // 版本文档创建者id CreateTime *string `json:"create_time,omitempty"` // 版本文档创建时间 UpdateTime *string `json:"update_time,omitempty"` // 版本文档更新时间 Status *string `json:"status,omitempty"` // 版本文档状态 ObjType *string `json:"obj_type,omitempty"` // 版本文档类型 ParentType *string `json:"parent_type,omitempty"` // 源文档类型 }
type VersionBuilder ¶
type VersionBuilder struct {
// contains filtered or unexported fields
}
func NewVersionBuilder ¶
func NewVersionBuilder() *VersionBuilder
func (*VersionBuilder) Build ¶
func (builder *VersionBuilder) Build() *Version
func (*VersionBuilder) CreateTime ¶
func (builder *VersionBuilder) CreateTime(createTime string) *VersionBuilder
版本文档创建时间
示例值:1660708537
func (*VersionBuilder) CreatorId ¶
func (builder *VersionBuilder) CreatorId(creatorId string) *VersionBuilder
版本文档创建者id
示例值:694699009591869451
func (*VersionBuilder) Name ¶
func (builder *VersionBuilder) Name(name string) *VersionBuilder
版本文档标题
示例值:文档标题
func (*VersionBuilder) ObjType ¶
func (builder *VersionBuilder) ObjType(objType string) *VersionBuilder
版本文档类型
示例值:docx
func (*VersionBuilder) OwnerId ¶
func (builder *VersionBuilder) OwnerId(ownerId string) *VersionBuilder
版本文档所有者id
示例值:694699009591869450
func (*VersionBuilder) ParentToken ¶
func (builder *VersionBuilder) ParentToken(parentToken string) *VersionBuilder
shtbcpM2mm3znrLfWnf4browTYp
示例值:1665739388
func (*VersionBuilder) ParentType ¶
func (builder *VersionBuilder) ParentType(parentType string) *VersionBuilder
源文档类型
示例值:docx
func (*VersionBuilder) Status ¶
func (builder *VersionBuilder) Status(status string) *VersionBuilder
版本文档状态
示例值:0
func (*VersionBuilder) UpdateTime ¶
func (builder *VersionBuilder) UpdateTime(updateTime string) *VersionBuilder
版本文档更新时间
示例值:1660708537
func (*VersionBuilder) Version ¶
func (builder *VersionBuilder) Version(version string) *VersionBuilder
版本文档版本号
示例值:version1