larkdrive

package
v3.0.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 7 Imported by: 3

Documentation

Index

Constants

View Source
const (
	FileExtensionDocx = "docx" // word docx 格式
	FileExtensionPdf  = "pdf"  // pdf 格式
	FileExtensionXlsx = "xlsx" // excel xlsx 格式
	FileExtensionCsv  = "csv"  // csv 格式
)
View Source
const (
	TypeDoc     = "doc"     // 旧版飞书云文档类型
	TypeSheet   = "sheet"   // 飞书电子表格类型
	TypeBitable = "bitable" // 飞书多维表格类型
	TypeDocx    = "docx"    // 新版飞书云文档类型
)
View Source
const (
	TypeCopyFileFile     = "file"     // 文件类型
	TypeCopyFileDoc      = "doc"      // 云文档类型
	TypeCopyFileSheet    = "sheet"    // 电子表格类型
	TypeCopyFileBitable  = "bitable"  // 多维表格类型
	TypeCopyFileDocx     = "docx"     // 新版云文档类型
	TypeCopyFileMindnote = "mindnote" // 思维笔记类型
	TypeCopyFileSlides   = "slides"   // 幻灯片类型
)
View Source
const (
	UserIdTypeUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeCreateShortcutFileUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeCreateShortcutFileUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeCreateShortcutFileOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	TypeDeleteFileFile     = "file"     // 文件类型
	TypeDeleteFileDocx     = "docx"     // docx文档类型
	TypeDeleteFileBitable  = "bitable"  // 多维表格类型
	TypeDeleteFileFolder   = "folder"   // 文件夹类型
	TypeDeleteFileDoc      = "doc"      // doc文档类型
	TypeDeleteFileSheet    = "sheet"    // 电子表格类型
	TypeDeleteFileMindnote = "mindnote" // 思维笔记类型
	TypeDeleteFileShortcut = "shortcut" // 快捷方式类型
	TypeDeleteFileSlides   = "slides"   // 幻灯片
)
View Source
const (
	FileTypeDoc     = "doc"     // 文档
	FileTypeDocx    = "docx"    // docx文档
	FileTypeSheet   = "sheet"   // 表格
	FileTypeBitable = "bitable" // 多维表格
	FileTypeFile    = "file"    // 文件
)
View Source
const (
	FileTypeGetSubscribeFileDoc     = "doc"     // 文档
	FileTypeGetSubscribeFileDocx    = "docx"    // docx文档
	FileTypeGetSubscribeFileSheet   = "sheet"   // 表格
	FileTypeGetSubscribeFileBitable = "bitable" // 多维表格
	FileTypeGetSubscribeFileFile    = "file"    // 文件
)
View Source
const (
	OrderByEditedTime  = "EditedTime"  // 编辑时间排序
	OrderByCreatedTime = "CreatedTime" // 创建时间排序
)
View Source
const (
	DirectionASC  = "ASC"  // 升序
	DirectionDESC = "DESC" // 降序
)
View Source
const (
	UserIdTypeListFileUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeListFileUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeListFileOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	TypeMoveFileFile     = "file"     // 普通文件类型
	TypeMoveFileDocx     = "docx"     // 新版文档类型
	TypeMoveFileBitable  = "bitable"  // 多维表格类型
	TypeMoveFileDoc      = "doc"      // doc文档类型
	TypeMoveFileSheet    = "sheet"    // 电子表格类型
	TypeMoveFileMindnote = "mindnote" // 思维笔记类型
	TypeMoveFileFolder   = "folder"   // 文件夹类型
	TypeMoveFileSlides   = "slides"   // 幻灯片类型
)
View Source
const (
	FileTypeSubscribeFileDoc     = "doc"     // 文档
	FileTypeSubscribeFileDocx    = "docx"    // docx文档
	FileTypeSubscribeFileSheet   = "sheet"   // 表格
	FileTypeSubscribeFileBitable = "bitable" // 多维表格
)
View Source
const (
	FileTypeBatchQueryFileCommentDoc   = "doc"   // 文档
	FileTypeBatchQueryFileCommentSheet = "sheet" // 表格
	FileTypeBatchQueryFileCommentFile  = "file"  // 文件
	FileTypeBatchQueryFileCommentDocx  = "docx"  // 新版文档
)
View Source
const (
	UserIdTypeBatchQueryFileCommentUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeBatchQueryFileCommentUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeBatchQueryFileCommentOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	FileTypeCreateFileCommentDoc  = "doc"  // 文档
	FileTypeCreateFileCommentDocx = "docx" // 新版文档
)
View Source
const (
	UserIdTypeCreateFileCommentUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeCreateFileCommentUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeCreateFileCommentOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	FileTypeGetFileCommentDoc   = "doc"   // 文档
	FileTypeGetFileCommentSheet = "sheet" // 表格
	FileTypeGetFileCommentFile  = "file"  // 文件
	FileTypeGetFileCommentDocx  = "docx"  // 新版文档
)
View Source
const (
	UserIdTypeGetFileCommentUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeGetFileCommentUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeGetFileCommentOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	FileTypeListFileCommentDoc   = "doc"   // 文档
	FileTypeListFileCommentSheet = "sheet" // 表格
	FileTypeListFileCommentFile  = "file"  // 文件
	FileTypeListFileCommentDocx  = "docx"  // 新版文档
)
View Source
const (
	UserIdTypeListFileCommentUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeListFileCommentUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeListFileCommentOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	FileTypePatchFileCommentDoc   = "doc"   // 文档
	FileTypePatchFileCommentSheet = "sheet" // 表格
	FileTypePatchFileCommentFile  = "file"  // 文件
	FileTypePatchFileCommentDocx  = "docx"  // 新版文档
)
View Source
const (
	FileTypeDeleteFileCommentReplyDoc   = "doc"   // 文档
	FileTypeDeleteFileCommentReplySheet = "sheet" // 表格
	FileTypeDeleteFileCommentReplyFile  = "file"  // 文件
	FileTypeDeleteFileCommentReplyDocx  = "docx"  // 新版文档
)
View Source
const (
	FileTypeListFileCommentReplyDoc   = "doc"   // 文档
	FileTypeListFileCommentReplySheet = "sheet" // 表格
	FileTypeListFileCommentReplyFile  = "file"  // 文件
	FileTypeListFileCommentReplyDocx  = "docx"  // 新版本文档
)
View Source
const (
	UserIdTypeListFileCommentReplyUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeListFileCommentReplyUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeListFileCommentReplyOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	FileTypeUpdateFileCommentReplyDoc   = "doc"   // 文档
	FileTypeUpdateFileCommentReplySheet = "sheet" // 表格
	FileTypeUpdateFileCommentReplyFile  = "file"  // 文件
	FileTypeUpdateFileCommentReplyDocx  = "docx"  // 新版文档
)
View Source
const (
	UserIdTypeUpdateFileCommentReplyUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeUpdateFileCommentReplyUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeUpdateFileCommentReplyOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	FileTypeGetFileStatisticsDoc      = "doc"      // doc文档
	FileTypeGetFileStatisticsSheet    = "sheet"    // 表格
	FileTypeGetFileStatisticsMindnote = "mindnote" // 思维笔记
	FileTypeGetFileStatisticsBitable  = "bitable"  // 多维表格
	FileTypeGetFileStatisticsWiki     = "wiki"     // 知识库wiki
	FileTypeGetFileStatisticsFile     = "file"     // 文件
	FileTypeGetFileStatisticsDocx     = "docx"     // docx文档
)
View Source
const (
	FileTypeCreateFileSubscriptionDoc  = "doc"  // 文档
	FileTypeCreateFileSubscriptionDocx = "docx" // 文档2.0
	FileTypeCreateFileSubscriptionWiki = "wiki" // 知识库wiki
)
View Source
const (
	FileTypeGetFileSubscriptionDocs         = "doc"  // 旧版文档
	FileTypeGetFileSubscriptionUpgradedDocs = "docx" // 新版文档
	FileTypeGetFileSubscriptionWiki         = "wiki" // 云空间
)
View Source
const (
	FileTypePatchFileSubscriptionDoc  = "doc"  // 文档1.0
	FileTypePatchFileSubscriptionDocx = "docx" // 文档2.0
	FileTypePatchFileSubscriptionWiki = "wiki" // 知识库wiki
)
View Source
const (
	StatusStatusExist   = "0" // 正常状态
	StatusStatusDeleted = "1" // 删除状态
	StatusStatusTrash   = "2" // 回收站状态
)
View Source
const (
	ObjTypeDocx  = "docx"  // 新版文档
	ObjTypeSheet = "sheet" // 电子表格
)
View Source
const (
	ParentTypeCreateFileVersionObjTypeDocx  = "docx"  // 新版文档
	ParentTypeCreateFileVersionObjTypeSheet = "sheet" // 电子表格
)
View Source
const (
	UserIdTypeCreateFileVersionUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeCreateFileVersionUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeCreateFileVersionOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	ObjTypeDeleteFileVersionDocx  = "docx"  // 新版文档
	ObjTypeDeleteFileVersionSheet = "sheet" // 电子表格
)
View Source
const (
	UserIdTypeDeleteFileVersionOpenId  = "open_id"  // 用户open_id
	UserIdTypeDeleteFileVersionUnionId = "union_id" // 用户union_id
	UserIdTypeDeleteFileVersionUserId  = "user_id"  // 用户user_id
)
View Source
const (
	ObjTypeGetFileVersionDocx  = "docx"  // 新版文档
	ObjTypeGetFileVersionSheet = "sheet" // 电子表格
)
View Source
const (
	UserIdTypeGetFileVersionOpenId  = "open_id"  // 用户open_id
	UserIdTypeGetFileVersionUnionId = "union_id" // 用户union_id
	UserIdTypeGetFileVersionUserId  = "user_id"  // 用户user_id
)
View Source
const (
	ObjTypeListFileVersionDocx  = "docx"  // 新版文档
	ObjTypeListFileVersionSheet = "sheet" // 电子表格
)
View Source
const (
	UserIdTypeListFileVersionOpenId  = "open_id"  // 用户open_id
	UserIdTypeListFileVersionUnionId = "union_id" // 用户union_id
	UserIdTypeListFileVersionUserId  = "user_id"  // 用户user_id
)
View Source
const (
	FileTypeListFileViewRecordDoc      = "doc"      // 旧版文档
	FileTypeListFileViewRecordDocx     = "docx"     // 新版文档
	FileTypeListFileViewRecordSheet    = "sheet"    // 电子表格
	FileTypeListFileViewRecordBitable  = "bitable"  // 多维表格
	FileTypeListFileViewRecordMindnote = "mindnote" // 思维笔记
	FileTypeListFileViewRecordWiki     = "wiki"     // 知识库文档
	FileTypeListFileViewRecordFile     = "file"     // 文件
)
View Source
const (
	ViewerIdTypeUserId  = "user_id"  // 以user_id来识别用户
	ViewerIdTypeUnionId = "union_id" // 以union_id来识别用户
	ViewerIdTypeOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
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"       // 云文档导入文件
)
View Source
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"       // 云文档导入文件
)
View Source
const (
	UserIdTypeBatchQueryMetaUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeBatchQueryMetaUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeBatchQueryMetaOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	TokenTypeDoc      = "doc"      // 文档
	TokenTypeSheet    = "sheet"    // 电子表格
	TokenTypeFile     = "file"     // 云空间文件
	TokenTypeWiki     = "wiki"     // 知识库节点
	TokenTypeBitable  = "bitable"  // 多维表格
	TokenTypeDocx     = "docx"     // 新版文档
	TokenTypeMindnote = "mindnote" // 思维笔记
	TokenTypeMinutes  = "minutes"  // 妙记
	TokenTypeSlides   = "slides"   // 幻灯片
)
View Source
const (
	PermView         = "view"          // 阅读
	PermEdit         = "edit"          // 编辑
	PermShare        = "share"         // 分享
	PermComment      = "comment"       // 评论
	PermExport       = "export"        // 导出
	PermCopy         = "copy"          // 拷贝
	PermPrint        = "print"         // 打印
	PermManagePublic = "manage_public" // 管理权限设置
)
View Source
const (
	MemberTypeEmail            = "email"            // 飞书邮箱
	MemberTypeOpenId           = "openid"           // 开放平台ID
	MemberTypeOpenChat         = "openchat"         // 开放平台群组ID
	MemberTypeOpenDepartmentId = "opendepartmentid" // 开放平台部门ID
	MemberTypeUserId           = "userid"           // 用户自定义ID
)
View Source
const (
	PermCreatePermissionMemberView       = "view"        // 可阅读角色
	PermCreatePermissionMemberEdit       = "edit"        // 可编辑角色
	PermCreatePermissionMemberFullAccess = "full_access" // 可管理角色
)
View Source
const (
	TokenTypeV2Doc      = "doc"      // 文档
	TokenTypeV2Sheet    = "sheet"    // 电子表格
	TokenTypeV2File     = "file"     // 云空间文件
	TokenTypeV2Wiki     = "wiki"     // 知识库节点
	TokenTypeV2Bitable  = "bitable"  // 多维表格
	TokenTypeV2Docx     = "docx"     // 新版文档
	TokenTypeV2Folder   = "folder"   // 文件夹
	TokenTypeV2Mindnote = "mindnote" // 思维笔记
	TokenTypeV2Minutes  = "minutes"  // 妙记
	TokenTypeV2Slides   = "slides"   // 幻灯片
)
View Source
const (
	TokenTypeV2DeletePermissionMemberDoc      = "doc"      // 文档
	TokenTypeV2DeletePermissionMemberSheet    = "sheet"    // 电子表格
	TokenTypeV2DeletePermissionMemberFile     = "file"     // 云空间文件
	TokenTypeV2DeletePermissionMemberWiki     = "wiki"     // 知识库节点
	TokenTypeV2DeletePermissionMemberBitable  = "bitable"  // 多维表格
	TokenTypeV2DeletePermissionMemberDocx     = "docx"     // 文档
	TokenTypeV2DeletePermissionMemberFolder   = "folder"   // 文件夹
	TokenTypeV2DeletePermissionMemberMindnote = "mindnote" // 思维笔记
	TokenTypeV2DeletePermissionMemberMinutes  = "minutes"  // 妙记
	TokenTypeV2DeletePermissionMemberSlides   = "slides"   // 幻灯片
)
View Source
const (
	MemberTypeDeletePermissionMemberEmail            = "email"            // 邮箱地址
	MemberTypeDeletePermissionMemberOpenID           = "openid"           // 开放平台ID
	MemberTypeDeletePermissionMemberOpenChatID       = "openchat"         // 开放平台群ID
	MemberTypeDeletePermissionMemberOpenDepartmentID = "opendepartmentid" // 开放平台部门ID
	MemberTypeDeletePermissionMemberUserID           = "userid"           // 自定义用户ID
)
View Source
const (
	TokenTypeListPermissionMemberDoc      = "doc"      // 文档
	TokenTypeListPermissionMemberSheet    = "sheet"    // 电子表格
	TokenTypeListPermissionMemberFile     = "file"     // 云空间文件
	TokenTypeListPermissionMemberWiki     = "wiki"     // 知识库节点
	TokenTypeListPermissionMemberBitable  = "bitable"  // 多维表格
	TokenTypeListPermissionMemberDocx     = "docx"     // 新版文档
	TokenTypeListPermissionMemberMindnote = "mindnote" // 思维笔记
	TokenTypeListPermissionMemberMinutes  = "minutes"  // 妙记
	TokenTypeListPermissionMemberSlides   = "slides"   // 幻灯片
)
View Source
const (
	MemberTypeTransferOwnerPermissionMemberEmail  = "email"  // 飞书邮箱
	MemberTypeTransferOwnerPermissionMemberOpenId = "openid" // 开放平台ID
	MemberTypeTransferOwnerPermissionMemberUserId = "userid" // 用户自定义ID
)
View Source
const (
	TokenTypeTransferOwnerPermissionMemberDoc      = "doc"      // 文档
	TokenTypeTransferOwnerPermissionMemberSheet    = "sheet"    // 电子表格
	TokenTypeTransferOwnerPermissionMemberFile     = "file"     // 云空间文件
	TokenTypeTransferOwnerPermissionMemberWiki     = "wiki"     // 知识库节点
	TokenTypeTransferOwnerPermissionMemberBitable  = "bitable"  // 多维表格
	TokenTypeTransferOwnerPermissionMemberDocx     = "docx"     // 新版文档
	TokenTypeTransferOwnerPermissionMemberMindnote = "mindnote" // 思维笔记
	TokenTypeTransferOwnerPermissionMemberMinutes  = "minutes"  // 妙记
	TokenTypeTransferOwnerPermissionMemberSlides   = "slides"   // 幻灯片
)
View Source
const (
	MemberTypeUpdatePermissionMemberEmail            = "email"            // 飞书邮箱
	MemberTypeUpdatePermissionMemberOpenId           = "openid"           // 开放平台ID
	MemberTypeUpdatePermissionMemberOpenChat         = "openchat"         // 开放平台群组ID
	MemberTypeUpdatePermissionMemberOpenDepartmentId = "opendepartmentid" // 开放平台部门ID
	MemberTypeUpdatePermissionMemberUserId           = "userid"           // 用户自定义ID
)
View Source
const (
	PermUpdatePermissionMemberView       = "view"        // 可阅读角色
	PermUpdatePermissionMemberEdit       = "edit"        // 可编辑角色
	PermUpdatePermissionMemberFullAccess = "full_access" // 可管理角色
)
View Source
const (
	TokenTypeUpdatePermissionMemberDoc      = "doc"      // 文档
	TokenTypeUpdatePermissionMemberSheet    = "sheet"    // 电子表格
	TokenTypeUpdatePermissionMemberFile     = "file"     // 云空间文件
	TokenTypeUpdatePermissionMemberWiki     = "wiki"     // 知识库节点
	TokenTypeUpdatePermissionMemberBitable  = "bitable"  // 多维表格
	TokenTypeUpdatePermissionMemberDocx     = "docx"     // 文档
	TokenTypeUpdatePermissionMemberMindnote = "mindnote" // 思维笔记
	TokenTypeUpdatePermissionMemberMinutes  = "minutes"  // 妙记
	TokenTypeUpdatePermissionMemberSlides   = "slides"   // 幻灯片
)
View Source
const (
	TokenTypeGetPermissionPublicDoc      = "doc"      // 文档
	TokenTypeGetPermissionPublicSheet    = "sheet"    // 电子表格
	TokenTypeGetPermissionPublicFile     = "file"     // 云空间文件
	TokenTypeGetPermissionPublicWiki     = "wiki"     // 知识库节点
	TokenTypeGetPermissionPublicBitable  = "bitable"  // 多维表格
	TokenTypeGetPermissionPublicDocx     = "docx"     // 文档
	TokenTypeGetPermissionPublicMindnote = "mindnote" // 思维笔记
	TokenTypeGetPermissionPublicMinutes  = "minutes"  // 妙记
	TokenTypeGetPermissionPublicSlides   = "slides"   // 幻灯片
)
View Source
const (
	SecurityEntityAnyoneCanView  = "anyone_can_view"  // 拥有可阅读权限的用户
	SecurityEntityAnyoneCanEdit  = "anyone_can_edit"  // 拥有可编辑权限的用户
	SecurityEntityOnlyFullAccess = "only_full_access" // 拥有可管理权限(包括我)的用户
)
View Source
const (
	CommentEntityAnyoneCanView = "anyone_can_view" // 拥有可阅读权限的用户
	CommentEntityAnyoneCanEdit = "anyone_can_edit" // 拥有可编辑权限的用户
)
View Source
const (
	ShareEntityAnyone         = "anyone"           // 所有可阅读或编辑此文档的用户
	ShareEntitySameTenant     = "same_tenant"      // 组织内所有可阅读或编辑此文档的用户
	ShareEntityOnlyFullAccess = "only_full_access" // 拥有可管理权限(包括我)的用户
)
View Source
const (
	LinkShareEntityTenantReadable = "tenant_readable" // 组织内获得链接的人可阅读
	LinkShareEntityTenantEditable = "tenant_editable" // 组织内获得链接的人可编辑
	LinkShareEntityAnyoneReadable = "anyone_readable" // 互联网上获得链接的任何人可阅读(仅external_access=“true”时有效)
	LinkShareEntityAnyoneEditable = "anyone_editable" // 互联网上获得链接的任何人可编辑(仅external_access=“true”时有效)
	LinkShareEntityClosed         = "closed"          // 关闭链接分享
)
View Source
const (
	TokenTypePatchPermissionPublicDoc      = "doc"      // 文档
	TokenTypePatchPermissionPublicSheet    = "sheet"    // 电子表格
	TokenTypePatchPermissionPublicFile     = "file"     // 云空间文件
	TokenTypePatchPermissionPublicWiki     = "wiki"     // 知识库节点
	TokenTypePatchPermissionPublicBitable  = "bitable"  // 多维表格
	TokenTypePatchPermissionPublicDocx     = "docx"     // 文档
	TokenTypePatchPermissionPublicMindnote = "mindnote" // 思维笔记
	TokenTypePatchPermissionPublicMinutes  = "minutes"  // 妙记
	TokenTypePatchPermissionPublicSlides   = "slides"   // 幻灯片
)
View Source
const (
	TokenTypeCreatePermissionPublicPasswordDoc      = "doc"      // 文档
	TokenTypeCreatePermissionPublicPasswordSheet    = "sheet"    // 电子表格
	TokenTypeCreatePermissionPublicPasswordFile     = "file"     // 云空间文件
	TokenTypeCreatePermissionPublicPasswordWiki     = "wiki"     // 知识库节点
	TokenTypeCreatePermissionPublicPasswordBitable  = "bitable"  // 多维表格
	TokenTypeCreatePermissionPublicPasswordDocx     = "docx"     // 新版文档
	TokenTypeCreatePermissionPublicPasswordMindnote = "mindnote" // 思维笔记
	TokenTypeCreatePermissionPublicPasswordMinutes  = "minutes"  // 妙计
	TokenTypeCreatePermissionPublicPasswordSlides   = "slides"   // 幻灯片
)
View Source
const (
	TypeDeletePermissionPublicPasswordDoc      = "doc"      // 文档
	TypeDeletePermissionPublicPasswordSheet    = "sheet"    // 电子表格
	TypeDeletePermissionPublicPasswordFile     = "file"     // 云空间文件
	TypeDeletePermissionPublicPasswordWiki     = "wiki"     // 知识库节点
	TypeDeletePermissionPublicPasswordBitable  = "bitable"  // 多维表格
	TypeDeletePermissionPublicPasswordDocx     = "docx"     // 新版文档
	TypeDeletePermissionPublicPasswordMindnote = "mindnote" // 思维笔记
	TypeDeletePermissionPublicPasswordMinutes  = "minutes"  // 妙计
	TypeDeletePermissionPublicPasswordSlides   = "slides"   // 幻灯片
)
View Source
const (
	TypeUpdatePermissionPublicPasswordDoc      = "doc"      // 文档
	TypeUpdatePermissionPublicPasswordSheet    = "sheet"    // 电子表格
	TypeUpdatePermissionPublicPasswordFile     = "file"     // 云空间文件
	TypeUpdatePermissionPublicPasswordWiki     = "wiki"     // 知识库节点
	TypeUpdatePermissionPublicPasswordBitable  = "bitable"  // 多维表格
	TypeUpdatePermissionPublicPasswordDocx     = "docx"     // 新版文档
	TypeUpdatePermissionPublicPasswordMindnote = "mindnote" // 思维笔记
	TypeUpdatePermissionPublicPasswordMinutes  = "minutes"  // 妙计
	TypeUpdatePermissionPublicPasswordSlides   = "slides"   // 幻灯片
)
View Source
const (
	ParentTypeExplorer = "explorer" // 云空间
)
View Source
const (
	ParentTypeUploadPrepareFileExplorer = "explorer" // 云空间
)
View Source
const (
	SubscriptionTypeCommentUpdate = "comment_update" // 评论更新
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyMemberRequest

type ApplyMemberRequest struct {
	Perm   *string `json:"perm,omitempty"`   // 需要申请的权限,权限值:"view","edit"
	Remark *string `json:"remark,omitempty"` // 申请权限备注
}

type ApplyMemberRequestBuilder

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

func NewApplyMemberRequestBuilder

func NewApplyMemberRequestBuilder() *ApplyMemberRequestBuilder

func (*ApplyMemberRequestBuilder) Build

func (*ApplyMemberRequestBuilder) Perm

需要申请的权限,权限值:"view","edit"

示例值:view

func (*ApplyMemberRequestBuilder) Remark

申请权限备注

示例值:apply_remark

type BaseMember

type BaseMember struct {
	MemberType *string `json:"member_type,omitempty"` // 协作者 ID 类型,与协作者 ID 需要对应
	MemberId   *string `json:"member_id,omitempty"`   // 协作者 ID,与协作者 ID 类型需要对应
	Perm       *string `json:"perm,omitempty"`        // 协作者对应的权限角色
}

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

操作类型

示例值:field_edited

func (*BitableTableFieldActionBuilder) AfterValue

操作后的字段值

示例值:

func (*BitableTableFieldActionBuilder) BeforeValue

操作前的字段值

示例值:

func (*BitableTableFieldActionBuilder) Build

func (*BitableTableFieldActionBuilder) FieldId

字段 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 (*BitableTableFieldActionValueBuilder) Description

字段描述

示例值:description

func (*BitableTableFieldActionValueBuilder) Id

字段 ID

示例值:fldmj5qNii

func (*BitableTableFieldActionValueBuilder) Name

字段名字

示例值:field name

func (*BitableTableFieldActionValueBuilder) Property

字段属性

示例值:

func (*BitableTableFieldActionValueBuilder) Type

字段类型

示例值: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 (*BitableTableFieldActionValuePropertyAutoSerialBuilder) Options

自动编号规则列表

示例值:

func (*BitableTableFieldActionValuePropertyAutoSerialBuilder) Type

自动编号类型

示例值:custom

type BitableTableFieldActionValuePropertyAutoSerialOptions

type BitableTableFieldActionValuePropertyAutoSerialOptions struct {
	Type  *string `json:"type,omitempty"`  // 自动编号的可选规则项类型
	Value *string `json:"value,omitempty"` // 与类型相对应的取值
}

type BitableTableFieldActionValuePropertyAutoSerialOptionsBuilder

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

func (*BitableTableFieldActionValuePropertyAutoSerialOptionsBuilder) Build

func (*BitableTableFieldActionValuePropertyAutoSerialOptionsBuilder) Type

自动编号的可选规则项类型

示例值:created_time

func (*BitableTableFieldActionValuePropertyAutoSerialOptionsBuilder) Value

与类型相对应的取值

示例值:yyyyMMdd

type BitableTableFieldActionValuePropertyBuilder

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

func NewBitableTableFieldActionValuePropertyBuilder

func NewBitableTableFieldActionValuePropertyBuilder() *BitableTableFieldActionValuePropertyBuilder

func (*BitableTableFieldActionValuePropertyBuilder) AutoFill

日期字段中新纪录自动填写创建时间

示例值:true

func (*BitableTableFieldActionValuePropertyBuilder) AutoSerial

自动编号类型

示例值:

func (*BitableTableFieldActionValuePropertyBuilder) BackFieldId

双向关联字段中关联的数据表中对应的双向关联字段的id

示例值:fldmj5qNii

func (*BitableTableFieldActionValuePropertyBuilder) BackFieldName

双向关联字段中关联的数据表中对应的双向关联字段的名字

示例值:field name

func (*BitableTableFieldActionValuePropertyBuilder) Build

func (*BitableTableFieldActionValuePropertyBuilder) DateFormatter

日期、创建时间、最后更新时间字段的显示格式

示例值:yyyyMMdd

func (*BitableTableFieldActionValuePropertyBuilder) Formatter

数字、公式字段的显示格式

示例值:1,000

func (*BitableTableFieldActionValuePropertyBuilder) FormulaExpression

公式字段的公式表达式

示例值:bitable::$table[tblIniLz0Ic8oXyN].$field[fldqatAwxx]*6+333

func (*BitableTableFieldActionValuePropertyBuilder) InputType

地理位置输入限制

示例值:only_mobile

func (*BitableTableFieldActionValuePropertyBuilder) Multiple

人员字段中允许添加多个成员,单向关联、双向关联中允许添加多个记录

示例值:true

func (*BitableTableFieldActionValuePropertyBuilder) Options

单选、多选字段的选项信息

示例值:

func (*BitableTableFieldActionValuePropertyBuilder) TableId

单向关联、双向关联字段中关联的数据表的ID

示例值:tblIniLz0Ic8oXyN

func (*BitableTableFieldActionValuePropertyBuilder) TableName

单向关联、双向关联字段中关联的数据表的名字

示例值:table name

type BitableTableFieldActionValuePropertyOption

type BitableTableFieldActionValuePropertyOption struct {
	Name  *string `json:"name,omitempty"`  // 选项名
	Id    *string `json:"id,omitempty"`    // 选项ID
	Color *int    `json:"color,omitempty"` // 选项颜色
}

type BitableTableFieldActionValuePropertyOptionBuilder

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

func NewBitableTableFieldActionValuePropertyOptionBuilder

func NewBitableTableFieldActionValuePropertyOptionBuilder() *BitableTableFieldActionValuePropertyOptionBuilder

func (*BitableTableFieldActionValuePropertyOptionBuilder) Build

func (*BitableTableFieldActionValuePropertyOptionBuilder) Color

选项颜色

示例值:3

func (*BitableTableFieldActionValuePropertyOptionBuilder) Id

选项ID

示例值:optabcef

func (*BitableTableFieldActionValuePropertyOptionBuilder) Name

选项名

示例值: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 (*BitableTableRecordActionBuilder) AfterValue

操作后的记录值

示例值:

func (*BitableTableRecordActionBuilder) BeforeValue

操作前的记录值

示例值:

func (*BitableTableRecordActionBuilder) Build

func (*BitableTableRecordActionBuilder) RecordId

记录 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 (*BitableTableRecordActionFieldBuilder) FieldId

字段 ID

示例值:

func (*BitableTableRecordActionFieldBuilder) FieldIdentityValue

人员字段补充信息

示例值:

func (*BitableTableRecordActionFieldBuilder) FieldValue

字段值

示例值:

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 (*BitableTableRecordActionFieldIdentityBuilder) Users

用户信息列表

示例值:

type BitableTableRecordActionFieldIdentityUser

type BitableTableRecordActionFieldIdentityUser struct {
	UserId    *UserId `json:"user_id,omitempty"`    // 用户ID
	Name      *string `json:"name,omitempty"`       // 用户名称
	EnName    *string `json:"en_name,omitempty"`    // 用户英文名称
	AvatarUrl *string `json:"avatar_url,omitempty"` // 用户头像URL
}

type BitableTableRecordActionFieldIdentityUserBuilder

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

func NewBitableTableRecordActionFieldIdentityUserBuilder

func NewBitableTableRecordActionFieldIdentityUserBuilder() *BitableTableRecordActionFieldIdentityUserBuilder

func (*BitableTableRecordActionFieldIdentityUserBuilder) AvatarUrl

用户头像URL

示例值:

func (*BitableTableRecordActionFieldIdentityUserBuilder) Build

func (*BitableTableRecordActionFieldIdentityUserBuilder) EnName

用户英文名称

示例值:

func (*BitableTableRecordActionFieldIdentityUserBuilder) Name

用户名称

示例值:

func (*BitableTableRecordActionFieldIdentityUserBuilder) UserId

用户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 DepartmentId struct {
	DepartmentId     *string `json:"department_id,omitempty"`      //
	OpenDepartmentId *string `json:"open_department_id,omitempty"` //
}

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 DocsLink struct {
	Url *string `json:"url,omitempty"` // 回复 at云文档
}

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

扩展信息

示例值:[请参考-上传点类型及对应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 Favorite

type Favorite struct {
}

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

func (builder *FileBuilder) Name(name string) *FileBuilder

文件名

示例值:测试

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

func (builder *FileBuilder) Type(type_ string) *FileBuilder

文件类型

示例值:doc

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

回复的其他内容,图片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 FileSearch struct {
	DocsToken *string `json:"docs_token,omitempty"` // 文档token
	DocsType  *string `json:"docs_type,omitempty"`  // 文档类型
	Title     *string `json:"title,omitempty"`      // 标题
	OwnerId   *string `json:"owner_id,omitempty"`   // 文件所有者
}

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

文件历史访问次数,同一用户(user_id)多次访问按多次计算。(注:同一用户相邻两次访问间隔在半小时内视为一次访问)

示例值:15

func (*FileStatisticsBuilder) Timestamp

func (builder *FileStatisticsBuilder) Timestamp(timestamp int) *FileStatisticsBuilder

时间戳(秒)

示例值:1627367349

func (*FileStatisticsBuilder) Uv

文件历史访问人数,同一用户(user_id)多次访问按一次计算。

示例值:10

type FileSubscription

type FileSubscription struct {
	SubscriptionId   *string `json:"subscription_id,omitempty"`   // 订阅关系ID
	SubscriptionType *string `json:"subscription_type,omitempty"` // 订阅类型
	IsSubcribe       *bool   `json:"is_subcribe,omitempty"`       // 是否订阅
	FileType         *string `json:"file_type,omitempty"`         // 文档类型
}

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 FileUploadInfo 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"`        // 文件大小
}

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 FileViewRecord struct {
	ViewerId     *string `json:"viewer_id,omitempty"`      // 访问者 ID
	Name         *string `json:"name,omitempty"`           // 访问者名称
	AvatarUrl    *string `json:"avatar_url,omitempty"`     // 访问者头像 URL
	LastViewTime *string `json:"last_view_time,omitempty"` // 最近访问时间,秒级时间戳
}

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

示例值:https://foo.icon.com/xxxx

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 (*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 ImportTaskMountPoint struct {
	MountType *int    `json:"mount_type,omitempty"` // 挂载类型
	MountKey  *string `json:"mount_key,omitempty"`  // 挂载位置,对于mount_type=1, 云空间目录token,空表示根目录
}

type ImportTaskMountPointBuilder

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

func NewImportTaskMountPointBuilder

func NewImportTaskMountPointBuilder() *ImportTaskMountPointBuilder

func (*ImportTaskMountPointBuilder) Build

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 Media

type Media struct {
	FileToken *string `json:"file_token,omitempty"` // 文件标识符
	FileName  *string `json:"file_name,omitempty"`  // 文件名
	Size      *int    `json:"size,omitempty"`       // 文件大小
	MimeType  *string `json:"mime_type,omitempty"`  // 文件MIME类型
}

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类型

示例值:

func (*MediaBuilder) Size

func (builder *MediaBuilder) Size(size int) *MediaBuilder

文件大小

示例值:

type MediaUploadInfo

type MediaUploadInfo struct {
	FileName   *string `json:"file_name,omitempty"`   // 文件名
	ParentType *string `json:"parent_type,omitempty"` // 上传点类型
	ParentNode *string `json:"parent_node,omitempty"` // 上传点的标识符
	Size       *int    `json:"size,omitempty"`        // 文件大小
	Extra      *string `json:"extra,omitempty"`       // 扩展信息(可选)
}

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

协作者的头像

示例值:https://foo.icon.com/xxxx

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 MetaFailed struct {
	Token *string `json:"token,omitempty"` // 获取元数据失败的文档token
	Code  *int    `json:"code,omitempty"`  // 获取元数据失败的错误码
}

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 Owner

type Owner struct {
	MemberType *string `json:"member_type,omitempty"` // 文档拥有者的ID类型
	MemberId   *string `json:"member_id,omitempty"`   // 文档拥有者的ID,与文档拥有者的ID类型需要对应
}

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"`    // 可评论设置
	ShareEntity     *string `json:"share_entity,omitempty"`      // 谁可以添加和管理协作者
	LinkShareEntity *string `json:"link_share_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"`    // 谁可以评论
	ShareEntity     *string `json:"share_entity,omitempty"`      // 谁可以添加和管理协作者
	LinkShareEntity *string `json:"link_share_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 (*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 Person

type Person struct {
	UserId *string `json:"user_id,omitempty"` // 回复 at联系人
}

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 Property

type Property struct {
	Key   *string `json:"key,omitempty"`   // 自定义属性键对象
	Value *string `json:"value,omitempty"` // 自定义属性值对象
}

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 ReferEntity struct {
	ReferToken *string `json:"refer_token,omitempty"` // 快捷方式指向的文档token
	ReferType  *string `json:"refer_type,omitempty"`  // 快捷方式指向的文档类型
}

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 ReplyElement struct {
	Type     *string   `json:"type,omitempty"`      // 回复的内容元素
	TextRun  *TextRun  `json:"text_run,omitempty"`  // 文本内容
	DocsLink *DocsLink `json:"docs_link,omitempty"` // 文本内容
	Person   *Person   `json:"person,omitempty"`    // 文本内容
}

type ReplyElementBuilder

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

func NewReplyElementBuilder

func NewReplyElementBuilder() *ReplyElementBuilder

func (*ReplyElementBuilder) Build

func (builder *ReplyElementBuilder) Build() *ReplyElement
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 ShortcutInfo struct {
	TargetType  *string `json:"target_type,omitempty"`  // 快捷方式指向的原文件类型
	TargetToken *string `json:"target_token,omitempty"` // 快捷方式指向的原文件token
}

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 TextRun

type TextRun struct {
	Text *string `json:"text,omitempty"` // 回复 普通文本
}

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 TmpDownloadUrl struct {
	FileToken      *string `json:"file_token,omitempty"`       // 文件标识符
	TmpDownloadUrl *string `json:"tmp_download_url,omitempty"` // 文件临时下载链接
}

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

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 (*UploadAllMediaPathReqBodyBuilder) Checksum

文件adler32校验和(可选)。

示例值:12345678

func (*UploadAllMediaPathReqBodyBuilder) Extra

扩展信息(可选)。

示例值:{"test":"test"}

func (*UploadAllMediaPathReqBodyBuilder) FileName

文件名。

示例值:demo.jpeg

func (*UploadAllMediaPathReqBodyBuilder) FilePath

文件二进制内容。

示例值:file binary

func (*UploadAllMediaPathReqBodyBuilder) ParentNode

上传点的token。

示例值:doccnFivLCfJfblZjGZtxgabcef

func (*UploadAllMediaPathReqBodyBuilder) ParentType

上传点类型。

示例值:doc_image

func (*UploadAllMediaPathReqBodyBuilder) Size

文件大小(以字节为单位)。

示例值: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 (*UploadAllMediaReqBodyBuilder) Checksum

文件adler32校验和(可选)。

示例值:12345678

func (*UploadAllMediaReqBodyBuilder) Extra

扩展信息(可选)。

示例值:{"test":"test"}

func (*UploadAllMediaReqBodyBuilder) File

文件二进制内容。

示例值:file binary

func (*UploadAllMediaReqBodyBuilder) FileName

文件名。

示例值: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

文件大小(以字节为单位)。

示例值:1024

type UploadAllMediaReqBuilder

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

func NewUploadAllMediaReqBuilder

func NewUploadAllMediaReqBuilder() *UploadAllMediaReqBuilder

func (*UploadAllMediaReqBuilder) Body

将文件、图片、视频等素材文件上传到指定云文档中。素材文件在云空间中不会显示,只会显示在对应云文档中。

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 UploadInfo struct {
	FileName   *string `json:"file_name,omitempty"`   // 文件名
	ParentType *string `json:"parent_type,omitempty"` // 父节点类型(父文件系统类型)
	ParentNode *string `json:"parent_node,omitempty"` // 父节点
	Size       *int    `json:"size,omitempty"`        // 文件大小
}

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 UserId

type UserId struct {
	UserId  *string `json:"user_id,omitempty"`  //
	OpenId  *string `json:"open_id,omitempty"`  //
	UnionId *string `json:"union_id,omitempty"` //
}

type UserIdBuilder

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

func NewUserIdBuilder

func NewUserIdBuilder() *UserIdBuilder

func (*UserIdBuilder) Build

func (builder *UserIdBuilder) Build() *UserId

func (*UserIdBuilder) OpenId

func (builder *UserIdBuilder) OpenId(openId string) *UserIdBuilder

示例值:

func (*UserIdBuilder) UnionId

func (builder *UserIdBuilder) UnionId(unionId string) *UserIdBuilder

示例值:

func (*UserIdBuilder) UserId

func (builder *UserIdBuilder) UserId(userId string) *UserIdBuilder

示例值:

type 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

Jump to

Keyboard shortcuts

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