larkdrive

package
v3.4.51 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: MIT Imports: 10 Imported by: 0

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"    // 文件
	FileTypeFolder  = "folder"  // 文件夹
)
View Source
const (
	FileTypeGetSubscribeFileDoc     = "doc"     // 文档
	FileTypeGetSubscribeFileDocx    = "docx"    // docx文档
	FileTypeGetSubscribeFileSheet   = "sheet"   // 表格
	FileTypeGetSubscribeFileBitable = "bitable" // 多维表格
	FileTypeGetSubscribeFileFile    = "file"    // 文件
	FileTypeGetSubscribeFileFolder  = "folder"  // 文件夹
)
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" // 多维表格
	FileTypeSubscribeFileFolder  = "folder"  // 文件夹
)
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 (
	ObjTypeDocx  = "docx"  // 新版文档
	ObjTypeSheet = "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"        // 云文档导入文件
	ParentTypeUploadAllMediaCalendar            = "calendar"               // 日历文件
	ParentTypeUploadAllMediaBaseGlobal          = "base_global"            // base文件
	ParentTypeUploadAllMediaLarkAiMediaAnalysis = "lark_ai_media_analysis" // ai素材
)
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"        // 云文档导入文件
	ParentTypeUploadPrepareMediaCalendar            = "calendar"               // 日历文件
	ParentTypeUploadPrepareMediaBaseGlobal          = "base_global"            // base文件
	ParentTypeUploadPrepareMediaLarkAiMediaAnalysis = "lark_ai_media_analysis" // ai素材
)
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 (
	TokenTypeV2Doc      = "doc"      // 文档
	TokenTypeV2Sheet    = "sheet"    // 电子表格
	TokenTypeV2File     = "file"     // 云空间文件
	TokenTypeV2Wiki     = "wiki"     // 知识库节点
	TokenTypeV2Bitable  = "bitable"  // 多维表格
	TokenTypeV2Docx     = "docx"     // 新版文档
	TokenTypeV2Folder   = "folder"   // 文件夹
	TokenTypeV2Mindnote = "mindnote" // 思维笔记
	TokenTypeV2Minutes  = "minutes"  // 妙记
	TokenTypeV2Slides   = "slides"   // 幻灯片
)
View Source
const (
	MemberTypeEmail            = "email"            // 飞书邮箱
	MemberTypeOpenId           = "openid"           // 开放平台OpenID
	MemberTypeUnionId          = "unionid"          // 开放平台UnionID
	MemberTypeOpenChat         = "openchat"         // 开放平台群组ID
	MemberTypeOpenDepartmentId = "opendepartmentid" // 开放平台部门ID
	MemberTypeUserId           = "userid"           // 用户自定义ID
	MemberTypeGroupId          = "groupid"          // 自定义用户组ID
	MemberTypeWikiSpaceId      = "wikispaceid"      // 知识空间的唯一标识
)
View Source
const (
	PermCreatePermissionMemberView       = "view"        // 可阅读角色
	PermCreatePermissionMemberEdit       = "edit"        // 可编辑角色
	PermCreatePermissionMemberFullAccess = "full_access" // 可管理角色
)
View Source
const (
	PermTypeContainer  = "container"   // 当前页面及子页面
	PermTypeSinglePage = "single_page" // 仅当前页面,当且仅当在知识库文档中该参数有效
)
View Source
const (
	TypeCreatePermissionMemberUser            = "user"              // 用户
	TypeCreatePermissionMemberChat            = "chat"              // 群组
	TypeCreatePermissionMemberDepartment      = "department"        // 组织架构
	TypeCreatePermissionMemberGroup           = "group"             // 用户组
	TypeCreatePermissionMemberWikiSpaceMember = "wiki_space_member" // 知识库成员
	TypeCreatePermissionMemberWikiSpaceViewer = "wiki_space_viewer" // 知识库可阅读成员
	TypeCreatePermissionMemberWikiSpaceEditor = "wiki_space_editor" // 知识库可编辑成员
)
View Source
const (
	TokenTypeV2CreatePermissionMemberDoc      = "doc"      // 文档
	TokenTypeV2CreatePermissionMemberSheet    = "sheet"    // 电子表格
	TokenTypeV2CreatePermissionMemberFile     = "file"     // 云空间文件
	TokenTypeV2CreatePermissionMemberWiki     = "wiki"     // 知识库节点
	TokenTypeV2CreatePermissionMemberBitable  = "bitable"  // 多维表格
	TokenTypeV2CreatePermissionMemberDocx     = "docx"     // 新版文档
	TokenTypeV2CreatePermissionMemberFolder   = "folder"   // 文件夹
	TokenTypeV2CreatePermissionMemberMindnote = "mindnote" // 思维笔记
	TokenTypeV2CreatePermissionMemberMinutes  = "minutes"  // 妙记
	TokenTypeV2CreatePermissionMemberSlides   = "slides"   // 幻灯片
)
View Source
const (
	TypeDeletePermissionMemberUser            = "user"              // 用户
	TypeDeletePermissionMemberChat            = "chat"              // 群组
	TypeDeletePermissionMemberDepartment      = "department"        // 组织架构
	TypeDeletePermissionMemberGroup           = "group"             // 用户组
	TypeDeletePermissionMemberWikiSpaceMember = "wiki_space_member" // 知识库成员
	TypeDeletePermissionMemberWikiSpaceViewer = "wiki_space_viewer" // 知识库可阅读成员
	TypeDeletePermissionMemberWikiSpaceEditor = "wiki_space_editor" // 知识库可编辑成员
)
View Source
const (
	PermTypeDeletePermissionMemberContainer  = "container"   // 当前页面及子页面
	PermTypeDeletePermissionMemberSinglePage = "single_page" // 仅当前页面,当且仅当在知识库文档中该参数有效
)
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
	MemberTypeDeletePermissionMemberUnionID          = "unionid"          // 开放平台UnionID
	MemberTypeDeletePermissionMemberGroupID          = "groupid"          // 自定义用户组ID
	MemberTypeDeletePermissionMemberWikiSpaceID      = "wikispaceid"      // 知识空间的唯一标识
)
View Source
const (
	TokenTypeListPermissionMemberDoc      = "doc"      // 文档
	TokenTypeListPermissionMemberSheet    = "sheet"    // 电子表格
	TokenTypeListPermissionMemberFile     = "file"     // 云空间文件
	TokenTypeListPermissionMemberWiki     = "wiki"     // 知识库节点
	TokenTypeListPermissionMemberBitable  = "bitable"  // 多维表格
	TokenTypeListPermissionMemberDocx     = "docx"     // 新版文档
	TokenTypeListPermissionMemberMindnote = "mindnote" // 思维笔记
	TokenTypeListPermissionMemberMinutes  = "minutes"  // 妙记
	TokenTypeListPermissionMemberSlides   = "slides"   // 幻灯片
)
View Source
const (
	PermTypeListPermissionMemberContainer  = "container"   // 当前页面及子页面
	PermTypeListPermissionMemberSinglePage = "single_page" // 仅当前页面,当且仅当在知识库文档中该参数有效
)
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"           // 开放平台OpenID
	MemberTypeUpdatePermissionMemberUnionId          = "unionid"          // 开放平台UnionID
	MemberTypeUpdatePermissionMemberOpenChat         = "openchat"         // 开放平台群组ID
	MemberTypeUpdatePermissionMemberOpenDepartmentId = "opendepartmentid" // 开放平台部门ID
	MemberTypeUpdatePermissionMemberUserId           = "userid"           // 用户自定义ID
	MemberTypeUpdatePermissionMemberGroupId          = "groupid"          // 自定义用户组ID
	MemberTypeUpdatePermissionMemberWikiSpaceId      = "wikispaceid"      // 知识空间的唯一标识
)
View Source
const (
	PermUpdatePermissionMemberView       = "view"        // 可阅读角色
	PermUpdatePermissionMemberEdit       = "edit"        // 可编辑角色
	PermUpdatePermissionMemberFullAccess = "full_access" // 可管理角色
)
View Source
const (
	PermTypeUpdatePermissionMemberContainer  = "container"   // 当前页面及子页面
	PermTypeUpdatePermissionMemberSinglePage = "single_page" // 仅当前页面,当且仅当在知识库文档中该参数有效
)
View Source
const (
	TypeUpdatePermissionMemberUser            = "user"              // 用户
	TypeUpdatePermissionMemberChat            = "chat"              // 群组
	TypeUpdatePermissionMemberDepartment      = "department"        // 组织架构
	TypeUpdatePermissionMemberGroup           = "group"             // 用户组
	TypeUpdatePermissionMemberWikiSpaceMember = "wiki_space_member" // 知识库成员
	TypeUpdatePermissionMemberWikiSpaceViewer = "wiki_space_viewer" // 知识库可阅读成员
	TypeUpdatePermissionMemberWikiSpaceEditor = "wiki_space_editor" // 知识库可编辑成员
)
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 AuthPermissionMemberReq

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

type AuthPermissionMemberReqBuilder

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

func NewAuthPermissionMemberReqBuilder

func NewAuthPermissionMemberReqBuilder() *AuthPermissionMemberReqBuilder

func (*AuthPermissionMemberReqBuilder) Action

需要判断的权限

示例值:view

func (*AuthPermissionMemberReqBuilder) Build

func (*AuthPermissionMemberReqBuilder) Token

文件的 token

示例值:doccnBKgoMyY5OMbUG6FioTXuBe

func (*AuthPermissionMemberReqBuilder) Type

文件类型,需要与文件的 token 相匹配

示例值:doc

type AuthPermissionMemberResp

type AuthPermissionMemberResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *AuthPermissionMemberRespData `json:"data"` // 业务数据
}

func (*AuthPermissionMemberResp) Success

func (resp *AuthPermissionMemberResp) Success() bool

type AuthPermissionMemberRespData

type AuthPermissionMemberRespData struct {
	AuthResult *bool `json:"auth_result,omitempty"` // 是否有权限
}

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"` // 协作者对应的权限角色

	PermType *string `json:"perm_type,omitempty"` // 协作者的权限角色类型

	Type *string `json:"type,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

func (*BaseMemberBuilder) PermType

func (builder *BaseMemberBuilder) PermType(permType string) *BaseMemberBuilder

协作者的权限角色类型

示例值:container

func (*BaseMemberBuilder) Type

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

协作者类型

示例值:user

type BatchCreatePermissionMemberPathReqBodyBuilder

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

func NewBatchCreatePermissionMemberPathReqBodyBuilder

func NewBatchCreatePermissionMemberPathReqBodyBuilder() *BatchCreatePermissionMemberPathReqBodyBuilder

func (*BatchCreatePermissionMemberPathReqBodyBuilder) Build

func (*BatchCreatePermissionMemberPathReqBodyBuilder) Members

协作者列表

示例值:

type BatchCreatePermissionMemberReq

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

type BatchCreatePermissionMemberReqBody

type BatchCreatePermissionMemberReqBody struct {
	Members []*BaseMember `json:"members,omitempty"` // 协作者列表
}

type BatchCreatePermissionMemberReqBodyBuilder

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

func NewBatchCreatePermissionMemberReqBodyBuilder

func NewBatchCreatePermissionMemberReqBodyBuilder() *BatchCreatePermissionMemberReqBodyBuilder

func (*BatchCreatePermissionMemberReqBodyBuilder) Build

func (*BatchCreatePermissionMemberReqBodyBuilder) Members

协作者列表

示例值:

type BatchCreatePermissionMemberReqBuilder

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

func NewBatchCreatePermissionMemberReqBuilder

func NewBatchCreatePermissionMemberReqBuilder() *BatchCreatePermissionMemberReqBuilder

func (*BatchCreatePermissionMemberReqBuilder) Body

func (*BatchCreatePermissionMemberReqBuilder) Build

func (*BatchCreatePermissionMemberReqBuilder) NeedNotification

func (builder *BatchCreatePermissionMemberReqBuilder) NeedNotification(needNotification bool) *BatchCreatePermissionMemberReqBuilder

添加权限后是否通知对方

示例值:false

func (*BatchCreatePermissionMemberReqBuilder) Token

文件的 token

示例值:doccnBKgoMyY5OMbUG6FioTXuBe

func (*BatchCreatePermissionMemberReqBuilder) Type

文件的类型

示例值:doc

type BatchCreatePermissionMemberResp

type BatchCreatePermissionMemberResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *BatchCreatePermissionMemberRespData `json:"data"` // 业务数据
}

func (*BatchCreatePermissionMemberResp) Success

func (resp *BatchCreatePermissionMemberResp) Success() bool

type BatchCreatePermissionMemberRespData

type BatchCreatePermissionMemberRespData struct {
	Members []*BaseMember `json:"members,omitempty"` // 协作者列表
}

type BatchGetTmpDownloadUrlMediaReq

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

type BatchGetTmpDownloadUrlMediaReqBuilder

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

func NewBatchGetTmpDownloadUrlMediaReqBuilder

func NewBatchGetTmpDownloadUrlMediaReqBuilder() *BatchGetTmpDownloadUrlMediaReqBuilder

func (*BatchGetTmpDownloadUrlMediaReqBuilder) Build

func (*BatchGetTmpDownloadUrlMediaReqBuilder) Extra

拓展信息(可选)

示例值:[请参考-上传点类型及对应Extra说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/media/introduction)

func (*BatchGetTmpDownloadUrlMediaReqBuilder) FileTokens

文件标识符列表

示例值:boxcnrHpsg1QDqXAAAyachabcef

type BatchGetTmpDownloadUrlMediaResp

type BatchGetTmpDownloadUrlMediaResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *BatchGetTmpDownloadUrlMediaRespData `json:"data"` // 业务数据
}

func (*BatchGetTmpDownloadUrlMediaResp) Success

func (resp *BatchGetTmpDownloadUrlMediaResp) Success() bool

type BatchGetTmpDownloadUrlMediaRespData

type BatchGetTmpDownloadUrlMediaRespData struct {
	TmpDownloadUrls []*TmpDownloadUrl `json:"tmp_download_urls,omitempty"` // 临时下载列表
}

type BatchQueryFileCommentPathReqBodyBuilder

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

func NewBatchQueryFileCommentPathReqBodyBuilder

func NewBatchQueryFileCommentPathReqBodyBuilder() *BatchQueryFileCommentPathReqBodyBuilder

func (*BatchQueryFileCommentPathReqBodyBuilder) Build

func (*BatchQueryFileCommentPathReqBodyBuilder) CommentIds

需要获取数据的评论id

示例值:1654857036541812356

type BatchQueryFileCommentReq

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

type BatchQueryFileCommentReqBody

type BatchQueryFileCommentReqBody struct {
	CommentIds []string `json:"comment_ids,omitempty"` // 需要获取数据的评论id
}

type BatchQueryFileCommentReqBodyBuilder

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

func NewBatchQueryFileCommentReqBodyBuilder

func NewBatchQueryFileCommentReqBodyBuilder() *BatchQueryFileCommentReqBodyBuilder

func (*BatchQueryFileCommentReqBodyBuilder) Build

func (*BatchQueryFileCommentReqBodyBuilder) CommentIds

需要获取数据的评论id

示例值:1654857036541812356

type BatchQueryFileCommentReqBuilder

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

func NewBatchQueryFileCommentReqBuilder

func NewBatchQueryFileCommentReqBuilder() *BatchQueryFileCommentReqBuilder

func (*BatchQueryFileCommentReqBuilder) Body

该接口用于根据评论 ID 列表批量获取评论。

func (*BatchQueryFileCommentReqBuilder) Build

func (*BatchQueryFileCommentReqBuilder) FileToken

文档Token

示例值:doxbcdl03Vsxhm7Qmnj110abcef

func (*BatchQueryFileCommentReqBuilder) FileType

文档类型

示例值:doc;docx;sheet;file

func (*BatchQueryFileCommentReqBuilder) UserIdType

此次调用中使用的用户ID的类型

示例值:

type BatchQueryFileCommentResp

type BatchQueryFileCommentResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *BatchQueryFileCommentRespData `json:"data"` // 业务数据
}

func (*BatchQueryFileCommentResp) Success

func (resp *BatchQueryFileCommentResp) Success() bool

type BatchQueryFileCommentRespData

type BatchQueryFileCommentRespData struct {
	Items []*FileComment `json:"items,omitempty"` // 评论的相关信息、回复的信息、回复分页的信息
}

type BatchQueryMetaReq

type BatchQueryMetaReq struct {
	MetaRequest *MetaRequest `body:""`
	// contains filtered or unexported fields
}

type BatchQueryMetaReqBuilder

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

func NewBatchQueryMetaReqBuilder

func NewBatchQueryMetaReqBuilder() *BatchQueryMetaReqBuilder

func (*BatchQueryMetaReqBuilder) Build

func (builder *BatchQueryMetaReqBuilder) Build() *BatchQueryMetaReq

func (*BatchQueryMetaReqBuilder) MetaRequest

func (builder *BatchQueryMetaReqBuilder) MetaRequest(metaRequest *MetaRequest) *BatchQueryMetaReqBuilder

该接口用于根据 token 获取各类文件的元数据

func (*BatchQueryMetaReqBuilder) UserIdType

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

此次调用中使用的用户ID的类型

示例值:

type BatchQueryMetaResp

type BatchQueryMetaResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *BatchQueryMetaRespData `json:"data"` // 业务数据
}

func (*BatchQueryMetaResp) Success

func (resp *BatchQueryMetaResp) Success() bool

type BatchQueryMetaRespData

type BatchQueryMetaRespData struct {
	Metas []*Meta `json:"metas,omitempty"` // 文档元数据列表

	FailedList []*MetaFailed `json:"failed_list,omitempty"` // 无法获取元数据的文档列表
}

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 CopyFilePathReqBodyBuilder

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

func NewCopyFilePathReqBodyBuilder

func NewCopyFilePathReqBodyBuilder() *CopyFilePathReqBodyBuilder

func (*CopyFilePathReqBodyBuilder) Build

func (builder *CopyFilePathReqBodyBuilder) Build() (*CopyFileReqBody, error)

func (*CopyFilePathReqBodyBuilder) Extra

用户自定义请求附加参数,用于实现特殊的复制语义

示例值:

func (*CopyFilePathReqBodyBuilder) FolderToken

func (builder *CopyFilePathReqBodyBuilder) FolderToken(folderToken string) *CopyFilePathReqBodyBuilder

文件被复制到的目标文件夹token

示例值:fldbcO1UuPz8VwnpPx5a92abcef

func (*CopyFilePathReqBodyBuilder) Name

被复制文件的新名称

示例值:test.txt

func (*CopyFilePathReqBodyBuilder) Type

被复制文件的类型,如果该值为空或者与文件实际类型不匹配,接口会返回失败。

示例值:doc

type CopyFileReq

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

type CopyFileReqBody

type CopyFileReqBody struct {
	Name *string `json:"name,omitempty"` // 被复制文件的新名称

	Type *string `json:"type,omitempty"` // 被复制文件的类型,如果该值为空或者与文件实际类型不匹配,接口会返回失败。

	FolderToken *string `json:"folder_token,omitempty"` // 文件被复制到的目标文件夹token

	Extra []*Property `json:"extra,omitempty"` // 用户自定义请求附加参数,用于实现特殊的复制语义
}

type CopyFileReqBodyBuilder

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

func NewCopyFileReqBodyBuilder

func NewCopyFileReqBodyBuilder() *CopyFileReqBodyBuilder

func (*CopyFileReqBodyBuilder) Build

func (builder *CopyFileReqBodyBuilder) Build() *CopyFileReqBody

func (*CopyFileReqBodyBuilder) Extra

func (builder *CopyFileReqBodyBuilder) Extra(extra []*Property) *CopyFileReqBodyBuilder

用户自定义请求附加参数,用于实现特殊的复制语义

示例值:

func (*CopyFileReqBodyBuilder) FolderToken

func (builder *CopyFileReqBodyBuilder) FolderToken(folderToken string) *CopyFileReqBodyBuilder

文件被复制到的目标文件夹token

示例值:fldbcO1UuPz8VwnpPx5a92abcef

func (*CopyFileReqBodyBuilder) Name

被复制文件的新名称

示例值:test.txt

func (*CopyFileReqBodyBuilder) Type

被复制文件的类型,如果该值为空或者与文件实际类型不匹配,接口会返回失败。

示例值:doc

type CopyFileReqBuilder

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

func NewCopyFileReqBuilder

func NewCopyFileReqBuilder() *CopyFileReqBuilder

func (*CopyFileReqBuilder) Body

将文件复制到用户云空间的其他文件夹中。不支持复制文件夹。;;如果目标文件夹是我的空间,则复制的文件会在「**我的空间**」的「**归我所有**」列表里。

func (*CopyFileReqBuilder) Build

func (builder *CopyFileReqBuilder) Build() *CopyFileReq

func (*CopyFileReqBuilder) FileToken

func (builder *CopyFileReqBuilder) FileToken(fileToken string) *CopyFileReqBuilder

被复制的文件token

示例值:doccngpahSdXrFPIBD4XdIabcef

func (*CopyFileReqBuilder) UserIdType

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

此次调用中使用的用户ID的类型

示例值:

type CopyFileResp

type CopyFileResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *CopyFileRespData `json:"data"` // 业务数据
}

func (*CopyFileResp) Success

func (resp *CopyFileResp) Success() bool

type CopyFileRespData

type CopyFileRespData struct {
	File *File `json:"file,omitempty"` // 复制后的文件资源
}

type CreateExportTaskReq

type CreateExportTaskReq struct {
	ExportTask *ExportTask `body:""`
	// contains filtered or unexported fields
}

type CreateExportTaskReqBuilder

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

func NewCreateExportTaskReqBuilder

func NewCreateExportTaskReqBuilder() *CreateExportTaskReqBuilder

func (*CreateExportTaskReqBuilder) Build

func (*CreateExportTaskReqBuilder) ExportTask

func (builder *CreateExportTaskReqBuilder) ExportTask(exportTask *ExportTask) *CreateExportTaskReqBuilder

创建导出任务,将云文件导出为指定格式的本地文件。该接口为异步接口,需要通过轮询 [查询导出任务结果](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/export_task/get) 接口获取任务结果。

type CreateExportTaskResp

type CreateExportTaskResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *CreateExportTaskRespData `json:"data"` // 业务数据
}

func (*CreateExportTaskResp) Success

func (resp *CreateExportTaskResp) Success() bool

type CreateExportTaskRespData

type CreateExportTaskRespData struct {
	Ticket *string `json:"ticket,omitempty"` // 导出任务ID
}

type CreateFileCommentReq

type CreateFileCommentReq struct {
	FileComment *FileComment `body:""`
	// contains filtered or unexported fields
}

type CreateFileCommentReqBuilder

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

func NewCreateFileCommentReqBuilder

func NewCreateFileCommentReqBuilder() *CreateFileCommentReqBuilder

func (*CreateFileCommentReqBuilder) Build

func (*CreateFileCommentReqBuilder) FileComment

func (builder *CreateFileCommentReqBuilder) FileComment(fileComment *FileComment) *CreateFileCommentReqBuilder

往云文档添加一条全局评论。

func (*CreateFileCommentReqBuilder) FileToken

func (builder *CreateFileCommentReqBuilder) FileToken(fileToken string) *CreateFileCommentReqBuilder

文档token

示例值:doccnGp4UK1UskrOEJwBXd3****

func (*CreateFileCommentReqBuilder) FileType

func (builder *CreateFileCommentReqBuilder) FileType(fileType string) *CreateFileCommentReqBuilder

文档类型

示例值:doc

func (*CreateFileCommentReqBuilder) UserIdType

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

此次调用中使用的用户 ID 的类型

示例值:

type CreateFileCommentResp

type CreateFileCommentResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *CreateFileCommentRespData `json:"data"` // 业务数据
}

func (*CreateFileCommentResp) Success

func (resp *CreateFileCommentResp) Success() bool

type CreateFileCommentRespData

type CreateFileCommentRespData 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 CreateFileSubscriptionReq

type CreateFileSubscriptionReq struct {
	FileSubscription *FileSubscription `body:""`
	// contains filtered or unexported fields
}

type CreateFileSubscriptionReqBuilder

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

func NewCreateFileSubscriptionReqBuilder

func NewCreateFileSubscriptionReqBuilder() *CreateFileSubscriptionReqBuilder

func (*CreateFileSubscriptionReqBuilder) Build

func (*CreateFileSubscriptionReqBuilder) FileSubscription

func (builder *CreateFileSubscriptionReqBuilder) FileSubscription(fileSubscription *FileSubscription) *CreateFileSubscriptionReqBuilder

订阅文档中的变更事件,当前支持文档评论订阅,订阅后文档评论更新会有“云文档助手”推送给订阅的用户

func (*CreateFileSubscriptionReqBuilder) FileToken

文档token

示例值:doxcnxxxxxxxxxxxxxxxxxxxxxx

type CreateFileSubscriptionResp

type CreateFileSubscriptionResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *CreateFileSubscriptionRespData `json:"data"` // 业务数据
}

func (*CreateFileSubscriptionResp) Success

func (resp *CreateFileSubscriptionResp) Success() bool

type CreateFileSubscriptionRespData

type CreateFileSubscriptionRespData 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 CreateFileVersionReq

type CreateFileVersionReq struct {
	Version *Version `body:""`
	// contains filtered or unexported fields
}

type CreateFileVersionReqBuilder

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

func NewCreateFileVersionReqBuilder

func NewCreateFileVersionReqBuilder() *CreateFileVersionReqBuilder

func (*CreateFileVersionReqBuilder) Build

func (*CreateFileVersionReqBuilder) FileToken

func (builder *CreateFileVersionReqBuilder) FileToken(fileToken string) *CreateFileVersionReqBuilder

源文档token

示例值:doxbcyvqZlSc9WlHvQMlSJwUrsb

func (*CreateFileVersionReqBuilder) UserIdType

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

此次调用中使用的用户ID的类型

示例值:

func (*CreateFileVersionReqBuilder) Version

创建文档版本。

type CreateFileVersionResp

type CreateFileVersionResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *CreateFileVersionRespData `json:"data"` // 业务数据
}

func (*CreateFileVersionResp) Success

func (resp *CreateFileVersionResp) Success() bool

type CreateFileVersionRespData

type CreateFileVersionRespData struct {
	Name *string `json:"name,omitempty"` // 版本文档标题,最大长度 1024 个Unicode 码点。通常情况下,一个英文或中文字符对应一个码点,但是某些特殊符号可能会对应多个码点。例如,家庭组合「👨‍👩‍👧」这个表情符号对应5个码点。

	Version *string `json:"version,omitempty"` // 版本文档版本号

	ParentToken *string `json:"parent_token,omitempty"` // 源文档token

	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 CreateFolderFilePathReqBodyBuilder

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

func NewCreateFolderFilePathReqBodyBuilder

func NewCreateFolderFilePathReqBodyBuilder() *CreateFolderFilePathReqBodyBuilder

func (*CreateFolderFilePathReqBodyBuilder) Build

func (*CreateFolderFilePathReqBodyBuilder) FolderToken

父文件夹token

示例值:fldbcO1UuPz8VwnpPx5a92abcef

func (*CreateFolderFilePathReqBodyBuilder) Name

文件夹名称

示例值:New Folder

type CreateFolderFileReq

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

type CreateFolderFileReqBody

type CreateFolderFileReqBody struct {
	Name *string `json:"name,omitempty"` // 文件夹名称

	FolderToken *string `json:"folder_token,omitempty"` // 父文件夹token
}

type CreateFolderFileReqBodyBuilder

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

func NewCreateFolderFileReqBodyBuilder

func NewCreateFolderFileReqBodyBuilder() *CreateFolderFileReqBodyBuilder

func (*CreateFolderFileReqBodyBuilder) Build

func (*CreateFolderFileReqBodyBuilder) FolderToken

func (builder *CreateFolderFileReqBodyBuilder) FolderToken(folderToken string) *CreateFolderFileReqBodyBuilder

父文件夹token

示例值:fldbcO1UuPz8VwnpPx5a92abcef

func (*CreateFolderFileReqBodyBuilder) Name

文件夹名称

示例值:New Folder

type CreateFolderFileReqBuilder

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

func NewCreateFolderFileReqBuilder

func NewCreateFolderFileReqBuilder() *CreateFolderFileReqBuilder

func (*CreateFolderFileReqBuilder) Body

在用户云空间的指定文件夹中创建一个新的空文件夹。

func (*CreateFolderFileReqBuilder) Build

type CreateFolderFileResp

type CreateFolderFileResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *CreateFolderFileRespData `json:"data"` // 业务数据
}

func (*CreateFolderFileResp) Success

func (resp *CreateFolderFileResp) Success() bool

type CreateFolderFileRespData

type CreateFolderFileRespData struct {
	Token *string `json:"token,omitempty"` // 创建文件夹的token

	Url *string `json:"url,omitempty"` // 创建文件夹的访问url
}

type CreateImportTaskReq

type CreateImportTaskReq struct {
	ImportTask *ImportTask `body:""`
	// contains filtered or unexported fields
}

type CreateImportTaskReqBuilder

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

func NewCreateImportTaskReqBuilder

func NewCreateImportTaskReqBuilder() *CreateImportTaskReqBuilder

func (*CreateImportTaskReqBuilder) Build

func (*CreateImportTaskReqBuilder) ImportTask

func (builder *CreateImportTaskReqBuilder) ImportTask(importTask *ImportTask) *CreateImportTaskReqBuilder

创建导入任务。支持导入为 doc、docx、sheet、bitable,参考[导入用户指南](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/import_task/import-user-guide)

type CreateImportTaskResp

type CreateImportTaskResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *CreateImportTaskRespData `json:"data"` // 业务数据
}

func (*CreateImportTaskResp) Success

func (resp *CreateImportTaskResp) Success() bool

type CreateImportTaskRespData

type CreateImportTaskRespData struct {
	Ticket *string `json:"ticket,omitempty"` // 导入任务ID
}

type CreatePermissionMemberReq

type CreatePermissionMemberReq struct {
	BaseMember *BaseMember `body:""`
	// contains filtered or unexported fields
}

type CreatePermissionMemberReqBuilder

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

func NewCreatePermissionMemberReqBuilder

func NewCreatePermissionMemberReqBuilder() *CreatePermissionMemberReqBuilder

func (*CreatePermissionMemberReqBuilder) BaseMember

该接口用于根据 filetoken 给用户增加文档的权限。

func (*CreatePermissionMemberReqBuilder) Build

func (*CreatePermissionMemberReqBuilder) NeedNotification

func (builder *CreatePermissionMemberReqBuilder) NeedNotification(needNotification bool) *CreatePermissionMemberReqBuilder

添加权限后是否通知对方

示例值:false

func (*CreatePermissionMemberReqBuilder) Token

文件的 token,获取方式见 [如何获取云文档资源相关 token](https://open.feishu.cn/document/ukTMukTMukTM/uczNzUjL3czM14yN3MTN#08bb5df6)

示例值:doccnBKgoMyY5OMbUG6FioTXuBe

func (*CreatePermissionMemberReqBuilder) Type

文件类型,需要与文件的 token 相匹配

示例值:doc

type CreatePermissionMemberResp

type CreatePermissionMemberResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *CreatePermissionMemberRespData `json:"data"` // 业务数据
}

func (*CreatePermissionMemberResp) Success

func (resp *CreatePermissionMemberResp) Success() bool

type CreatePermissionMemberRespData

type CreatePermissionMemberRespData struct {
	Member *BaseMember `json:"member,omitempty"` // 本次添加权限的用户信息
}

type CreatePermissionPublicPasswordReq

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

type CreatePermissionPublicPasswordReqBuilder

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

func NewCreatePermissionPublicPasswordReqBuilder

func NewCreatePermissionPublicPasswordReqBuilder() *CreatePermissionPublicPasswordReqBuilder

func (*CreatePermissionPublicPasswordReqBuilder) Build

func (*CreatePermissionPublicPasswordReqBuilder) Token

文件的 token

示例值:doccnBKgoMyY5OMbUG6FioTXuBe

func (*CreatePermissionPublicPasswordReqBuilder) Type

文件类型,需要与文件的 token 相匹配

示例值:doc

type CreatePermissionPublicPasswordResp

type CreatePermissionPublicPasswordResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *CreatePermissionPublicPasswordRespData `json:"data"` // 业务数据
}

func (*CreatePermissionPublicPasswordResp) Success

func (resp *CreatePermissionPublicPasswordResp) Success() bool

type CreatePermissionPublicPasswordRespData

type CreatePermissionPublicPasswordRespData struct {
	Password *string `json:"password,omitempty"` // 密码
}

type CreateShortcutFilePathReqBodyBuilder

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

func NewCreateShortcutFilePathReqBodyBuilder

func NewCreateShortcutFilePathReqBodyBuilder() *CreateShortcutFilePathReqBodyBuilder

func (*CreateShortcutFilePathReqBodyBuilder) Build

func (*CreateShortcutFilePathReqBodyBuilder) ParentToken

创建快捷方式的目标父文件夹 token

示例值:fldbc5qgwyQnO0uedNllWuF3fAd

func (*CreateShortcutFilePathReqBodyBuilder) ReferEntity

快捷方式映射到的文档和文件列表信息

示例值:

type CreateShortcutFileReq

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

type CreateShortcutFileReqBody

type CreateShortcutFileReqBody struct {
	ParentToken *string `json:"parent_token,omitempty"` // 创建快捷方式的目标父文件夹 token

	ReferEntity *ReferEntity `json:"refer_entity,omitempty"` // 快捷方式映射到的文档和文件列表信息
}

type CreateShortcutFileReqBodyBuilder

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

func NewCreateShortcutFileReqBodyBuilder

func NewCreateShortcutFileReqBodyBuilder() *CreateShortcutFileReqBodyBuilder

func (*CreateShortcutFileReqBodyBuilder) Build

func (*CreateShortcutFileReqBodyBuilder) ParentToken

创建快捷方式的目标父文件夹 token

示例值:fldbc5qgwyQnO0uedNllWuF3fAd

func (*CreateShortcutFileReqBodyBuilder) ReferEntity

快捷方式映射到的文档和文件列表信息

示例值:

type CreateShortcutFileReqBuilder

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

func NewCreateShortcutFileReqBuilder

func NewCreateShortcutFileReqBuilder() *CreateShortcutFileReqBuilder

func (*CreateShortcutFileReqBuilder) Body

func (*CreateShortcutFileReqBuilder) Build

func (*CreateShortcutFileReqBuilder) UserIdType

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

此次调用中使用的用户ID的类型

示例值:

type CreateShortcutFileResp

type CreateShortcutFileResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *CreateShortcutFileRespData `json:"data"` // 业务数据
}

func (*CreateShortcutFileResp) Success

func (resp *CreateShortcutFileResp) Success() bool

type CreateShortcutFileRespData

type CreateShortcutFileRespData struct {
	SuccShortcutNode *File `json:"succ_shortcut_node,omitempty"` // 返回创建成功的shortcut节点
}

type DeleteFileCommentReplyReq

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

type DeleteFileCommentReplyReqBuilder

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

func NewDeleteFileCommentReplyReqBuilder

func NewDeleteFileCommentReplyReqBuilder() *DeleteFileCommentReplyReqBuilder

func (*DeleteFileCommentReplyReqBuilder) Build

func (*DeleteFileCommentReplyReqBuilder) CommentId

评论ID

示例值:6916106822734578184

func (*DeleteFileCommentReplyReqBuilder) FileToken

文档token

示例值:doccnHh7U87HOFpii5u5G*****

func (*DeleteFileCommentReplyReqBuilder) FileType

文档类型

示例值:doc

func (*DeleteFileCommentReplyReqBuilder) ReplyId

回复ID

示例值:6916106822734594568

type DeleteFileCommentReplyResp

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

func (*DeleteFileCommentReplyResp) Success

func (resp *DeleteFileCommentReplyResp) Success() bool

type DeleteFileReq

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

type DeleteFileReqBuilder

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

func NewDeleteFileReqBuilder

func NewDeleteFileReqBuilder() *DeleteFileReqBuilder

func (*DeleteFileReqBuilder) Build

func (builder *DeleteFileReqBuilder) Build() *DeleteFileReq

func (*DeleteFileReqBuilder) FileToken

func (builder *DeleteFileReqBuilder) FileToken(fileToken string) *DeleteFileReqBuilder

需要删除的文件token

示例值:boxcnrHpsg1QDqXAAAyachabcef

func (*DeleteFileReqBuilder) Type

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

被删除文件的类型

示例值:file

type DeleteFileResp

type DeleteFileResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *DeleteFileRespData `json:"data"` // 业务数据
}

func (*DeleteFileResp) Success

func (resp *DeleteFileResp) Success() bool

type DeleteFileRespData

type DeleteFileRespData struct {
	TaskId *string `json:"task_id,omitempty"` // 异步任务id,删除文件夹时返回
}

type DeleteFileVersionReq

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

type DeleteFileVersionReqBuilder

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

func NewDeleteFileVersionReqBuilder

func NewDeleteFileVersionReqBuilder() *DeleteFileVersionReqBuilder

func (*DeleteFileVersionReqBuilder) Build

func (*DeleteFileVersionReqBuilder) FileToken

func (builder *DeleteFileVersionReqBuilder) FileToken(fileToken string) *DeleteFileVersionReqBuilder

版本文档token

示例值:doxbcyvqZlSc9WlHvQMlSJwUrsb

func (*DeleteFileVersionReqBuilder) ObjType

文档类型

示例值:doc/docs/sheet/bitable

func (*DeleteFileVersionReqBuilder) UserIdType

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

用户ID类型

示例值:

func (*DeleteFileVersionReqBuilder) VersionId

func (builder *DeleteFileVersionReqBuilder) VersionId(versionId string) *DeleteFileVersionReqBuilder

版本文档版本号

示例值:file_version

type DeleteFileVersionResp

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

func (*DeleteFileVersionResp) Success

func (resp *DeleteFileVersionResp) Success() bool

type DeletePermissionMemberPathReqBodyBuilder

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

func NewDeletePermissionMemberPathReqBodyBuilder

func NewDeletePermissionMemberPathReqBodyBuilder() *DeletePermissionMemberPathReqBodyBuilder

func (*DeletePermissionMemberPathReqBodyBuilder) Build

func (*DeletePermissionMemberPathReqBodyBuilder) PermType

协作者的权限角色类型

示例值:container

func (*DeletePermissionMemberPathReqBodyBuilder) Type

协作者类型

示例值:user

type DeletePermissionMemberReq

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

type DeletePermissionMemberReqBody

type DeletePermissionMemberReqBody struct {
	Type *string `json:"type,omitempty"` // 协作者类型

	PermType *string `json:"perm_type,omitempty"` // 协作者的权限角色类型
}

type DeletePermissionMemberReqBodyBuilder

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

func NewDeletePermissionMemberReqBodyBuilder

func NewDeletePermissionMemberReqBodyBuilder() *DeletePermissionMemberReqBodyBuilder

func (*DeletePermissionMemberReqBodyBuilder) Build

func (*DeletePermissionMemberReqBodyBuilder) PermType

协作者的权限角色类型

示例值:container

func (*DeletePermissionMemberReqBodyBuilder) Type

协作者类型

示例值:user

type DeletePermissionMemberReqBuilder

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

func NewDeletePermissionMemberReqBuilder

func NewDeletePermissionMemberReqBuilder() *DeletePermissionMemberReqBuilder

func (*DeletePermissionMemberReqBuilder) Body

该接口用于根据 filetoken 移除文档协作者的权限。

func (*DeletePermissionMemberReqBuilder) Build

func (*DeletePermissionMemberReqBuilder) MemberId

协作者 ID,与协作者 ID 类型需要对应

示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62

func (*DeletePermissionMemberReqBuilder) MemberType

协作者 ID 类型,与协作者 ID 需要对应

示例值:openid

func (*DeletePermissionMemberReqBuilder) Token

文件的 token,获取方式见 [如何获取云文档资源相关 token](https://open.feishu.cn/document/ukTMukTMukTM/uczNzUjL3czM14yN3MTN#08bb5df6)

示例值:doccnBKgoMyY5OMbUG6FioTXuBe

func (*DeletePermissionMemberReqBuilder) Type

文件类型,需要与文件的 token 相匹配

示例值:doc

type DeletePermissionMemberResp

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

func (*DeletePermissionMemberResp) Success

func (resp *DeletePermissionMemberResp) Success() bool

type DeletePermissionPublicPasswordReq

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

type DeletePermissionPublicPasswordReqBuilder

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

func NewDeletePermissionPublicPasswordReqBuilder

func NewDeletePermissionPublicPasswordReqBuilder() *DeletePermissionPublicPasswordReqBuilder

func (*DeletePermissionPublicPasswordReqBuilder) Build

func (*DeletePermissionPublicPasswordReqBuilder) Token

文件的 token

示例值:doccnBKgoMyY5OMbUG6FioTXuBe

func (*DeletePermissionPublicPasswordReqBuilder) Type

文件类型,需要与文件的 token 相匹配

示例值:doc

type DeletePermissionPublicPasswordResp

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

func (*DeletePermissionPublicPasswordResp) Success

func (resp *DeletePermissionPublicPasswordResp) Success() bool

type DeleteSubscribeFileReq

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

type DeleteSubscribeFileReqBuilder

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

func NewDeleteSubscribeFileReqBuilder

func NewDeleteSubscribeFileReqBuilder() *DeleteSubscribeFileReqBuilder

func (*DeleteSubscribeFileReqBuilder) Build

func (*DeleteSubscribeFileReqBuilder) EventType

事件类型

示例值:file.created_in_folder_v1

func (*DeleteSubscribeFileReqBuilder) FileToken

文档token

示例值:doccnxxxxxxxxxxxxxxxxxxxxxx

func (*DeleteSubscribeFileReqBuilder) FileType

文档类型

示例值:doc

type DeleteSubscribeFileResp

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

func (*DeleteSubscribeFileResp) Success

func (resp *DeleteSubscribeFileResp) Success() bool

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 DownloadExportTaskReq

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

type DownloadExportTaskReqBuilder

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

func NewDownloadExportTaskReqBuilder

func NewDownloadExportTaskReqBuilder() *DownloadExportTaskReqBuilder

func (*DownloadExportTaskReqBuilder) Build

func (*DownloadExportTaskReqBuilder) FileToken

func (builder *DownloadExportTaskReqBuilder) FileToken(fileToken string) *DownloadExportTaskReqBuilder

导出文档token

示例值:boxcnNAlfwHxxxxxxxxxxSaLSec

type DownloadExportTaskResp

type DownloadExportTaskResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	File     io.Reader `json:"-"`
	FileName string    `json:"-"`
}

func (*DownloadExportTaskResp) Success

func (resp *DownloadExportTaskResp) Success() bool

func (*DownloadExportTaskResp) WriteFile

func (resp *DownloadExportTaskResp) WriteFile(fileName string) error

type DownloadFileReq

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

type DownloadFileReqBuilder

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

func NewDownloadFileReqBuilder

func NewDownloadFileReqBuilder() *DownloadFileReqBuilder

func (*DownloadFileReqBuilder) Build

func (builder *DownloadFileReqBuilder) Build() *DownloadFileReq

func (*DownloadFileReqBuilder) FileToken

func (builder *DownloadFileReqBuilder) FileToken(fileToken string) *DownloadFileReqBuilder

文件的 token,获取方式见 [概述](https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/files/guide/introduction)

示例值:boxcnabCdefg12345

type DownloadFileResp

type DownloadFileResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	File     io.Reader `json:"-"`
	FileName string    `json:"-"`
}

func (*DownloadFileResp) Success

func (resp *DownloadFileResp) Success() bool

func (*DownloadFileResp) WriteFile

func (resp *DownloadFileResp) WriteFile(fileName string) error

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 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 FileBlockChangeInfo

type FileBlockChangeInfo struct {
	BlockToken *string `json:"block_token,omitempty"` // 子block token

	BlockTokenType *string `json:"block_token_type,omitempty"` // 子block文档类型

	RevRanges []int `json:"rev_ranges,omitempty"` // 起点版本和终点版本
}

type FileBlockChangeInfoBuilder

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

func NewFileBlockChangeInfoBuilder

func NewFileBlockChangeInfoBuilder() *FileBlockChangeInfoBuilder

func (*FileBlockChangeInfoBuilder) BlockToken

func (builder *FileBlockChangeInfoBuilder) BlockToken(blockToken string) *FileBlockChangeInfoBuilder

子block token

示例值:doxcnxxxxxxxxxxxxxxxx

func (*FileBlockChangeInfoBuilder) BlockTokenType

func (builder *FileBlockChangeInfoBuilder) BlockTokenType(blockTokenType string) *FileBlockChangeInfoBuilder

子block文档类型

示例值:docx

func (*FileBlockChangeInfoBuilder) Build

func (*FileBlockChangeInfoBuilder) RevRanges

func (builder *FileBlockChangeInfoBuilder) RevRanges(revRanges []int) *FileBlockChangeInfoBuilder

起点版本和终点版本

示例值:

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 FileChangeInfo

type FileChangeInfo struct {
	StartTime *int `json:"start_time,omitempty"` // 变更开始时间

	Changes []*FileBlockChangeInfo `json:"changes,omitempty"` // 版本变更明细
}

type FileChangeInfoBuilder

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

func NewFileChangeInfoBuilder

func NewFileChangeInfoBuilder() *FileChangeInfoBuilder

func (*FileChangeInfoBuilder) Build

func (builder *FileChangeInfoBuilder) Build() *FileChangeInfo

func (*FileChangeInfoBuilder) Changes

func (builder *FileChangeInfoBuilder) Changes(changes []*FileBlockChangeInfo) *FileChangeInfoBuilder

版本变更明细

示例值:

func (*FileChangeInfoBuilder) StartTime

func (builder *FileChangeInfoBuilder) StartTime(startTime int) *FileChangeInfoBuilder

变更开始时间

示例值:1687748146

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 {
	Content *ReplyContent `json:"content,omitempty"` // 回复内容

	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"` // 更新时间

	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"` // 时间戳(秒)

	UvToday *int `json:"uv_today,omitempty"` // 今日新增文档访问人数

	PvToday *int `json:"pv_today,omitempty"` // 今日新增文档访问次数

	LikeCountToday *int `json:"like_count_today,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) LikeCountToday

func (builder *FileStatisticsBuilder) LikeCountToday(likeCountToday int) *FileStatisticsBuilder

今日新增文档点赞数

示例值:1

func (*FileStatisticsBuilder) Pv

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

示例值:15

func (*FileStatisticsBuilder) PvToday

func (builder *FileStatisticsBuilder) PvToday(pvToday int) *FileStatisticsBuilder

今日新增文档访问次数

示例值:1

func (*FileStatisticsBuilder) Timestamp

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

时间戳(秒)

示例值:1627367349

func (*FileStatisticsBuilder) Uv

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

示例值:10

func (*FileStatisticsBuilder) UvToday

func (builder *FileStatisticsBuilder) UvToday(uvToday int) *FileStatisticsBuilder

今日新增文档访问人数

示例值:1

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 GetExportTaskReq

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

type GetExportTaskReqBuilder

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

func NewGetExportTaskReqBuilder

func NewGetExportTaskReqBuilder() *GetExportTaskReqBuilder

func (*GetExportTaskReqBuilder) Build

func (builder *GetExportTaskReqBuilder) Build() *GetExportTaskReq

func (*GetExportTaskReqBuilder) Ticket

func (builder *GetExportTaskReqBuilder) Ticket(ticket string) *GetExportTaskReqBuilder

导出任务ID,[创建导出任务](/ssl::ttdoc//uAjLw4CM/ukTMukTMukTM/reference/drive-v1/export_task/create) 响应中的 ticket 字段

示例值:6933093124755423251

func (*GetExportTaskReqBuilder) Token

导出文档的 token;;[如何获取文档 otken](https://open.feishu.cn/document/ukTMukTMukTM/uczNzUjL3czM14yN3MTN#08bb5df6)

示例值:doccnZVxxxxxxxxxxxxGiyBgYqe

type GetExportTaskResp

type GetExportTaskResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *GetExportTaskRespData `json:"data"` // 业务数据
}

func (*GetExportTaskResp) Success

func (resp *GetExportTaskResp) Success() bool

type GetExportTaskRespData

type GetExportTaskRespData struct {
	Result *ExportTask `json:"result,omitempty"` // 导出任务结果
}

type GetFileCommentReq

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

type GetFileCommentReqBuilder

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

func NewGetFileCommentReqBuilder

func NewGetFileCommentReqBuilder() *GetFileCommentReqBuilder

func (*GetFileCommentReqBuilder) Build

func (builder *GetFileCommentReqBuilder) Build() *GetFileCommentReq

func (*GetFileCommentReqBuilder) CommentId

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

评论ID

示例值:6916106822734578184

func (*GetFileCommentReqBuilder) FileToken

func (builder *GetFileCommentReqBuilder) FileToken(fileToken string) *GetFileCommentReqBuilder

文档token

示例值:doccnHh7U87HOFpii5u5G*****

func (*GetFileCommentReqBuilder) FileType

func (builder *GetFileCommentReqBuilder) FileType(fileType string) *GetFileCommentReqBuilder

文档类型

示例值:doc

func (*GetFileCommentReqBuilder) UserIdType

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

此次调用中使用的用户 ID 的类型

示例值:

type GetFileCommentResp

type GetFileCommentResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *GetFileCommentRespData `json:"data"` // 业务数据
}

func (*GetFileCommentResp) Success

func (resp *GetFileCommentResp) Success() bool

type GetFileCommentRespData

type GetFileCommentRespData 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 GetFileStatisticsReq

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

type GetFileStatisticsReqBuilder

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

func NewGetFileStatisticsReqBuilder

func NewGetFileStatisticsReqBuilder() *GetFileStatisticsReqBuilder

func (*GetFileStatisticsReqBuilder) Build

func (*GetFileStatisticsReqBuilder) FileToken

func (builder *GetFileStatisticsReqBuilder) FileToken(fileToken string) *GetFileStatisticsReqBuilder

文件 token

示例值:doccnfYZzTlvXqZIGTdAHKabcef

func (*GetFileStatisticsReqBuilder) FileType

func (builder *GetFileStatisticsReqBuilder) FileType(fileType string) *GetFileStatisticsReqBuilder

文档类型

示例值:doc

type GetFileStatisticsResp

type GetFileStatisticsResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *GetFileStatisticsRespData `json:"data"` // 业务数据
}

func (*GetFileStatisticsResp) Success

func (resp *GetFileStatisticsResp) Success() bool

type GetFileStatisticsRespData

type GetFileStatisticsRespData struct {
	FileToken *string `json:"file_token,omitempty"` // 文件 token

	FileType *string `json:"file_type,omitempty"` // 文件类型

	Statistics *FileStatistics `json:"statistics,omitempty"` // 文件统计信息
}

type GetFileSubscriptionPathReqBodyBuilder

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

func NewGetFileSubscriptionPathReqBodyBuilder

func NewGetFileSubscriptionPathReqBodyBuilder() *GetFileSubscriptionPathReqBodyBuilder

func (*GetFileSubscriptionPathReqBodyBuilder) Build

func (*GetFileSubscriptionPathReqBodyBuilder) FileType

文档类型

示例值:doc

type GetFileSubscriptionReq

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

type GetFileSubscriptionReqBody

type GetFileSubscriptionReqBody struct {
	FileType *string `json:"file_type,omitempty"` // 文档类型
}

type GetFileSubscriptionReqBodyBuilder

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

func NewGetFileSubscriptionReqBodyBuilder

func NewGetFileSubscriptionReqBodyBuilder() *GetFileSubscriptionReqBodyBuilder

func (*GetFileSubscriptionReqBodyBuilder) Build

func (*GetFileSubscriptionReqBodyBuilder) FileType

文档类型

示例值:doc

type GetFileSubscriptionReqBuilder

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

func NewGetFileSubscriptionReqBuilder

func NewGetFileSubscriptionReqBuilder() *GetFileSubscriptionReqBuilder

func (*GetFileSubscriptionReqBuilder) Body

根据订阅ID获取该订阅的状态

func (*GetFileSubscriptionReqBuilder) Build

func (*GetFileSubscriptionReqBuilder) FileToken

文档token

示例值:doxcnxxxxxxxxxxxxxxxxxxxxxx

func (*GetFileSubscriptionReqBuilder) SubscriptionId

func (builder *GetFileSubscriptionReqBuilder) SubscriptionId(subscriptionId string) *GetFileSubscriptionReqBuilder

订阅关系ID

示例值:1234567890987654321

type GetFileSubscriptionResp

type GetFileSubscriptionResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *GetFileSubscriptionRespData `json:"data"` // 业务数据
}

func (*GetFileSubscriptionResp) Success

func (resp *GetFileSubscriptionResp) Success() bool

type GetFileSubscriptionRespData

type GetFileSubscriptionRespData 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 GetFileVersionReq

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

type GetFileVersionReqBuilder

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

func NewGetFileVersionReqBuilder

func NewGetFileVersionReqBuilder() *GetFileVersionReqBuilder

func (*GetFileVersionReqBuilder) Build

func (builder *GetFileVersionReqBuilder) Build() *GetFileVersionReq

func (*GetFileVersionReqBuilder) FileToken

func (builder *GetFileVersionReqBuilder) FileToken(fileToken string) *GetFileVersionReqBuilder

源文档token

示例值:shtbcqqoXZJaKYrfN5IHQg4sVFZ

func (*GetFileVersionReqBuilder) ObjType

func (builder *GetFileVersionReqBuilder) ObjType(objType string) *GetFileVersionReqBuilder

文档类型

示例值:doc/sheet/bitable/docx

func (*GetFileVersionReqBuilder) UserIdType

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

用户ID类型

示例值:

func (*GetFileVersionReqBuilder) VersionId

func (builder *GetFileVersionReqBuilder) VersionId(versionId string) *GetFileVersionReqBuilder

版本文档版本号

示例值:file_version

type GetFileVersionResp

type GetFileVersionResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *GetFileVersionRespData `json:"data"` // 业务数据
}

func (*GetFileVersionResp) Success

func (resp *GetFileVersionResp) Success() bool

type GetFileVersionRespData

type GetFileVersionRespData struct {
	Name *string `json:"name,omitempty"` // 版本文档标题,最大长度 1024 个Unicode 码点。通常情况下,一个英文或中文字符对应一个码点,但是某些特殊符号可能会对应多个码点。例如,家庭组合「👨‍👩‍👧」这个表情符号对应5个码点。

	Version *string `json:"version,omitempty"` // 版本文档版本号

	ParentToken *string `json:"parent_token,omitempty"` // 源文档token

	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 GetImportTaskReq

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

type GetImportTaskReqBuilder

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

func NewGetImportTaskReqBuilder

func NewGetImportTaskReqBuilder() *GetImportTaskReqBuilder

func (*GetImportTaskReqBuilder) Build

func (builder *GetImportTaskReqBuilder) Build() *GetImportTaskReq

func (*GetImportTaskReqBuilder) Ticket

func (builder *GetImportTaskReqBuilder) Ticket(ticket string) *GetImportTaskReqBuilder

导入任务ID

示例值:6990281865xxxxxxxx7843

type GetImportTaskResp

type GetImportTaskResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *GetImportTaskRespData `json:"data"` // 业务数据
}

func (*GetImportTaskResp) Success

func (resp *GetImportTaskResp) Success() bool

type GetImportTaskRespData

type GetImportTaskRespData struct {
	Result *ImportTask `json:"result,omitempty"` // 导入结果
}

type GetPermissionPublicReq

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

type GetPermissionPublicReqBuilder

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

func NewGetPermissionPublicReqBuilder

func NewGetPermissionPublicReqBuilder() *GetPermissionPublicReqBuilder

func (*GetPermissionPublicReqBuilder) Build

func (*GetPermissionPublicReqBuilder) Token

文件的 token,获取方式见 [如何获取云文档资源相关 token](https://open.feishu.cn/document/ukTMukTMukTM/uczNzUjL3czM14yN3MTN#08bb5df6)

示例值:doccnBKgoMyY5OMbUG6FioTXuBe

func (*GetPermissionPublicReqBuilder) Type

文件类型,需要与文件的 token 相匹配

示例值:doc

type GetPermissionPublicResp

type GetPermissionPublicResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *GetPermissionPublicRespData `json:"data"` // 业务数据
}

func (*GetPermissionPublicResp) Success

func (resp *GetPermissionPublicResp) Success() bool

type GetPermissionPublicRespData

type GetPermissionPublicRespData struct {
	PermissionPublic *PermissionPublic `json:"permission_public,omitempty"` // 返回的文档权限设置
}

type GetSubscribeFileReq

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

type GetSubscribeFileReqBuilder

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

func NewGetSubscribeFileReqBuilder

func NewGetSubscribeFileReqBuilder() *GetSubscribeFileReqBuilder

func (*GetSubscribeFileReqBuilder) Build

func (*GetSubscribeFileReqBuilder) EventType

func (builder *GetSubscribeFileReqBuilder) EventType(eventType string) *GetSubscribeFileReqBuilder

事件类型

示例值:file.created_in_folder_v1

func (*GetSubscribeFileReqBuilder) FileToken

func (builder *GetSubscribeFileReqBuilder) FileToken(fileToken string) *GetSubscribeFileReqBuilder

文档token

示例值:doccnxxxxxxxxxxxxxxxxxxxxxx

func (*GetSubscribeFileReqBuilder) FileType

func (builder *GetSubscribeFileReqBuilder) FileType(fileType string) *GetSubscribeFileReqBuilder

文档类型

示例值:新版文档

type GetSubscribeFileResp

type GetSubscribeFileResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *GetSubscribeFileRespData `json:"data"` // 业务数据
}

func (*GetSubscribeFileResp) Success

func (resp *GetSubscribeFileResp) Success() bool

type GetSubscribeFileRespData

type GetSubscribeFileRespData struct {
	IsSubscribe *bool `json:"is_subscribe,omitempty"` // 是否有订阅,取值 true 表示已订阅;false 表示未订阅
}

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 ListFileCommentIterator

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

func (*ListFileCommentIterator) Next

func (iterator *ListFileCommentIterator) Next() (bool, *FileComment, error)

func (*ListFileCommentIterator) NextPageToken

func (iterator *ListFileCommentIterator) NextPageToken() *string

type ListFileCommentReplyIterator

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

func (*ListFileCommentReplyIterator) Next

func (*ListFileCommentReplyIterator) NextPageToken

func (iterator *ListFileCommentReplyIterator) NextPageToken() *string

type ListFileCommentReplyReq

type ListFileCommentReplyReq struct {
	Limit int // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type ListFileCommentReplyReqBuilder

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

func NewListFileCommentReplyReqBuilder

func NewListFileCommentReplyReqBuilder() *ListFileCommentReplyReqBuilder

func (*ListFileCommentReplyReqBuilder) Build

func (*ListFileCommentReplyReqBuilder) CommentId

评论ID

示例值:1654857036541812356

func (*ListFileCommentReplyReqBuilder) FileToken

文档Token

示例值:doxbcdl03Vsxhm7Qmnj110abcef

func (*ListFileCommentReplyReqBuilder) FileType

文档类型

示例值:docx

func (*ListFileCommentReplyReqBuilder) Limit

最大返回多少记录,当使用迭代器访问时才有效

func (*ListFileCommentReplyReqBuilder) PageSize

分页大小

示例值:10

func (*ListFileCommentReplyReqBuilder) PageToken

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果

示例值:1654857036541812356

func (*ListFileCommentReplyReqBuilder) UserIdType

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

此次调用中使用的用户ID的类型

示例值:

type ListFileCommentReplyResp

type ListFileCommentReplyResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *ListFileCommentReplyRespData `json:"data"` // 业务数据
}

func (*ListFileCommentReplyResp) Success

func (resp *ListFileCommentReplyResp) Success() bool

type ListFileCommentReplyRespData

type ListFileCommentReplyRespData struct {
	Items []*FileCommentReply `json:"items,omitempty"` // 回复列表

	PageToken *string `json:"page_token,omitempty"` //

	HasMore *bool `json:"has_more,omitempty"` //
}

type ListFileCommentReq

type ListFileCommentReq struct {
	Limit int // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type ListFileCommentReqBuilder

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

func NewListFileCommentReqBuilder

func NewListFileCommentReqBuilder() *ListFileCommentReqBuilder

func (*ListFileCommentReqBuilder) Build

func (*ListFileCommentReqBuilder) FileToken

func (builder *ListFileCommentReqBuilder) FileToken(fileToken string) *ListFileCommentReqBuilder

文档token

示例值:XIHSdYSI7oMEU1xrsnxc8fabcef

func (*ListFileCommentReqBuilder) FileType

func (builder *ListFileCommentReqBuilder) FileType(fileType string) *ListFileCommentReqBuilder

文档类型

示例值:doc

func (*ListFileCommentReqBuilder) IsSolved

func (builder *ListFileCommentReqBuilder) IsSolved(isSolved bool) *ListFileCommentReqBuilder

是否已解决(可选)

示例值:false

func (*ListFileCommentReqBuilder) IsWhole

func (builder *ListFileCommentReqBuilder) IsWhole(isWhole bool) *ListFileCommentReqBuilder

是否全文评论

示例值:false

func (*ListFileCommentReqBuilder) Limit

最大返回多少记录,当使用迭代器访问时才有效

func (*ListFileCommentReqBuilder) PageSize

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

获取满足 commen_id > page_token 的评论数量

示例值:10

func (*ListFileCommentReqBuilder) PageToken

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

评论分页参数

示例值:7153511712153412356

func (*ListFileCommentReqBuilder) UserIdType

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

此次调用中使用的用户ID的类型

示例值:

type ListFileCommentResp

type ListFileCommentResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *ListFileCommentRespData `json:"data"` // 业务数据
}

func (*ListFileCommentResp) Success

func (resp *ListFileCommentResp) Success() bool

type ListFileCommentRespData

type ListFileCommentRespData struct {
	HasMore *bool `json:"has_more,omitempty"` // 是否有下一页数据

	PageToken *string `json:"page_token,omitempty"` // 下一页分页的 Token

	Items []*FileComment `json:"items,omitempty"` // 评论列表
}

type ListFileIterator

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

func (*ListFileIterator) Next

func (iterator *ListFileIterator) Next() (bool, *File, error)

func (*ListFileIterator) NextPageToken

func (iterator *ListFileIterator) NextPageToken() *string

type ListFileReq

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

type ListFileReqBuilder

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

func NewListFileReqBuilder

func NewListFileReqBuilder() *ListFileReqBuilder

func (*ListFileReqBuilder) Build

func (builder *ListFileReqBuilder) Build() *ListFileReq

func (*ListFileReqBuilder) Direction

func (builder *ListFileReqBuilder) Direction(direction string) *ListFileReqBuilder

升序降序

示例值:DESC

func (*ListFileReqBuilder) FolderToken

func (builder *ListFileReqBuilder) FolderToken(folderToken string) *ListFileReqBuilder

文件夹的token(若不填写该参数或填写空字符串,则默认获取用户云空间下的清单,且不支持分页)

示例值:fldbcO1UuPz8VwnpPx5a9abcef

func (*ListFileReqBuilder) OrderBy

func (builder *ListFileReqBuilder) OrderBy(orderBy string) *ListFileReqBuilder

排序规则

示例值:EditedTime

func (*ListFileReqBuilder) PageSize

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

分页大小

示例值:10

func (*ListFileReqBuilder) PageToken

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

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果

示例值:MTY1NTA3MTA1OXw3MTA4NDc2MDc1NzkyOTI0Nabcef

func (*ListFileReqBuilder) UserIdType

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

此次调用中使用的用户ID的类型

示例值:

type ListFileResp

type ListFileResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *ListFileRespData `json:"data"` // 业务数据
}

func (*ListFileResp) Success

func (resp *ListFileResp) Success() bool

type ListFileRespData

type ListFileRespData struct {
	Files []*File `json:"files,omitempty"` // 文件夹清单列表

	NextPageToken *string `json:"next_page_token,omitempty"` // 分页标记,当 has_more 为 true 时,会同时返回下一次遍历的page_token,否则则不返回

	HasMore *bool `json:"has_more,omitempty"` // 是否有下一页
}

type ListFileVersionIterator

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

func (*ListFileVersionIterator) Next

func (iterator *ListFileVersionIterator) Next() (bool, *Version, error)

func (*ListFileVersionIterator) NextPageToken

func (iterator *ListFileVersionIterator) NextPageToken() *string

type ListFileVersionReq

type ListFileVersionReq struct {
	Limit int // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type ListFileVersionReqBuilder

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

func NewListFileVersionReqBuilder

func NewListFileVersionReqBuilder() *ListFileVersionReqBuilder

func (*ListFileVersionReqBuilder) Build

func (*ListFileVersionReqBuilder) FileToken

func (builder *ListFileVersionReqBuilder) FileToken(fileToken string) *ListFileVersionReqBuilder

源文档token

示例值:shtbcpM2mm3znrLfWnf4browTYp23

func (*ListFileVersionReqBuilder) Limit

最大返回多少记录,当使用迭代器访问时才有效

func (*ListFileVersionReqBuilder) ObjType

func (builder *ListFileVersionReqBuilder) ObjType(objType string) *ListFileVersionReqBuilder

原文档类型

示例值:doc/docx/sheet/bitable

func (*ListFileVersionReqBuilder) PageSize

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

分页大小

示例值:10

func (*ListFileVersionReqBuilder) PageToken

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

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果

示例值:1665739388

func (*ListFileVersionReqBuilder) UserIdType

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

用户id类型

示例值:open_id

type ListFileVersionResp

type ListFileVersionResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *ListFileVersionRespData `json:"data"` // 业务数据
}

func (*ListFileVersionResp) Success

func (resp *ListFileVersionResp) Success() bool

type ListFileVersionRespData

type ListFileVersionRespData struct {
	Items []*Version `json:"items,omitempty"` // 版本文档列表

	PageToken *string `json:"page_token,omitempty"` // 下一页请求token

	HasMore *bool `json:"has_more,omitempty"` // 是否有下一页数据
}

type ListFileViewRecordIterator

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

func (*ListFileViewRecordIterator) Next

func (iterator *ListFileViewRecordIterator) Next() (bool, *FileViewRecord, error)

func (*ListFileViewRecordIterator) NextPageToken

func (iterator *ListFileViewRecordIterator) NextPageToken() *string

type ListFileViewRecordReq

type ListFileViewRecordReq struct {
	Limit int // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type ListFileViewRecordReqBuilder

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

func NewListFileViewRecordReqBuilder

func NewListFileViewRecordReqBuilder() *ListFileViewRecordReqBuilder

func (*ListFileViewRecordReqBuilder) Build

func (*ListFileViewRecordReqBuilder) FileToken

func (builder *ListFileViewRecordReqBuilder) FileToken(fileToken string) *ListFileViewRecordReqBuilder

文档 token

示例值:XIHSdYSI7oMEU1xrsnxc8fabcef

func (*ListFileViewRecordReqBuilder) FileType

文档类型

示例值:docx

func (*ListFileViewRecordReqBuilder) Limit

最大返回多少记录,当使用迭代器访问时才有效

func (*ListFileViewRecordReqBuilder) PageSize

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

分页大小

示例值:10

func (*ListFileViewRecordReqBuilder) PageToken

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

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果

示例值:1674037112--7189934631754563585

func (*ListFileViewRecordReqBuilder) ViewerIdType

func (builder *ListFileViewRecordReqBuilder) ViewerIdType(viewerIdType string) *ListFileViewRecordReqBuilder

此次调用中使用的访问者 ID 的类型

示例值:open_id

type ListFileViewRecordResp

type ListFileViewRecordResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *ListFileViewRecordRespData `json:"data"` // 业务数据
}

func (*ListFileViewRecordResp) Success

func (resp *ListFileViewRecordResp) Success() bool

type ListFileViewRecordRespData

type ListFileViewRecordRespData struct {
	Items []*FileViewRecord `json:"items,omitempty"` // 访问记录列表

	PageToken *string `json:"page_token,omitempty"` // 分页标记,当 has_more 为 true 时,会同时返回新的 page_token,否则不返回 page_token

	HasMore *bool `json:"has_more,omitempty"` // 是否还有更多项
}

type ListPermissionMemberReq

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

type ListPermissionMemberReqBuilder

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

func NewListPermissionMemberReqBuilder

func NewListPermissionMemberReqBuilder() *ListPermissionMemberReqBuilder

func (*ListPermissionMemberReqBuilder) Build

func (*ListPermissionMemberReqBuilder) Fields

指定返回的协作者字段信息,如无指定则默认不返回;;**可选值有:** ;- `name`:协作者名;- `type`:协作者类型;- `avatar`:头像;- `external_label`:外部标签;;**注意:** ;- 你可以使用特殊值`*`指定返回目前支持的所有字段;- 你可以使用`,`分隔若干个你想指定返回的字段,如:`name,avatar`;- 按需指定返回字段接口性能更好

示例值:*

func (*ListPermissionMemberReqBuilder) PermType

协作者的权限角色类型

示例值:container

func (*ListPermissionMemberReqBuilder) Token

文件的 token,获取方式见 [如何获取云文档资源相关 token](https://open.feishu.cn/document/ukTMukTMukTM/uczNzUjL3czM14yN3MTN#08bb5df6)

示例值:doccnBKgoMyY5OMbUG6FioTXuBe

func (*ListPermissionMemberReqBuilder) Type

文件类型,需要与文件的 token 相匹配

示例值:doc

type ListPermissionMemberResp

type ListPermissionMemberResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *ListPermissionMemberRespData `json:"data"` // 业务数据
}

func (*ListPermissionMemberResp) Success

func (resp *ListPermissionMemberResp) Success() bool

type ListPermissionMemberRespData

type ListPermissionMemberRespData struct {
	Items []*Member `json:"items,omitempty"` // 返回的列表数据
}

type Media

type Media struct {
	FileToken *string `json:"file_token,omitempty"` // 文件标识符

	FileName *string `json:"file_name,omitempty"` // 文件名

	Size *int `json:"size,omitempty"` // 文件大小

	MimeType *string `json:"mime_type,omitempty"` // 文件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"` // 上传点类型

	Size *int `json:"size,omitempty"` // 文件大小

	ParentNode *string `json:"parent_node,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"` // 协作者对应的权限角色

	PermType *string `json:"perm_type,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) PermType

func (builder *MemberBuilder) PermType(permType string) *MemberBuilder

协作者的权限角色类型

示例值:container

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 MoveFilePathReqBodyBuilder

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

func NewMoveFilePathReqBodyBuilder

func NewMoveFilePathReqBodyBuilder() *MoveFilePathReqBodyBuilder

func (*MoveFilePathReqBodyBuilder) Build

func (builder *MoveFilePathReqBodyBuilder) Build() (*MoveFileReqBody, error)

func (*MoveFilePathReqBodyBuilder) FolderToken

func (builder *MoveFilePathReqBodyBuilder) FolderToken(folderToken string) *MoveFilePathReqBodyBuilder

目标文件夹token

示例值:fldbcO1UuPz8VwnpPx5a92abcef

func (*MoveFilePathReqBodyBuilder) Type

文件类型,如果该值为空或者与文件实际类型不匹配,接口会返回失败。

示例值:file

type MoveFileReq

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

type MoveFileReqBody

type MoveFileReqBody struct {
	Type *string `json:"type,omitempty"` // 文件类型,如果该值为空或者与文件实际类型不匹配,接口会返回失败。

	FolderToken *string `json:"folder_token,omitempty"` // 目标文件夹token
}

type MoveFileReqBodyBuilder

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

func NewMoveFileReqBodyBuilder

func NewMoveFileReqBodyBuilder() *MoveFileReqBodyBuilder

func (*MoveFileReqBodyBuilder) Build

func (builder *MoveFileReqBodyBuilder) Build() *MoveFileReqBody

func (*MoveFileReqBodyBuilder) FolderToken

func (builder *MoveFileReqBodyBuilder) FolderToken(folderToken string) *MoveFileReqBodyBuilder

目标文件夹token

示例值:fldbcO1UuPz8VwnpPx5a92abcef

func (*MoveFileReqBodyBuilder) Type

文件类型,如果该值为空或者与文件实际类型不匹配,接口会返回失败。

示例值:file

type MoveFileReqBuilder

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

func NewMoveFileReqBuilder

func NewMoveFileReqBuilder() *MoveFileReqBuilder

func (*MoveFileReqBuilder) Body

将文件或者文件夹移动到用户云空间的其他位置。

func (*MoveFileReqBuilder) Build

func (builder *MoveFileReqBuilder) Build() *MoveFileReq

func (*MoveFileReqBuilder) FileToken

func (builder *MoveFileReqBuilder) FileToken(fileToken string) *MoveFileReqBuilder

需要移动的文件token

示例值:boxcnrHpsg1QDqXAAAyachabcef

type MoveFileResp

type MoveFileResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *MoveFileRespData `json:"data"` // 业务数据
}

func (*MoveFileResp) Success

func (resp *MoveFileResp) Success() bool

type MoveFileRespData

type MoveFileRespData struct {
	TaskId *string `json:"task_id,omitempty"` // 异步任务id,移动文件夹时返回
}

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 P2FileBitableFieldChangedV1

type P2FileBitableFieldChangedV1 struct {
	*larkevent.EventV2Base                                  // 事件基础数据
	*larkevent.EventReq                                     // 请求原生数据
	Event                  *P2FileBitableFieldChangedV1Data `json:"event"` // 事件内容
}

func (*P2FileBitableFieldChangedV1) RawReq

func (m *P2FileBitableFieldChangedV1) RawReq(req *larkevent.EventReq)

type P2FileBitableFieldChangedV1Data

type P2FileBitableFieldChangedV1Data struct {
	FileType *string `json:"file_type,omitempty"` // 文档类型

	FileToken *string `json:"file_token,omitempty"` // 文档token

	TableId *string `json:"table_id,omitempty"` // 多维表格数据表ID

	OperatorId *UserId `json:"operator_id,omitempty"` // 用户 ID

	ActionList []*BitableTableFieldAction `json:"action_list,omitempty"` // 字段变更操作列表

	Revision *int `json:"revision,omitempty"` // 多维表格数据表的版本号

	SubscriberIdList []*UserId `json:"subscriber_id_list,omitempty"` // 订阅用户id列表

	UpdateTime *int `json:"update_time,omitempty"` // 字段变更时间
}

type P2FileBitableFieldChangedV1Handler

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

消息处理器定义

func (*P2FileBitableFieldChangedV1Handler) Event

func (h *P2FileBitableFieldChangedV1Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2FileBitableFieldChangedV1Handler) Handle

func (h *P2FileBitableFieldChangedV1Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2FileBitableRecordChangedV1

type P2FileBitableRecordChangedV1 struct {
	*larkevent.EventV2Base                                   // 事件基础数据
	*larkevent.EventReq                                      // 请求原生数据
	Event                  *P2FileBitableRecordChangedV1Data `json:"event"` // 事件内容
}

func (*P2FileBitableRecordChangedV1) RawReq

func (m *P2FileBitableRecordChangedV1) RawReq(req *larkevent.EventReq)

type P2FileBitableRecordChangedV1Data

type P2FileBitableRecordChangedV1Data struct {
	FileType *string `json:"file_type,omitempty"` // 文档类型

	FileToken *string `json:"file_token,omitempty"` // 文档token

	TableId *string `json:"table_id,omitempty"` // 多维表格数据表ID

	Revision *int `json:"revision,omitempty"` // 多维表格数据表的版本号

	OperatorId *UserId `json:"operator_id,omitempty"` // 操作者ID

	ActionList []*BitableTableRecordAction `json:"action_list,omitempty"` // 行变更操作列表

	SubscriberIdList []*UserId `json:"subscriber_id_list,omitempty"` // 订阅用户id列表

	UpdateTime *int `json:"update_time,omitempty"` // 编辑时间(格式:时间戳;单位:秒)
}

type P2FileBitableRecordChangedV1Handler

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

消息处理器定义

func (*P2FileBitableRecordChangedV1Handler) Event

func (h *P2FileBitableRecordChangedV1Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2FileBitableRecordChangedV1Handler) Handle

func (h *P2FileBitableRecordChangedV1Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2FileCreatedInFolderV1

type P2FileCreatedInFolderV1 struct {
	*larkevent.EventV2Base                              // 事件基础数据
	*larkevent.EventReq                                 // 请求原生数据
	Event                  *P2FileCreatedInFolderV1Data `json:"event"` // 事件内容
}

func (*P2FileCreatedInFolderV1) RawReq

func (m *P2FileCreatedInFolderV1) RawReq(req *larkevent.EventReq)

type P2FileCreatedInFolderV1Data

type P2FileCreatedInFolderV1Data struct {
	FileType *string `json:"file_type,omitempty"` // 文档类型

	FileToken *string `json:"file_token,omitempty"` // 文档 Token

	FolderToken *string `json:"folder_token,omitempty"` // 文件夹 Token

	OperatorId *UserId `json:"operator_id,omitempty"` // 操作者 ID

	SubscriberIds []*UserId `json:"subscriber_ids,omitempty"` // 订阅用户 ID 列表
}

type P2FileCreatedInFolderV1Handler

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

消息处理器定义

func (*P2FileCreatedInFolderV1Handler) Event

func (h *P2FileCreatedInFolderV1Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2FileCreatedInFolderV1Handler) Handle

func (h *P2FileCreatedInFolderV1Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2FileDeletedV1

type P2FileDeletedV1 struct {
	*larkevent.EventV2Base                      // 事件基础数据
	*larkevent.EventReq                         // 请求原生数据
	Event                  *P2FileDeletedV1Data `json:"event"` // 事件内容
}

func (*P2FileDeletedV1) RawReq

func (m *P2FileDeletedV1) RawReq(req *larkevent.EventReq)

type P2FileDeletedV1Data

type P2FileDeletedV1Data struct {
	FileType *string `json:"file_type,omitempty"` // 文档类型

	FileToken *string `json:"file_token,omitempty"` // 文档token

	OperatorId *UserId `json:"operator_id,omitempty"` // 操作者id

	SubscriberIdList []*UserId `json:"subscriber_id_list,omitempty"` // 订阅用户id列表
}

type P2FileDeletedV1Handler

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

消息处理器定义

func NewP2FileDeletedV1Handler

func NewP2FileDeletedV1Handler(handler func(context.Context, *P2FileDeletedV1) error) *P2FileDeletedV1Handler

func (*P2FileDeletedV1Handler) Event

func (h *P2FileDeletedV1Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2FileDeletedV1Handler) Handle

func (h *P2FileDeletedV1Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2FileEditV1

type P2FileEditV1 struct {
	*larkevent.EventV2Base                   // 事件基础数据
	*larkevent.EventReq                      // 请求原生数据
	Event                  *P2FileEditV1Data `json:"event"` // 事件内容
}

func (*P2FileEditV1) RawReq

func (m *P2FileEditV1) RawReq(req *larkevent.EventReq)

type P2FileEditV1Data

type P2FileEditV1Data struct {
	FileType *string `json:"file_type,omitempty"` // 文档类型

	FileToken *string `json:"file_token,omitempty"` // 文档token

	OperatorIdList []*UserId `json:"operator_id_list,omitempty"` // 操作者id列表

	SubscriberIdList []*UserId `json:"subscriber_id_list,omitempty"` // 订阅用户id列表

	SheetId *string `json:"sheet_id,omitempty"` // 表格的子SheetID,当表格发生编辑时将会包含此字段
}

type P2FileEditV1Handler

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

消息处理器定义

func NewP2FileEditV1Handler

func NewP2FileEditV1Handler(handler func(context.Context, *P2FileEditV1) error) *P2FileEditV1Handler

func (*P2FileEditV1Handler) Event

func (h *P2FileEditV1Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2FileEditV1Handler) Handle

func (h *P2FileEditV1Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2FilePermissionMemberAddedV1

type P2FilePermissionMemberAddedV1 struct {
	*larkevent.EventV2Base                                    // 事件基础数据
	*larkevent.EventReq                                       // 请求原生数据
	Event                  *P2FilePermissionMemberAddedV1Data `json:"event"` // 事件内容
}

func (*P2FilePermissionMemberAddedV1) RawReq

func (m *P2FilePermissionMemberAddedV1) RawReq(req *larkevent.EventReq)

type P2FilePermissionMemberAddedV1Data

type P2FilePermissionMemberAddedV1Data struct {
	FileType *string `json:"file_type,omitempty"` // 文档类型

	FileToken *string `json:"file_token,omitempty"` // 文档token

	OperatorId *UserId `json:"operator_id,omitempty"` // 操作者id

	UserList []*UserId `json:"user_list,omitempty"` // 添加的用户列表

	ChatList []string `json:"chat_list,omitempty"` // 群聊列表

	OpenDepartmentIdList []string `json:"open_department_id_list,omitempty"` // 部门列表

	SubscriberIdList []*UserId `json:"subscriber_id_list,omitempty"` // 订阅用户id列表
}

type P2FilePermissionMemberAddedV1Handler

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

消息处理器定义

func (*P2FilePermissionMemberAddedV1Handler) Event

func (h *P2FilePermissionMemberAddedV1Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2FilePermissionMemberAddedV1Handler) Handle

func (h *P2FilePermissionMemberAddedV1Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2FilePermissionMemberAppliedV1

type P2FilePermissionMemberAppliedV1 struct {
	*larkevent.EventV2Base                                      // 事件基础数据
	*larkevent.EventReq                                         // 请求原生数据
	Event                  *P2FilePermissionMemberAppliedV1Data `json:"event"` // 事件内容
}

func (*P2FilePermissionMemberAppliedV1) RawReq

func (m *P2FilePermissionMemberAppliedV1) RawReq(req *larkevent.EventReq)

type P2FilePermissionMemberAppliedV1Data

type P2FilePermissionMemberAppliedV1Data struct {
	FileType *string `json:"file_type,omitempty"` // 文件对应的类型

	FileToken *string `json:"file_token,omitempty"` // 文件的 Token

	OperatorId *UserId `json:"operator_id,omitempty"` // 操作者 ID

	ApproverId *UserId `json:"approver_id,omitempty"` // 收到申请处理审批的用户 ID

	ApplicationUserList []*UserId `json:"application_user_list,omitempty"` // 申请授权的用户 ID 列表

	ApplicationChatList []string `json:"application_chat_list,omitempty"` // 申请授权的群 ID 列表

	ApplicationDepartmentList []string `json:"application_department_list,omitempty"` // 申请授权的组织架构 ID 列表

	Permission *string `json:"permission,omitempty"` // 需要申请的权限

	SubscriberIds []*UserId `json:"subscriber_ids,omitempty"` // 订阅用户 ID 列表
}

type P2FilePermissionMemberAppliedV1Handler

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

消息处理器定义

func (*P2FilePermissionMemberAppliedV1Handler) Event

func (h *P2FilePermissionMemberAppliedV1Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2FilePermissionMemberAppliedV1Handler) Handle

func (h *P2FilePermissionMemberAppliedV1Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2FilePermissionMemberRemovedV1

type P2FilePermissionMemberRemovedV1 struct {
	*larkevent.EventV2Base                                      // 事件基础数据
	*larkevent.EventReq                                         // 请求原生数据
	Event                  *P2FilePermissionMemberRemovedV1Data `json:"event"` // 事件内容
}

func (*P2FilePermissionMemberRemovedV1) RawReq

func (m *P2FilePermissionMemberRemovedV1) RawReq(req *larkevent.EventReq)

type P2FilePermissionMemberRemovedV1Data

type P2FilePermissionMemberRemovedV1Data struct {
	FileType *string `json:"file_type,omitempty"` // 文档类型

	FileToken *string `json:"file_token,omitempty"` // 文档token

	OperatorId *UserId `json:"operator_id,omitempty"` // 操作者id

	UserList []*UserId `json:"user_list,omitempty"` // 移除的用户列表

	ChatList []string `json:"chat_list,omitempty"` // 群聊列表

	OpenDepartmentIdList []string `json:"open_department_id_list,omitempty"` // 部门列表

	SubscriberIdList []*UserId `json:"subscriber_id_list,omitempty"` // 订阅用户id列表
}

type P2FilePermissionMemberRemovedV1Handler

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

消息处理器定义

func (*P2FilePermissionMemberRemovedV1Handler) Event

func (h *P2FilePermissionMemberRemovedV1Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2FilePermissionMemberRemovedV1Handler) Handle

func (h *P2FilePermissionMemberRemovedV1Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2FileReadV1

type P2FileReadV1 struct {
	*larkevent.EventV2Base                   // 事件基础数据
	*larkevent.EventReq                      // 请求原生数据
	Event                  *P2FileReadV1Data `json:"event"` // 事件内容
}

func (*P2FileReadV1) RawReq

func (m *P2FileReadV1) RawReq(req *larkevent.EventReq)

type P2FileReadV1Data

type P2FileReadV1Data struct {
	FileType *string `json:"file_type,omitempty"` // 文档类型

	FileToken *string `json:"file_token,omitempty"` // 文档token

	OperatorIdList []*UserId `json:"operator_id_list,omitempty"` // 操作者id列表

	SubscriberIdList []*UserId `json:"subscriber_id_list,omitempty"` // 订阅用户id列表
}

type P2FileReadV1Handler

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

消息处理器定义

func NewP2FileReadV1Handler

func NewP2FileReadV1Handler(handler func(context.Context, *P2FileReadV1) error) *P2FileReadV1Handler

func (*P2FileReadV1Handler) Event

func (h *P2FileReadV1Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2FileReadV1Handler) Handle

func (h *P2FileReadV1Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2FileTitleUpdatedV1

type P2FileTitleUpdatedV1 struct {
	*larkevent.EventV2Base                           // 事件基础数据
	*larkevent.EventReq                              // 请求原生数据
	Event                  *P2FileTitleUpdatedV1Data `json:"event"` // 事件内容
}

func (*P2FileTitleUpdatedV1) RawReq

func (m *P2FileTitleUpdatedV1) RawReq(req *larkevent.EventReq)

type P2FileTitleUpdatedV1Data

type P2FileTitleUpdatedV1Data struct {
	FileType *string `json:"file_type,omitempty"` // 文档类型

	FileToken *string `json:"file_token,omitempty"` // 文档token

	OperatorId *UserId `json:"operator_id,omitempty"` // 操作者id

	SubscriberIdList []*UserId `json:"subscriber_id_list,omitempty"` // 订阅用户id列表
}

type P2FileTitleUpdatedV1Handler

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

消息处理器定义

func NewP2FileTitleUpdatedV1Handler

func NewP2FileTitleUpdatedV1Handler(handler func(context.Context, *P2FileTitleUpdatedV1) error) *P2FileTitleUpdatedV1Handler

func (*P2FileTitleUpdatedV1Handler) Event

func (h *P2FileTitleUpdatedV1Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2FileTitleUpdatedV1Handler) Handle

func (h *P2FileTitleUpdatedV1Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2FileTrashedV1

type P2FileTrashedV1 struct {
	*larkevent.EventV2Base                      // 事件基础数据
	*larkevent.EventReq                         // 请求原生数据
	Event                  *P2FileTrashedV1Data `json:"event"` // 事件内容
}

func (*P2FileTrashedV1) RawReq

func (m *P2FileTrashedV1) RawReq(req *larkevent.EventReq)

type P2FileTrashedV1Data

type P2FileTrashedV1Data struct {
	FileType *string `json:"file_type,omitempty"` // 文档类型

	FileToken *string `json:"file_token,omitempty"` // 文档token

	OperatorId *UserId `json:"operator_id,omitempty"` // 操作者id

	SubscriberIdList []*UserId `json:"subscriber_id_list,omitempty"` // 订阅用户id列表
}

type P2FileTrashedV1Handler

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

消息处理器定义

func NewP2FileTrashedV1Handler

func NewP2FileTrashedV1Handler(handler func(context.Context, *P2FileTrashedV1) error) *P2FileTrashedV1Handler

func (*P2FileTrashedV1Handler) Event

func (h *P2FileTrashedV1Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2FileTrashedV1Handler) Handle

func (h *P2FileTrashedV1Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type PatchFileCommentPathReqBodyBuilder

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

func NewPatchFileCommentPathReqBodyBuilder

func NewPatchFileCommentPathReqBodyBuilder() *PatchFileCommentPathReqBodyBuilder

func (*PatchFileCommentPathReqBodyBuilder) Build

func (*PatchFileCommentPathReqBodyBuilder) IsSolved

评论解决标志

示例值:true

type PatchFileCommentReq

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

type PatchFileCommentReqBody

type PatchFileCommentReqBody struct {
	IsSolved *bool `json:"is_solved,omitempty"` // 评论解决标志
}

type PatchFileCommentReqBodyBuilder

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

func NewPatchFileCommentReqBodyBuilder

func NewPatchFileCommentReqBodyBuilder() *PatchFileCommentReqBodyBuilder

func (*PatchFileCommentReqBodyBuilder) Build

func (*PatchFileCommentReqBodyBuilder) IsSolved

评论解决标志

示例值:true

type PatchFileCommentReqBuilder

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

func NewPatchFileCommentReqBuilder

func NewPatchFileCommentReqBuilder() *PatchFileCommentReqBuilder

func (*PatchFileCommentReqBuilder) Body

解决或恢复云文档中的评论。

func (*PatchFileCommentReqBuilder) Build

func (*PatchFileCommentReqBuilder) CommentId

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

评论ID

示例值:6916106822734578184

func (*PatchFileCommentReqBuilder) FileToken

func (builder *PatchFileCommentReqBuilder) FileToken(fileToken string) *PatchFileCommentReqBuilder

文档token

示例值:doccnGp4UK1UskrOEJwBXd3****

func (*PatchFileCommentReqBuilder) FileType

func (builder *PatchFileCommentReqBuilder) FileType(fileType string) *PatchFileCommentReqBuilder

文档类型

示例值:doc

type PatchFileCommentResp

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

func (*PatchFileCommentResp) Success

func (resp *PatchFileCommentResp) Success() bool

type PatchFileSubscriptionPathReqBodyBuilder

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

func NewPatchFileSubscriptionPathReqBodyBuilder

func NewPatchFileSubscriptionPathReqBodyBuilder() *PatchFileSubscriptionPathReqBodyBuilder

func (*PatchFileSubscriptionPathReqBodyBuilder) Build

func (*PatchFileSubscriptionPathReqBodyBuilder) FileType

文档类型

示例值:doc

func (*PatchFileSubscriptionPathReqBodyBuilder) IsSubscribe

是否订阅

示例值:true

type PatchFileSubscriptionReq

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

type PatchFileSubscriptionReqBody

type PatchFileSubscriptionReqBody struct {
	IsSubscribe *bool `json:"is_subscribe,omitempty"` // 是否订阅

	FileType *string `json:"file_type,omitempty"` // 文档类型
}

type PatchFileSubscriptionReqBodyBuilder

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

func NewPatchFileSubscriptionReqBodyBuilder

func NewPatchFileSubscriptionReqBodyBuilder() *PatchFileSubscriptionReqBodyBuilder

func (*PatchFileSubscriptionReqBodyBuilder) Build

func (*PatchFileSubscriptionReqBodyBuilder) FileType

文档类型

示例值:doc

func (*PatchFileSubscriptionReqBodyBuilder) IsSubscribe

是否订阅

示例值:true

type PatchFileSubscriptionReqBuilder

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

func NewPatchFileSubscriptionReqBuilder

func NewPatchFileSubscriptionReqBuilder() *PatchFileSubscriptionReqBuilder

func (*PatchFileSubscriptionReqBuilder) Body

根据订阅ID更新订阅状态

func (*PatchFileSubscriptionReqBuilder) Build

func (*PatchFileSubscriptionReqBuilder) FileToken

文档token

示例值:doxcnxxxxxxxxxxxxxxxxxxxxxx

func (*PatchFileSubscriptionReqBuilder) SubscriptionId

func (builder *PatchFileSubscriptionReqBuilder) SubscriptionId(subscriptionId string) *PatchFileSubscriptionReqBuilder

订阅关系ID

示例值:1234567890987654321

type PatchFileSubscriptionResp

type PatchFileSubscriptionResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *PatchFileSubscriptionRespData `json:"data"` // 业务数据
}

func (*PatchFileSubscriptionResp) Success

func (resp *PatchFileSubscriptionResp) Success() bool

type PatchFileSubscriptionRespData

type PatchFileSubscriptionRespData 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 PatchPermissionPublicReq

type PatchPermissionPublicReq struct {
	PermissionPublicRequest *PermissionPublicRequest `body:""`
	// contains filtered or unexported fields
}

type PatchPermissionPublicReqBuilder

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

func NewPatchPermissionPublicReqBuilder

func NewPatchPermissionPublicReqBuilder() *PatchPermissionPublicReqBuilder

func (*PatchPermissionPublicReqBuilder) Build

func (*PatchPermissionPublicReqBuilder) PermissionPublicRequest

func (builder *PatchPermissionPublicReqBuilder) PermissionPublicRequest(permissionPublicRequest *PermissionPublicRequest) *PatchPermissionPublicReqBuilder

该接口用于根据 filetoken 更新云文档的权限设置。

func (*PatchPermissionPublicReqBuilder) Token

文件的 token,获取方式见 [如何获取云文档资源相关 token](https://open.feishu.cn/document/ukTMukTMukTM/uczNzUjL3czM14yN3MTN#08bb5df6)

示例值:doccnBKgoMyY5OMbUG6FioTXuBe

func (*PatchPermissionPublicReqBuilder) Type

文件类型,需要与文件的 token 相匹配

示例值:doc

type PatchPermissionPublicResp

type PatchPermissionPublicResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *PatchPermissionPublicRespData `json:"data"` // 业务数据
}

func (*PatchPermissionPublicResp) Success

func (resp *PatchPermissionPublicResp) Success() bool

type PatchPermissionPublicRespData

type PatchPermissionPublicRespData struct {
	PermissionPublic *PermissionPublic `json:"permission_public,omitempty"` // 本次更新后的文档权限设置
}

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 SubscribeFileReq

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

type SubscribeFileReqBuilder

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

func NewSubscribeFileReqBuilder

func NewSubscribeFileReqBuilder() *SubscribeFileReqBuilder

func (*SubscribeFileReqBuilder) Build

func (builder *SubscribeFileReqBuilder) Build() *SubscribeFileReq

func (*SubscribeFileReqBuilder) EventType

func (builder *SubscribeFileReqBuilder) EventType(eventType string) *SubscribeFileReqBuilder

事件类型

示例值:file.created_in_folder_v1

func (*SubscribeFileReqBuilder) FileToken

func (builder *SubscribeFileReqBuilder) FileToken(fileToken string) *SubscribeFileReqBuilder

文档token

示例值:doccnxxxxxxxxxxxxxxxxxxxxxx

func (*SubscribeFileReqBuilder) FileType

func (builder *SubscribeFileReqBuilder) FileType(fileType string) *SubscribeFileReqBuilder

文档类型

示例值:doc

type SubscribeFileResp

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

func (*SubscribeFileResp) Success

func (resp *SubscribeFileResp) Success() bool

type TaskCheckFileReq

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

type TaskCheckFileReqBuilder

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

func NewTaskCheckFileReqBuilder

func NewTaskCheckFileReqBuilder() *TaskCheckFileReqBuilder

func (*TaskCheckFileReqBuilder) Build

func (builder *TaskCheckFileReqBuilder) Build() *TaskCheckFileReq

func (*TaskCheckFileReqBuilder) TaskId

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

文件相关异步任务id

示例值:12345

type TaskCheckFileResp

type TaskCheckFileResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *TaskCheckFileRespData `json:"data"` // 业务数据
}

func (*TaskCheckFileResp) Success

func (resp *TaskCheckFileResp) Success() bool

type TaskCheckFileRespData

type TaskCheckFileRespData struct {
	Status *string `json:"status,omitempty"` // 异步任务的执行状态,如果任务执行成功则返回success,如果任务执行失败则返回fail,如果任务还在执行中则返回process。
}

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 TransferOwnerPermissionMemberReq

type TransferOwnerPermissionMemberReq struct {
	Owner *Owner `body:""`
	// contains filtered or unexported fields
}

type TransferOwnerPermissionMemberReqBuilder

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

func NewTransferOwnerPermissionMemberReqBuilder

func NewTransferOwnerPermissionMemberReqBuilder() *TransferOwnerPermissionMemberReqBuilder

func (*TransferOwnerPermissionMemberReqBuilder) Build

func (*TransferOwnerPermissionMemberReqBuilder) NeedNotification

func (builder *TransferOwnerPermissionMemberReqBuilder) NeedNotification(needNotification bool) *TransferOwnerPermissionMemberReqBuilder

是否需要通知新 Owner

示例值:true

func (*TransferOwnerPermissionMemberReqBuilder) OldOwnerPerm

仅当 remove_old_owner = false 时,此参数才会生效 保留原文件所有者指定的权限角色

示例值:view

func (*TransferOwnerPermissionMemberReqBuilder) Owner

func (*TransferOwnerPermissionMemberReqBuilder) RemoveOldOwner

转移后是否需要移除原 Owner 的权限

示例值:false

func (*TransferOwnerPermissionMemberReqBuilder) StayPut

仅当内容不在共享文件夹中,此参数才会生效。如果设为false,系统会将该内容移至新所有者的个人空间根文件夹。如果设为 true,则留在原位置。

示例值:false

func (*TransferOwnerPermissionMemberReqBuilder) Token

文件的 token

示例值:doccnBKgoMyY5OMbUG6FioTXuBe

func (*TransferOwnerPermissionMemberReqBuilder) Type

文件类型,需要与文件的 token 相匹配

示例值:doc

type TransferOwnerPermissionMemberResp

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

func (*TransferOwnerPermissionMemberResp) Success

func (resp *TransferOwnerPermissionMemberResp) Success() bool

type UpdateFileCommentReplyPathReqBodyBuilder

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

func NewUpdateFileCommentReplyPathReqBodyBuilder

func NewUpdateFileCommentReplyPathReqBodyBuilder() *UpdateFileCommentReplyPathReqBodyBuilder

func (*UpdateFileCommentReplyPathReqBodyBuilder) Build

func (*UpdateFileCommentReplyPathReqBodyBuilder) Content

回复内容

示例值:

type UpdateFileCommentReplyReq

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

type UpdateFileCommentReplyReqBody

type UpdateFileCommentReplyReqBody struct {
	Content *ReplyContent `json:"content,omitempty"` // 回复内容
}

type UpdateFileCommentReplyReqBodyBuilder

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

func NewUpdateFileCommentReplyReqBodyBuilder

func NewUpdateFileCommentReplyReqBodyBuilder() *UpdateFileCommentReplyReqBodyBuilder

func (*UpdateFileCommentReplyReqBodyBuilder) Build

func (*UpdateFileCommentReplyReqBodyBuilder) Content

回复内容

示例值:

type UpdateFileCommentReplyReqBuilder

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

func NewUpdateFileCommentReplyReqBuilder

func NewUpdateFileCommentReplyReqBuilder() *UpdateFileCommentReplyReqBuilder

func (*UpdateFileCommentReplyReqBuilder) Body

更新云文档中的某条回复。

func (*UpdateFileCommentReplyReqBuilder) Build

func (*UpdateFileCommentReplyReqBuilder) CommentId

评论ID

示例值:6916106822734578184

func (*UpdateFileCommentReplyReqBuilder) FileToken

文档token

示例值:doccnHh7U87HOFpii5u5G*****

func (*UpdateFileCommentReplyReqBuilder) FileType

文档类型

示例值:doc

func (*UpdateFileCommentReplyReqBuilder) ReplyId

回复ID

示例值:6916106822734594568

func (*UpdateFileCommentReplyReqBuilder) UserIdType

此次调用中使用的用户ID的类型

示例值:

type UpdateFileCommentReplyResp

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

func (*UpdateFileCommentReplyResp) Success

func (resp *UpdateFileCommentReplyResp) Success() bool

type UpdatePermissionMemberReq

type UpdatePermissionMemberReq struct {
	BaseMember *BaseMember `body:""`
	// contains filtered or unexported fields
}

type UpdatePermissionMemberReqBuilder

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

func NewUpdatePermissionMemberReqBuilder

func NewUpdatePermissionMemberReqBuilder() *UpdatePermissionMemberReqBuilder

func (*UpdatePermissionMemberReqBuilder) BaseMember

该接口用于根据 filetoken 更新文档协作者的权限。

func (*UpdatePermissionMemberReqBuilder) Build

func (*UpdatePermissionMemberReqBuilder) MemberId

协作者 ID,与协作者 ID 类型需要对应

示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62

func (*UpdatePermissionMemberReqBuilder) NeedNotification

func (builder *UpdatePermissionMemberReqBuilder) NeedNotification(needNotification bool) *UpdatePermissionMemberReqBuilder

更新权限后是否通知对方;;**注意:** 使用`tenant_access_token`访问不支持该参数

示例值:false

func (*UpdatePermissionMemberReqBuilder) Token

文件的 token,获取方式见 [如何获取云文档资源相关 token](https://open.feishu.cn/document/ukTMukTMukTM/uczNzUjL3czM14yN3MTN#08bb5df6)

示例值:doccnBKgoMyY5OMbUG6FioTXuBe

func (*UpdatePermissionMemberReqBuilder) Type

文件类型,需要与文件的 token 相匹配

示例值:doc

type UpdatePermissionMemberResp

type UpdatePermissionMemberResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *UpdatePermissionMemberRespData `json:"data"` // 业务数据
}

func (*UpdatePermissionMemberResp) Success

func (resp *UpdatePermissionMemberResp) Success() bool

type UpdatePermissionMemberRespData

type UpdatePermissionMemberRespData struct {
	Member *BaseMember `json:"member,omitempty"` // 本次更新权限的用户信息
}

type UpdatePermissionPublicPasswordReq

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

type UpdatePermissionPublicPasswordReqBuilder

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

func NewUpdatePermissionPublicPasswordReqBuilder

func NewUpdatePermissionPublicPasswordReqBuilder() *UpdatePermissionPublicPasswordReqBuilder

func (*UpdatePermissionPublicPasswordReqBuilder) Build

func (*UpdatePermissionPublicPasswordReqBuilder) Token

文件的 token

示例值:doccnBKgoMyY5OMbUG6FioTXuBe

func (*UpdatePermissionPublicPasswordReqBuilder) Type

文件类型,需要与文件的 token 相匹配

示例值:doc

type UpdatePermissionPublicPasswordResp

type UpdatePermissionPublicPasswordResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *UpdatePermissionPublicPasswordRespData `json:"data"` // 业务数据
}

func (*UpdatePermissionPublicPasswordResp) Success

func (resp *UpdatePermissionPublicPasswordResp) Success() bool

type UpdatePermissionPublicPasswordRespData

type UpdatePermissionPublicPasswordRespData struct {
	Password *string `json:"password,omitempty"` // 密码
}

type UploadAllFilePathReqBodyBuilder

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

func NewUploadAllFilePathReqBodyBuilder

func NewUploadAllFilePathReqBodyBuilder() *UploadAllFilePathReqBodyBuilder

func (*UploadAllFilePathReqBodyBuilder) Build

func (*UploadAllFilePathReqBodyBuilder) Checksum

文件adler32校验和(可选)。

示例值:123423882374238912356

func (*UploadAllFilePathReqBodyBuilder) FileName

文件名。

示例值:demo.pdf

func (*UploadAllFilePathReqBodyBuilder) FilePath

文件二进制内容。

示例值:file binary

func (*UploadAllFilePathReqBodyBuilder) ParentNode

文件夹token,;获取方式见 [概述](https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/files/guide/introduction)

示例值:fldbcO1UuPz8VwnpPx5a92abcef

func (*UploadAllFilePathReqBodyBuilder) ParentType

上传点类型。

示例值:explorer

func (*UploadAllFilePathReqBodyBuilder) Size

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

示例值:1024

type UploadAllFileReq

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

type UploadAllFileReqBody

type UploadAllFileReqBody struct {
	FileName *string `json:"file_name,omitempty"` // 文件名。

	ParentType *string `json:"parent_type,omitempty"` // 上传点类型。

	ParentNode *string `json:"parent_node,omitempty"` // 文件夹token,;获取方式见 [概述](https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/files/guide/introduction)

	Size *int `json:"size,omitempty"` // 文件大小(以字节为单位)。

	Checksum *string `json:"checksum,omitempty"` // 文件adler32校验和(可选)。

	File io.Reader `json:"file,omitempty"` // 文件二进制内容。
}

type UploadAllFileReqBodyBuilder

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

func NewUploadAllFileReqBodyBuilder

func NewUploadAllFileReqBodyBuilder() *UploadAllFileReqBodyBuilder

func (*UploadAllFileReqBodyBuilder) Build

func (*UploadAllFileReqBodyBuilder) Checksum

func (builder *UploadAllFileReqBodyBuilder) Checksum(checksum string) *UploadAllFileReqBodyBuilder

文件adler32校验和(可选)。

示例值:123423882374238912356

func (*UploadAllFileReqBodyBuilder) File

文件二进制内容。

示例值:file binary

func (*UploadAllFileReqBodyBuilder) FileName

func (builder *UploadAllFileReqBodyBuilder) FileName(fileName string) *UploadAllFileReqBodyBuilder

文件名。

示例值:demo.pdf

func (*UploadAllFileReqBodyBuilder) ParentNode

func (builder *UploadAllFileReqBodyBuilder) ParentNode(parentNode string) *UploadAllFileReqBodyBuilder

文件夹token,;获取方式见 [概述](https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/files/guide/introduction)

示例值:fldbcO1UuPz8VwnpPx5a92abcef

func (*UploadAllFileReqBodyBuilder) ParentType

func (builder *UploadAllFileReqBodyBuilder) ParentType(parentType string) *UploadAllFileReqBodyBuilder

上传点类型。

示例值:explorer

func (*UploadAllFileReqBodyBuilder) Size

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

示例值:1024

type UploadAllFileReqBuilder

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

func NewUploadAllFileReqBuilder

func NewUploadAllFileReqBuilder() *UploadAllFileReqBuilder

func (*UploadAllFileReqBuilder) Body

向云空间指定目录下上传一个小文件。

func (*UploadAllFileReqBuilder) Build

func (builder *UploadAllFileReqBuilder) Build() *UploadAllFileReq

type UploadAllFileResp

type UploadAllFileResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *UploadAllFileRespData `json:"data"` // 业务数据
}

func (*UploadAllFileResp) Success

func (resp *UploadAllFileResp) Success() bool

type UploadAllFileRespData

type UploadAllFileRespData struct {
	FileToken *string `json:"file_token,omitempty"` // 新创建文件的 token
}

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 UploadFinishFilePathReqBodyBuilder

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

func NewUploadFinishFilePathReqBodyBuilder

func NewUploadFinishFilePathReqBodyBuilder() *UploadFinishFilePathReqBodyBuilder

func (*UploadFinishFilePathReqBodyBuilder) BlockNum

分片数量

示例值:1

func (*UploadFinishFilePathReqBodyBuilder) Build

func (*UploadFinishFilePathReqBodyBuilder) UploadId

分片上传事务ID

示例值:7111211691345512356

type UploadFinishFileReq

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

type UploadFinishFileReqBody

type UploadFinishFileReqBody struct {
	UploadId *string `json:"upload_id,omitempty"` // 分片上传事务ID

	BlockNum *int `json:"block_num,omitempty"` // 分片数量
}

type UploadFinishFileReqBodyBuilder

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

func NewUploadFinishFileReqBodyBuilder

func NewUploadFinishFileReqBodyBuilder() *UploadFinishFileReqBodyBuilder

func (*UploadFinishFileReqBodyBuilder) BlockNum

分片数量

示例值:1

func (*UploadFinishFileReqBodyBuilder) Build

func (*UploadFinishFileReqBodyBuilder) UploadId

分片上传事务ID

示例值:7111211691345512356

type UploadFinishFileReqBuilder

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

func NewUploadFinishFileReqBuilder

func NewUploadFinishFileReqBuilder() *UploadFinishFileReqBuilder

func (*UploadFinishFileReqBuilder) Body

触发完成上传。

func (*UploadFinishFileReqBuilder) Build

type UploadFinishFileResp

type UploadFinishFileResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *UploadFinishFileRespData `json:"data"` // 业务数据
}

func (*UploadFinishFileResp) Success

func (resp *UploadFinishFileResp) Success() bool

type UploadFinishFileRespData

type UploadFinishFileRespData struct {
	FileToken *string `json:"file_token,omitempty"` // 新创建的文件token
}

type UploadFinishMediaPathReqBodyBuilder

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

func NewUploadFinishMediaPathReqBodyBuilder

func NewUploadFinishMediaPathReqBodyBuilder() *UploadFinishMediaPathReqBodyBuilder

func (*UploadFinishMediaPathReqBodyBuilder) BlockNum

分片数量

示例值:1

func (*UploadFinishMediaPathReqBodyBuilder) Build

func (*UploadFinishMediaPathReqBodyBuilder) UploadId

分片上传事务ID

示例值:7111211691345512356

type UploadFinishMediaReq

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

type UploadFinishMediaReqBody

type UploadFinishMediaReqBody struct {
	UploadId *string `json:"upload_id,omitempty"` // 分片上传事务ID

	BlockNum *int `json:"block_num,omitempty"` // 分片数量
}

type UploadFinishMediaReqBodyBuilder

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

func NewUploadFinishMediaReqBodyBuilder

func NewUploadFinishMediaReqBodyBuilder() *UploadFinishMediaReqBodyBuilder

func (*UploadFinishMediaReqBodyBuilder) BlockNum

分片数量

示例值:1

func (*UploadFinishMediaReqBodyBuilder) Build

func (*UploadFinishMediaReqBodyBuilder) UploadId

分片上传事务ID

示例值:7111211691345512356

type UploadFinishMediaReqBuilder

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

func NewUploadFinishMediaReqBuilder

func NewUploadFinishMediaReqBuilder() *UploadFinishMediaReqBuilder

func (*UploadFinishMediaReqBuilder) Body

触发完成上传。

func (*UploadFinishMediaReqBuilder) Build

type UploadFinishMediaResp

type UploadFinishMediaResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *UploadFinishMediaRespData `json:"data"` // 业务数据
}

func (*UploadFinishMediaResp) Success

func (resp *UploadFinishMediaResp) Success() bool

type UploadFinishMediaRespData

type UploadFinishMediaRespData 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 UploadPartFilePathReqBodyBuilder

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

func NewUploadPartFilePathReqBodyBuilder

func NewUploadPartFilePathReqBodyBuilder() *UploadPartFilePathReqBodyBuilder

func (*UploadPartFilePathReqBodyBuilder) Build

func (*UploadPartFilePathReqBodyBuilder) Checksum

文件分块adler32校验和(可选)。

示例值:12342388237783212356

func (*UploadPartFilePathReqBodyBuilder) FilePath

文件分片二进制内容。

示例值:file binary

func (*UploadPartFilePathReqBodyBuilder) Seq

块号,从0开始计数。

示例值:0

func (*UploadPartFilePathReqBodyBuilder) Size

块大小(以字节为单位)。

示例值:4194304

func (*UploadPartFilePathReqBodyBuilder) UploadId

分片上传事务ID。

示例值:7111211691345512356

type UploadPartFileReq

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

type UploadPartFileReqBody

type UploadPartFileReqBody struct {
	UploadId *string `json:"upload_id,omitempty"` // 分片上传事务ID。

	Seq *int `json:"seq,omitempty"` // 块号,从0开始计数。

	Size *int `json:"size,omitempty"` // 块大小(以字节为单位)。

	Checksum *string `json:"checksum,omitempty"` // 文件分块adler32校验和(可选)。

	File io.Reader `json:"file,omitempty"` // 文件分片二进制内容。
}

type UploadPartFileReqBodyBuilder

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

func NewUploadPartFileReqBodyBuilder

func NewUploadPartFileReqBodyBuilder() *UploadPartFileReqBodyBuilder

func (*UploadPartFileReqBodyBuilder) Build

func (*UploadPartFileReqBodyBuilder) Checksum

文件分块adler32校验和(可选)。

示例值:12342388237783212356

func (*UploadPartFileReqBodyBuilder) File

文件分片二进制内容。

示例值:file binary

func (*UploadPartFileReqBodyBuilder) Seq

块号,从0开始计数。

示例值:0

func (*UploadPartFileReqBodyBuilder) Size

块大小(以字节为单位)。

示例值:4194304

func (*UploadPartFileReqBodyBuilder) UploadId

分片上传事务ID。

示例值:7111211691345512356

type UploadPartFileReqBuilder

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

func NewUploadPartFileReqBuilder

func NewUploadPartFileReqBuilder() *UploadPartFileReqBuilder

func (*UploadPartFileReqBuilder) Body

上传对应的文件块。

func (*UploadPartFileReqBuilder) Build

func (builder *UploadPartFileReqBuilder) Build() *UploadPartFileReq

type UploadPartFileResp

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

func (*UploadPartFileResp) Success

func (resp *UploadPartFileResp) Success() bool

type UploadPartMediaPathReqBodyBuilder

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

func NewUploadPartMediaPathReqBodyBuilder

func NewUploadPartMediaPathReqBodyBuilder() *UploadPartMediaPathReqBodyBuilder

func (*UploadPartMediaPathReqBodyBuilder) Build

func (*UploadPartMediaPathReqBodyBuilder) Checksum

文件分块adler32校验和(可选)。

示例值:12345678

func (*UploadPartMediaPathReqBodyBuilder) FilePath

文件分片二进制内容。

示例值:file binary

func (*UploadPartMediaPathReqBodyBuilder) Seq

块号,从0开始计数。

示例值:0

func (*UploadPartMediaPathReqBodyBuilder) Size

块大小(以字节为单位)。

示例值:4194304

func (*UploadPartMediaPathReqBodyBuilder) UploadId

分片上传事务ID。

示例值:7111211691345512356

type UploadPartMediaReq

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

type UploadPartMediaReqBody

type UploadPartMediaReqBody struct {
	UploadId *string `json:"upload_id,omitempty"` // 分片上传事务ID。

	Seq *int `json:"seq,omitempty"` // 块号,从0开始计数。

	Size *int `json:"size,omitempty"` // 块大小(以字节为单位)。

	Checksum *string `json:"checksum,omitempty"` // 文件分块adler32校验和(可选)。

	File io.Reader `json:"file,omitempty"` // 文件分片二进制内容。
}

type UploadPartMediaReqBodyBuilder

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

func NewUploadPartMediaReqBodyBuilder

func NewUploadPartMediaReqBodyBuilder() *UploadPartMediaReqBodyBuilder

func (*UploadPartMediaReqBodyBuilder) Build

func (*UploadPartMediaReqBodyBuilder) Checksum

文件分块adler32校验和(可选)。

示例值:12345678

func (*UploadPartMediaReqBodyBuilder) File

文件分片二进制内容。

示例值:file binary

func (*UploadPartMediaReqBodyBuilder) Seq

块号,从0开始计数。

示例值:0

func (*UploadPartMediaReqBodyBuilder) Size

块大小(以字节为单位)。

示例值:4194304

func (*UploadPartMediaReqBodyBuilder) UploadId

分片上传事务ID。

示例值:7111211691345512356

type UploadPartMediaReqBuilder

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

func NewUploadPartMediaReqBuilder

func NewUploadPartMediaReqBuilder() *UploadPartMediaReqBuilder

func (*UploadPartMediaReqBuilder) Body

上传对应的文件块。

func (*UploadPartMediaReqBuilder) Build

type UploadPartMediaResp

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

func (*UploadPartMediaResp) Success

func (resp *UploadPartMediaResp) Success() bool

type UploadPrepareFileReq

type UploadPrepareFileReq struct {
	FileUploadInfo *FileUploadInfo `body:""`
	// contains filtered or unexported fields
}

type UploadPrepareFileReqBuilder

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

func NewUploadPrepareFileReqBuilder

func NewUploadPrepareFileReqBuilder() *UploadPrepareFileReqBuilder

func (*UploadPrepareFileReqBuilder) Build

func (*UploadPrepareFileReqBuilder) FileUploadInfo

func (builder *UploadPrepareFileReqBuilder) FileUploadInfo(fileUploadInfo *FileUploadInfo) *UploadPrepareFileReqBuilder

发送初始化请求获取上传事务ID和分块策略,目前是以4MB大小进行定长分片。

type UploadPrepareFileResp

type UploadPrepareFileResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *UploadPrepareFileRespData `json:"data"` // 业务数据
}

func (*UploadPrepareFileResp) Success

func (resp *UploadPrepareFileResp) Success() bool

type UploadPrepareFileRespData

type UploadPrepareFileRespData struct {
	UploadId *string `json:"upload_id,omitempty"` // 分片上传事务ID

	BlockSize *int `json:"block_size,omitempty"` // 分片大小策略

	BlockNum *int `json:"block_num,omitempty"` // 分片数量
}

type UploadPrepareMediaReq

type UploadPrepareMediaReq struct {
	MediaUploadInfo *MediaUploadInfo `body:""`
	// contains filtered or unexported fields
}

type UploadPrepareMediaReqBuilder

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

func NewUploadPrepareMediaReqBuilder

func NewUploadPrepareMediaReqBuilder() *UploadPrepareMediaReqBuilder

func (*UploadPrepareMediaReqBuilder) Build

func (*UploadPrepareMediaReqBuilder) MediaUploadInfo

func (builder *UploadPrepareMediaReqBuilder) MediaUploadInfo(mediaUploadInfo *MediaUploadInfo) *UploadPrepareMediaReqBuilder

发送初始化请求获取上传事务ID和分块策略,目前是以4MB大小进行定长分片。

type UploadPrepareMediaResp

type UploadPrepareMediaResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *UploadPrepareMediaRespData `json:"data"` // 业务数据
}

func (*UploadPrepareMediaResp) Success

func (resp *UploadPrepareMediaResp) Success() bool

type UploadPrepareMediaRespData

type UploadPrepareMediaRespData struct {
	UploadId *string `json:"upload_id,omitempty"` // 分片上传事务ID

	BlockSize *int `json:"block_size,omitempty"` // 分片大小策略

	BlockNum *int `json:"block_num,omitempty"` // 分片数量
}

type UserId

type UserId struct {
	UserId *string `json:"user_id,omitempty"` //

	OpenId *string `json:"open_id,omitempty"` //

	UnionId *string `json:"union_id,omitempty"` //
}

type UserIdBuilder

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

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 V1

type V1 struct {
	ExportTask               *exportTask               // 导出
	File                     *file                     // 文件
	FileComment              *fileComment              // 评论
	FileCommentReply         *fileCommentReply         // 评论
	FileStatistics           *fileStatistics           // file.statistics
	FileSubscription         *fileSubscription         // 订阅
	FileVersion              *fileVersion              // 文档版本
	FileViewRecord           *fileViewRecord           // file.view_record
	ImportTask               *importTask               // 导入
	Media                    *media                    // 分片上传
	Meta                     *meta                     // meta
	PermissionMember         *permissionMember         // 成员
	PermissionPublic         *permissionPublic         // 设置
	PermissionPublicPassword *permissionPublicPassword // permission.public.password
}

func New

func New(config *larkcore.Config) *V1

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