larkwiki

package
v3.3.7 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 5 Imported by: 12

Documentation

Index

Constants

View Source
const (
	OpenSharingOpen   = "open"   // 打开
	OpenSharingClosed = "closed" // 关闭
)
View Source
const (
	ShowLanguageLangZH   = "zh"    // 简体中文
	ShowLanguageLangID   = "id"    // 印尼语
	ShowLanguageLangDE   = "de"    // 德语
	ShowLanguageLangEN   = "en"    // 英语
	ShowLanguageLangES   = "es"    // 西班牙语
	ShowLanguageLangFR   = "fr"    // 法语
	ShowLanguageLangIT   = "it"    // 意大利语
	ShowLanguageLangPT   = "pt"    // 葡萄牙语
	ShowLanguageLangVI   = "vi"    // 越南语
	ShowLanguageLangRU   = "ru"    // 俄语
	ShowLanguageLangHI   = "hi"    // 印地语
	ShowLanguageLangTH   = "th"    // 泰语
	ShowLanguageLangKO   = "ko"    // 韩语
	ShowLanguageLangJA   = "ja"    // 日语
	ShowLanguageLangZHHK = "zh-HK" // 繁体中文(中国香港)
	ShowLanguageLangZHTW = "zh-TW" // 繁体中文(中国台湾)
)
View Source
const (
	ObjTypeForQueryObjTypeDoc      = "doc"      // 旧版文档
	ObjTypeForQueryObjTypeDocx     = "docx"     // 新版文档
	ObjTypeForQueryObjTypeSheet    = "sheet"    // 表格
	ObjTypeForQueryObjTypeMindNote = "mindnote" // 思维导图
	ObjTypeForQueryObjTypeBitable  = "bitable"  // 多维表格
	ObjTypeForQueryObjTypeFile     = "file"     // 文件
	ObjTypeForQueryObjTypeSlides   = "slides"   // 幻灯片
	ObjTypeForQueryObjTypeWiki     = "wiki"     // 知识库节点
)
View Source
const (
	ShowLanguageListSpaceLangZH   = "zh"    // 简体中文
	ShowLanguageListSpaceLangID   = "id"    // 印尼语
	ShowLanguageListSpaceLangDE   = "de"    // 德语
	ShowLanguageListSpaceLangEN   = "en"    // 英语
	ShowLanguageListSpaceLangES   = "es"    // 西班牙语
	ShowLanguageListSpaceLangFR   = "fr"    // 法语
	ShowLanguageListSpaceLangIT   = "it"    // 意大利语
	ShowLanguageListSpaceLangPT   = "pt"    // 葡萄牙语
	ShowLanguageListSpaceLangVI   = "vi"    // 越南语
	ShowLanguageListSpaceLangRU   = "ru"    // 俄语
	ShowLanguageListSpaceLangHI   = "hi"    // 印地语
	ShowLanguageListSpaceLangTH   = "th"    // 泰语
	ShowLanguageListSpaceLangKO   = "ko"    // 韩语
	ShowLanguageListSpaceLangJA   = "ja"    // 日语
	ShowLanguageListSpaceLangZHHK = "zh-HK" // 繁体中文(中国香港)
	ShowLanguageListSpaceLangZHTW = "zh-TW" // 繁体中文(中国台湾)
)
View Source
const (
	TypeUser       = "user"       // 用户
	TypeChat       = "chat"       // 群组
	TypeDepartment = "department" // 组织架构
)
View Source
const (
	ObjTypeObjTypeDoc      = "doc"      // 旧版文档
	ObjTypeObjTypeSheet    = "sheet"    // 表格
	ObjTypeObjTypeMindNote = "mindnote" // 思维导图
	ObjTypeObjTypeBitable  = "bitable"  // 多维表格
	ObjTypeObjTypeFile     = "file"     // 文件
	ObjTypeObjTypeDocx     = "docx"     // 新版文档
	ObjTypeObjTypeSlides   = "slides"   // 幻灯片
)
View Source
const (
	NodeTypeNodeTypeEntity   = "origin"   // 实体
	NodeTypeNodeTypeShortCut = "shortcut" // 快捷方式
)
View Source
const (
	MoveDocsToWikiObjTypeObjTypeDoc      = "doc"      // doc(文档)
	MoveDocsToWikiObjTypeObjTypeSheet    = "sheet"    // sheet(表格)
	MoveDocsToWikiObjTypeObjTypeBitable  = "bitable"  // bitable(多维表格)
	MoveDocsToWikiObjTypeObjTypeMindNote = "mindnote" // mindnote(思维导图)
	MoveDocsToWikiObjTypeObjTypeDocx     = "docx"     // docx
	MoveDocsToWikiObjTypeObjTypeFile     = "file"     // file (文件)
	MoveDocsToWikiObjTypeObjTypeSlides   = "slides"   // slides(幻灯片)
)
View Source
const (
	TaskTypeMove = "move" // MoveDocsToWiki任务
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CopySpaceNodePathReqBodyBuilder

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

func NewCopySpaceNodePathReqBodyBuilder

func NewCopySpaceNodePathReqBodyBuilder() *CopySpaceNodePathReqBodyBuilder

func (*CopySpaceNodePathReqBodyBuilder) Build

func (*CopySpaceNodePathReqBodyBuilder) TargetParentToken

func (builder *CopySpaceNodePathReqBodyBuilder) TargetParentToken(targetParentToken string) *CopySpaceNodePathReqBodyBuilder

目标父节点token

示例值:wikcnKQ1k3p******8Vabce

func (*CopySpaceNodePathReqBodyBuilder) TargetSpaceId

func (builder *CopySpaceNodePathReqBodyBuilder) TargetSpaceId(targetSpaceId string) *CopySpaceNodePathReqBodyBuilder

目标知识空间id

示例值:6946843325487912356

func (*CopySpaceNodePathReqBodyBuilder) Title

复制后的新标题。如果填空,则新标题为空。如果不填,则使用原节点标题。

示例值:新标题。

type CopySpaceNodeReq

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

type CopySpaceNodeReqBody

type CopySpaceNodeReqBody struct {
	TargetParentToken *string `json:"target_parent_token,omitempty"` // 目标父节点token
	TargetSpaceId     *string `json:"target_space_id,omitempty"`     // 目标知识空间id
	Title             *string `json:"title,omitempty"`               // 复制后的新标题。如果填空,则新标题为空。如果不填,则使用原节点标题。
}

type CopySpaceNodeReqBodyBuilder

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

func NewCopySpaceNodeReqBodyBuilder

func NewCopySpaceNodeReqBodyBuilder() *CopySpaceNodeReqBodyBuilder

func (*CopySpaceNodeReqBodyBuilder) Build

func (*CopySpaceNodeReqBodyBuilder) TargetParentToken

func (builder *CopySpaceNodeReqBodyBuilder) TargetParentToken(targetParentToken string) *CopySpaceNodeReqBodyBuilder

目标父节点token

示例值:wikcnKQ1k3p******8Vabce

func (*CopySpaceNodeReqBodyBuilder) TargetSpaceId

func (builder *CopySpaceNodeReqBodyBuilder) TargetSpaceId(targetSpaceId string) *CopySpaceNodeReqBodyBuilder

目标知识空间id

示例值:6946843325487912356

func (*CopySpaceNodeReqBodyBuilder) Title

复制后的新标题。如果填空,则新标题为空。如果不填,则使用原节点标题。

示例值:新标题。

type CopySpaceNodeReqBuilder

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

func NewCopySpaceNodeReqBuilder

func NewCopySpaceNodeReqBuilder() *CopySpaceNodeReqBuilder

func (*CopySpaceNodeReqBuilder) Body

此接口用于在知识空间创建节点副本到指定位置。

func (*CopySpaceNodeReqBuilder) Build

func (builder *CopySpaceNodeReqBuilder) Build() *CopySpaceNodeReq

func (*CopySpaceNodeReqBuilder) NodeToken

func (builder *CopySpaceNodeReqBuilder) NodeToken(nodeToken string) *CopySpaceNodeReqBuilder

节点token

示例值:wikcnKQ1k3p******8Vabce

func (*CopySpaceNodeReqBuilder) SpaceId

func (builder *CopySpaceNodeReqBuilder) SpaceId(spaceId string) *CopySpaceNodeReqBuilder

知识空间id

示例值:6946843325487912356

type CopySpaceNodeResp

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

func (*CopySpaceNodeResp) Success

func (resp *CopySpaceNodeResp) Success() bool

type CopySpaceNodeRespData

type CopySpaceNodeRespData struct {
	Node *Node `json:"node,omitempty"` // 创建副本后的新节点
}

type CreateSpaceMemberReq

type CreateSpaceMemberReq struct {
	Member *Member `body:""`
	// contains filtered or unexported fields
}

type CreateSpaceMemberReqBuilder

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

func NewCreateSpaceMemberReqBuilder

func NewCreateSpaceMemberReqBuilder() *CreateSpaceMemberReqBuilder

func (*CreateSpaceMemberReqBuilder) Build

func (*CreateSpaceMemberReqBuilder) Member

添加知识空间成员或管理员。

func (*CreateSpaceMemberReqBuilder) NeedNotification

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

添加权限后是否通知对方

示例值:true

func (*CreateSpaceMemberReqBuilder) SpaceId

知识空间id

示例值:1565676577122621

type CreateSpaceMemberResp

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

func (*CreateSpaceMemberResp) Success

func (resp *CreateSpaceMemberResp) Success() bool

type CreateSpaceMemberRespData

type CreateSpaceMemberRespData struct {
	Member *Member `json:"member,omitempty"` // 知识空间成员
}

type CreateSpaceNodeReq

type CreateSpaceNodeReq struct {
	Node *Node `body:""`
	// contains filtered or unexported fields
}

type CreateSpaceNodeReqBuilder

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

func NewCreateSpaceNodeReqBuilder

func NewCreateSpaceNodeReqBuilder() *CreateSpaceNodeReqBuilder

func (*CreateSpaceNodeReqBuilder) Build

func (*CreateSpaceNodeReqBuilder) Node

此接口用于在知识节点里创建[节点](https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/wiki-overview)到指定位置。

func (*CreateSpaceNodeReqBuilder) SpaceId

func (builder *CreateSpaceNodeReqBuilder) SpaceId(spaceId string) *CreateSpaceNodeReqBuilder

知识空间id;[获取方式](https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/wiki-overview)

示例值:6704147935988285963

type CreateSpaceNodeResp

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

func (*CreateSpaceNodeResp) Success

func (resp *CreateSpaceNodeResp) Success() bool

type CreateSpaceNodeRespData

type CreateSpaceNodeRespData struct {
	Node *Node `json:"node,omitempty"` // 节点
}

type CreateSpaceReq

type CreateSpaceReq struct {
	Space *Space `body:""`
	// contains filtered or unexported fields
}

type CreateSpaceReqBuilder

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

func NewCreateSpaceReqBuilder

func NewCreateSpaceReqBuilder() *CreateSpaceReqBuilder

func (*CreateSpaceReqBuilder) Build

func (builder *CreateSpaceReqBuilder) Build() *CreateSpaceReq

func (*CreateSpaceReqBuilder) Space

func (builder *CreateSpaceReqBuilder) Space(space *Space) *CreateSpaceReqBuilder

此接口用于创建知识空间

type CreateSpaceResp

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

func (*CreateSpaceResp) Success

func (resp *CreateSpaceResp) Success() bool

type CreateSpaceRespData

type CreateSpaceRespData struct {
	Space *Space `json:"space,omitempty"` // 知识空间
}

type DeleteSpaceMemberReq

type DeleteSpaceMemberReq struct {
	Member *Member `body:""`
	// contains filtered or unexported fields
}

type DeleteSpaceMemberReqBuilder

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

func NewDeleteSpaceMemberReqBuilder

func NewDeleteSpaceMemberReqBuilder() *DeleteSpaceMemberReqBuilder

func (*DeleteSpaceMemberReqBuilder) Build

func (*DeleteSpaceMemberReqBuilder) Member

此接口用于删除知识空间成员或管理员。

func (*DeleteSpaceMemberReqBuilder) MemberId

func (builder *DeleteSpaceMemberReqBuilder) MemberId(memberId string) *DeleteSpaceMemberReqBuilder

成员id,值的类型由请求体的 member_type 参数决定

示例值:g64fb7g7

func (*DeleteSpaceMemberReqBuilder) SpaceId

知识空间id

示例值:7008061636015554580

type DeleteSpaceMemberResp

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

func (*DeleteSpaceMemberResp) Success

func (resp *DeleteSpaceMemberResp) Success() bool

type DeleteSpaceMemberRespData

type DeleteSpaceMemberRespData struct {
	Member *Member `json:"member,omitempty"` // 成员信息
}

type DepartmentId added in v3.0.29

type DepartmentId struct {
	DepartmentId     *string `json:"department_id,omitempty"`      //
	OpenDepartmentId *string `json:"open_department_id,omitempty"` //
}

type DepartmentIdBuilder added in v3.0.29

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

func NewDepartmentIdBuilder added in v3.0.29

func NewDepartmentIdBuilder() *DepartmentIdBuilder

func (*DepartmentIdBuilder) Build added in v3.0.29

func (builder *DepartmentIdBuilder) Build() *DepartmentId

func (*DepartmentIdBuilder) DepartmentId added in v3.0.29

func (builder *DepartmentIdBuilder) DepartmentId(departmentId string) *DepartmentIdBuilder

示例值:

func (*DepartmentIdBuilder) OpenDepartmentId added in v3.0.29

func (builder *DepartmentIdBuilder) OpenDepartmentId(openDepartmentId string) *DepartmentIdBuilder

示例值:

type GetNodeSpaceReq

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

type GetNodeSpaceReqBuilder

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

func NewGetNodeSpaceReqBuilder

func NewGetNodeSpaceReqBuilder() *GetNodeSpaceReqBuilder

func (*GetNodeSpaceReqBuilder) Build

func (builder *GetNodeSpaceReqBuilder) Build() *GetNodeSpaceReq

func (*GetNodeSpaceReqBuilder) ObjType added in v3.0.29

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

文档类型

示例值:docx

func (*GetNodeSpaceReqBuilder) Token

func (builder *GetNodeSpaceReqBuilder) Token(token string) *GetNodeSpaceReqBuilder

文档的节点token

示例值:wikcnKQ1k3p******8Vabcef

type GetNodeSpaceResp

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

func (*GetNodeSpaceResp) Success

func (resp *GetNodeSpaceResp) Success() bool

type GetNodeSpaceRespData

type GetNodeSpaceRespData struct {
	Node *Node `json:"node,omitempty"` // 节点信息
}

type GetSpaceReq

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

type GetSpaceReqBuilder

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

func NewGetSpaceReqBuilder

func NewGetSpaceReqBuilder() *GetSpaceReqBuilder

func (*GetSpaceReqBuilder) Build

func (builder *GetSpaceReqBuilder) Build() *GetSpaceReq

func (*GetSpaceReqBuilder) Lang added in v3.1.3

func (builder *GetSpaceReqBuilder) Lang(lang string) *GetSpaceReqBuilder

当查询个人文档库时,指定返回的文档库名称展示语言。可选值有:zh, id, de, en, es, fr, it, pt, vi, ru, hi, th, ko, ja, zh-HK, zh-TW。

示例值:zh

func (*GetSpaceReqBuilder) SpaceId

func (builder *GetSpaceReqBuilder) SpaceId(spaceId string) *GetSpaceReqBuilder

知识空间id

示例值:6870403571079249922

type GetSpaceResp

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

func (*GetSpaceResp) Success

func (resp *GetSpaceResp) Success() bool

type GetSpaceRespData

type GetSpaceRespData struct {
	Space *Space `json:"space,omitempty"` // 知识空间
}

type GetTaskReq

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

type GetTaskReqBuilder

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

func NewGetTaskReqBuilder

func NewGetTaskReqBuilder() *GetTaskReqBuilder

func (*GetTaskReqBuilder) Build

func (builder *GetTaskReqBuilder) Build() *GetTaskReq

func (*GetTaskReqBuilder) TaskId

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

任务id

示例值:7037044037068177428-075c9481e6a0007c1df689dfbe5b55a08b6b06f7

func (*GetTaskReqBuilder) TaskType

func (builder *GetTaskReqBuilder) TaskType(taskType string) *GetTaskReqBuilder

任务类型

示例值:move

type GetTaskResp

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

func (*GetTaskResp) Success

func (resp *GetTaskResp) Success() bool

type GetTaskRespData

type GetTaskRespData struct {
	Task *TaskResult `json:"task,omitempty"` // 任务结果
}

type ListSpaceIterator

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

func (*ListSpaceIterator) Next

func (iterator *ListSpaceIterator) Next() (bool, *Space, error)

func (*ListSpaceIterator) NextPageToken

func (iterator *ListSpaceIterator) NextPageToken() *string

type ListSpaceMemberReq added in v3.3.1

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

type ListSpaceMemberReqBuilder added in v3.3.1

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

func NewListSpaceMemberReqBuilder added in v3.3.1

func NewListSpaceMemberReqBuilder() *ListSpaceMemberReqBuilder

func (*ListSpaceMemberReqBuilder) Build added in v3.3.1

func (*ListSpaceMemberReqBuilder) PageSize added in v3.3.1

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

分页大小

示例值:1

func (*ListSpaceMemberReqBuilder) PageToken added in v3.3.1

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

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

示例值:ou_12345

func (*ListSpaceMemberReqBuilder) SpaceId added in v3.3.1

func (builder *ListSpaceMemberReqBuilder) SpaceId(spaceId string) *ListSpaceMemberReqBuilder

知识空间id

示例值:7375263209671884820

type ListSpaceMemberResp added in v3.3.1

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

func (*ListSpaceMemberResp) Success added in v3.3.1

func (resp *ListSpaceMemberResp) Success() bool

type ListSpaceMemberRespData added in v3.3.1

type ListSpaceMemberRespData struct {
	Members   []*Member `json:"members,omitempty"`    // 空间成员列表
	PageToken *string   `json:"page_token,omitempty"` // 分页标记
	HasMore   *bool     `json:"has_more,omitempty"`   // 是否有下一页
}

type ListSpaceNodeIterator

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

func (*ListSpaceNodeIterator) Next

func (iterator *ListSpaceNodeIterator) Next() (bool, *Node, error)

func (*ListSpaceNodeIterator) NextPageToken

func (iterator *ListSpaceNodeIterator) NextPageToken() *string

type ListSpaceNodeReq

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

type ListSpaceNodeReqBuilder

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

func NewListSpaceNodeReqBuilder

func NewListSpaceNodeReqBuilder() *ListSpaceNodeReqBuilder

func (*ListSpaceNodeReqBuilder) Build

func (builder *ListSpaceNodeReqBuilder) Build() *ListSpaceNodeReq

func (*ListSpaceNodeReqBuilder) Limit

func (builder *ListSpaceNodeReqBuilder) Limit(limit int) *ListSpaceNodeReqBuilder

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

func (*ListSpaceNodeReqBuilder) PageSize

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

分页大小

示例值:10

func (*ListSpaceNodeReqBuilder) PageToken

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

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

示例值:6946843325487456878

func (*ListSpaceNodeReqBuilder) ParentNodeToken

func (builder *ListSpaceNodeReqBuilder) ParentNodeToken(parentNodeToken string) *ListSpaceNodeReqBuilder

父节点token

示例值:wikcnKQ1k3p******8Vabce

func (*ListSpaceNodeReqBuilder) SpaceId

func (builder *ListSpaceNodeReqBuilder) SpaceId(spaceId string) *ListSpaceNodeReqBuilder

知识空间id

示例值:6946843325487906839

type ListSpaceNodeResp

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

func (*ListSpaceNodeResp) Success

func (resp *ListSpaceNodeResp) Success() bool

type ListSpaceNodeRespData

type ListSpaceNodeRespData struct {
	Items     []*Node `json:"items,omitempty"`      // 数据列表
	PageToken *string `json:"page_token,omitempty"` // 分页Token
	HasMore   *bool   `json:"has_more,omitempty"`   // 是否还有数据
}

type ListSpaceReq

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

type ListSpaceReqBuilder

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

func NewListSpaceReqBuilder

func NewListSpaceReqBuilder() *ListSpaceReqBuilder

func (*ListSpaceReqBuilder) Build

func (builder *ListSpaceReqBuilder) Build() *ListSpaceReq

func (*ListSpaceReqBuilder) Lang added in v3.1.3

func (builder *ListSpaceReqBuilder) Lang(lang string) *ListSpaceReqBuilder

当查询个人文档库时,指定返回的文档库名称展示语言。可选值有:zh, id, de, en, es, fr, it, pt, vi, ru, hi, th, ko, ja, zh-HK, zh-TW。

示例值:zh

func (*ListSpaceReqBuilder) Limit

func (builder *ListSpaceReqBuilder) Limit(limit int) *ListSpaceReqBuilder

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

func (*ListSpaceReqBuilder) PageSize

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

分页大小

示例值:10

func (*ListSpaceReqBuilder) PageToken

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

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

示例值:1565676577122621

type ListSpaceResp

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

func (*ListSpaceResp) Success

func (resp *ListSpaceResp) Success() bool

type ListSpaceRespData

type ListSpaceRespData struct {
	Items     []*Space `json:"items,omitempty"`      // 数据列表
	PageToken *string  `json:"page_token,omitempty"` // 分页标记,当 has_more 为 true 时,会同时返回新的 page_token,否则不返回 page_token
	HasMore   *bool    `json:"has_more,omitempty"`   // 是否还有更多项
}

type Member

type Member struct {
	MemberType *string `json:"member_type,omitempty"` // “openchat” - 群id ;;“userid” - 用户id;;“email” - 邮箱;;“opendepartmentid” - 部门id;;“openid” - 应用openid;;“unionid” - [unionid](/:ssltoken/home/user-identity-introduction/union-id;)
	MemberId   *string `json:"member_id,omitempty"`   // 用户id,值的类型由上面的 member_type 参数决定
	MemberRole *string `json:"member_role,omitempty"` // 角色:;;“admin” - 管理员;;“member” - 成员
	Type       *string `json:"type,omitempty"`        // 知识库协作者类型
}

type MemberBuilder

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

func NewMemberBuilder

func NewMemberBuilder() *MemberBuilder

func (*MemberBuilder) Build

func (builder *MemberBuilder) Build() *Member

func (*MemberBuilder) MemberId

func (builder *MemberBuilder) MemberId(memberId string) *MemberBuilder

用户id,值的类型由上面的 member_type 参数决定

示例值:1565676577122621

func (*MemberBuilder) MemberRole

func (builder *MemberBuilder) MemberRole(memberRole string) *MemberBuilder

角色:;;“admin” - 管理员;;“member” - 成员

示例值:admin

func (*MemberBuilder) MemberType

func (builder *MemberBuilder) MemberType(memberType string) *MemberBuilder

“openchat” - 群id ;;“userid” - 用户id;;“email” - 邮箱;;“opendepartmentid” - 部门id;;“openid” - 应用openid;;“unionid” - [unionid](/:ssltoken/home/user-identity-introduction/union-id;)

示例值:userid

func (*MemberBuilder) Type added in v3.2.8

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

知识库协作者类型

示例值:user

type MoveDocsToWikiSpaceNodePathReqBodyBuilder

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

func NewMoveDocsToWikiSpaceNodePathReqBodyBuilder

func NewMoveDocsToWikiSpaceNodePathReqBodyBuilder() *MoveDocsToWikiSpaceNodePathReqBodyBuilder

func (*MoveDocsToWikiSpaceNodePathReqBodyBuilder) Apply

没有权限时,是否申请移动文档。;;如果申请移动,文档将在处理人同意时自动移动至指定位置。

示例值:true

func (*MoveDocsToWikiSpaceNodePathReqBodyBuilder) Build

func (*MoveDocsToWikiSpaceNodePathReqBodyBuilder) ObjToken

文档token

示例值:doccnzAaOD******Wabcdef

func (*MoveDocsToWikiSpaceNodePathReqBodyBuilder) ObjType

文档类型

示例值:doc

func (*MoveDocsToWikiSpaceNodePathReqBodyBuilder) ParentWikiToken

节点的父亲token。;;传空或不传时将移动为知识空间一级节点。

示例值:wikcnKQ1k3p******8Vabce

type MoveDocsToWikiSpaceNodeReq

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

type MoveDocsToWikiSpaceNodeReqBody

type MoveDocsToWikiSpaceNodeReqBody struct {
	ParentWikiToken *string `json:"parent_wiki_token,omitempty"` // 节点的父亲token。;;传空或不传时将移动为知识空间一级节点。
	ObjType         *string `json:"obj_type,omitempty"`          // 文档类型
	ObjToken        *string `json:"obj_token,omitempty"`         // 文档token
	Apply           *bool   `json:"apply,omitempty"`             // 没有权限时,是否申请移动文档。;;如果申请移动,文档将在处理人同意时自动移动至指定位置。
}

type MoveDocsToWikiSpaceNodeReqBodyBuilder

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

func NewMoveDocsToWikiSpaceNodeReqBodyBuilder

func NewMoveDocsToWikiSpaceNodeReqBodyBuilder() *MoveDocsToWikiSpaceNodeReqBodyBuilder

func (*MoveDocsToWikiSpaceNodeReqBodyBuilder) Apply

没有权限时,是否申请移动文档。;;如果申请移动,文档将在处理人同意时自动移动至指定位置。

示例值:true

func (*MoveDocsToWikiSpaceNodeReqBodyBuilder) Build

func (*MoveDocsToWikiSpaceNodeReqBodyBuilder) ObjToken

文档token

示例值:doccnzAaOD******Wabcdef

func (*MoveDocsToWikiSpaceNodeReqBodyBuilder) ObjType

文档类型

示例值:doc

func (*MoveDocsToWikiSpaceNodeReqBodyBuilder) ParentWikiToken

func (builder *MoveDocsToWikiSpaceNodeReqBodyBuilder) ParentWikiToken(parentWikiToken string) *MoveDocsToWikiSpaceNodeReqBodyBuilder

节点的父亲token。;;传空或不传时将移动为知识空间一级节点。

示例值:wikcnKQ1k3p******8Vabce

type MoveDocsToWikiSpaceNodeReqBuilder

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

func NewMoveDocsToWikiSpaceNodeReqBuilder

func NewMoveDocsToWikiSpaceNodeReqBuilder() *MoveDocsToWikiSpaceNodeReqBuilder

func (*MoveDocsToWikiSpaceNodeReqBuilder) Body

该接口允许移动云空间文档至知识空间,并挂载在指定位置

func (*MoveDocsToWikiSpaceNodeReqBuilder) Build

func (*MoveDocsToWikiSpaceNodeReqBuilder) SpaceId

知识库id

示例值:1565676577122621

type MoveDocsToWikiSpaceNodeResp

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

func (*MoveDocsToWikiSpaceNodeResp) Success

func (resp *MoveDocsToWikiSpaceNodeResp) Success() bool

type MoveDocsToWikiSpaceNodeRespData

type MoveDocsToWikiSpaceNodeRespData struct {
	WikiToken *string `json:"wiki_token,omitempty"` // 移动后的知识库token
	TaskId    *string `json:"task_id,omitempty"`    // 任务id
	Applied   *bool   `json:"applied,omitempty"`    // 是否提交了文档迁入申请
}

type MoveResult

type MoveResult struct {
	Node      *Node   `json:"node,omitempty"`       // 移动完成的节点信息
	Status    *int    `json:"status,omitempty"`     // 节点移动状态码
	StatusMsg *string `json:"status_msg,omitempty"` // 节点移动状态信息
}

type MoveResultBuilder

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

func NewMoveResultBuilder

func NewMoveResultBuilder() *MoveResultBuilder

func (*MoveResultBuilder) Build

func (builder *MoveResultBuilder) Build() *MoveResult

func (*MoveResultBuilder) Node

func (builder *MoveResultBuilder) Node(node *Node) *MoveResultBuilder

移动完成的节点信息

示例值:

func (*MoveResultBuilder) Status

func (builder *MoveResultBuilder) Status(status int) *MoveResultBuilder

节点移动状态码

示例值:0

func (*MoveResultBuilder) StatusMsg

func (builder *MoveResultBuilder) StatusMsg(statusMsg string) *MoveResultBuilder

节点移动状态信息

示例值:success

type MoveSpaceNodePathReqBodyBuilder

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

func NewMoveSpaceNodePathReqBodyBuilder

func NewMoveSpaceNodePathReqBodyBuilder() *MoveSpaceNodePathReqBodyBuilder

func (*MoveSpaceNodePathReqBodyBuilder) Build

func (*MoveSpaceNodePathReqBodyBuilder) TargetParentToken

func (builder *MoveSpaceNodePathReqBodyBuilder) TargetParentToken(targetParentToken string) *MoveSpaceNodePathReqBodyBuilder

移动到的父节点token

示例值:wikbcd6ydSUyOEzbdlt1BfpA5Yc

func (*MoveSpaceNodePathReqBodyBuilder) TargetSpaceId

func (builder *MoveSpaceNodePathReqBodyBuilder) TargetSpaceId(targetSpaceId string) *MoveSpaceNodePathReqBodyBuilder

移动到的知识空间ID

示例值:7008061636015512345

type MoveSpaceNodeReq

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

type MoveSpaceNodeReqBody

type MoveSpaceNodeReqBody struct {
	TargetParentToken *string `json:"target_parent_token,omitempty"` // 移动到的父节点token
	TargetSpaceId     *string `json:"target_space_id,omitempty"`     // 移动到的知识空间ID
}

type MoveSpaceNodeReqBodyBuilder

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

func NewMoveSpaceNodeReqBodyBuilder

func NewMoveSpaceNodeReqBodyBuilder() *MoveSpaceNodeReqBodyBuilder

func (*MoveSpaceNodeReqBodyBuilder) Build

func (*MoveSpaceNodeReqBodyBuilder) TargetParentToken

func (builder *MoveSpaceNodeReqBodyBuilder) TargetParentToken(targetParentToken string) *MoveSpaceNodeReqBodyBuilder

移动到的父节点token

示例值:wikbcd6ydSUyOEzbdlt1BfpA5Yc

func (*MoveSpaceNodeReqBodyBuilder) TargetSpaceId

func (builder *MoveSpaceNodeReqBodyBuilder) TargetSpaceId(targetSpaceId string) *MoveSpaceNodeReqBodyBuilder

移动到的知识空间ID

示例值:7008061636015512345

type MoveSpaceNodeReqBuilder

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

func NewMoveSpaceNodeReqBuilder

func NewMoveSpaceNodeReqBuilder() *MoveSpaceNodeReqBuilder

func (*MoveSpaceNodeReqBuilder) Body

此方法用于在Wiki内移动节点,支持跨知识空间移动。如果有子节点,会携带子节点一起移动。

func (*MoveSpaceNodeReqBuilder) Build

func (builder *MoveSpaceNodeReqBuilder) Build() *MoveSpaceNodeReq

func (*MoveSpaceNodeReqBuilder) NodeToken

func (builder *MoveSpaceNodeReqBuilder) NodeToken(nodeToken string) *MoveSpaceNodeReqBuilder

需要迁移的节点token

示例值:wikbcd6ydSUyOEzbdlt1BfpA5Yc

func (*MoveSpaceNodeReqBuilder) SpaceId

func (builder *MoveSpaceNodeReqBuilder) SpaceId(spaceId string) *MoveSpaceNodeReqBuilder

知识空间id

示例值:7008061636015512345

type MoveSpaceNodeResp

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

func (*MoveSpaceNodeResp) Success

func (resp *MoveSpaceNodeResp) Success() bool

type MoveSpaceNodeRespData

type MoveSpaceNodeRespData struct {
	Node *Node `json:"node,omitempty"` // 移动后的节点信息
}

type Node

type Node struct {
	SpaceId         *string `json:"space_id,omitempty"`          // 知识空间id;[获取方式](https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/wiki-overview)
	NodeToken       *string `json:"node_token,omitempty"`        // 节点token
	ObjToken        *string `json:"obj_token,omitempty"`         // 对应文档类型的token,可根据 obj_type 判断属于哪种文档类型。
	ObjType         *string `json:"obj_type,omitempty"`          // 文档类型,对于快捷方式,该字段是对应的实体的obj_type。
	ParentNodeToken *string `json:"parent_node_token,omitempty"` // 父节点 token。若当前节点为一级节点,父节点 token 为空。
	NodeType        *string `json:"node_type,omitempty"`         // 节点类型
	OriginNodeToken *string `json:"origin_node_token,omitempty"` // 快捷方式对应的实体node_token,当节点为快捷方式时,该值不为空。
	OriginSpaceId   *string `json:"origin_space_id,omitempty"`   // 快捷方式对应的实体所在的space id
	HasChild        *bool   `json:"has_child,omitempty"`         // 是否有子节点
	Title           *string `json:"title,omitempty"`             // 文档标题
	ObjCreateTime   *string `json:"obj_create_time,omitempty"`   // 文档创建时间
	ObjEditTime     *string `json:"obj_edit_time,omitempty"`     // 文档最近编辑时间
	NodeCreateTime  *string `json:"node_create_time,omitempty"`  // 节点创建时间
	Creator         *string `json:"creator,omitempty"`           // 节点创建者
	Owner           *string `json:"owner,omitempty"`             // 节点所有者
	NodeCreator     *string `json:"node_creator,omitempty"`      // 节点创建者
}

type NodeBuilder

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

func NewNodeBuilder

func NewNodeBuilder() *NodeBuilder

func (*NodeBuilder) Build

func (builder *NodeBuilder) Build() *Node

func (*NodeBuilder) Creator

func (builder *NodeBuilder) Creator(creator string) *NodeBuilder

节点创建者

示例值:ou_xxxxx

func (*NodeBuilder) HasChild

func (builder *NodeBuilder) HasChild(hasChild bool) *NodeBuilder

是否有子节点

示例值:false

func (*NodeBuilder) NodeCreateTime

func (builder *NodeBuilder) NodeCreateTime(nodeCreateTime string) *NodeBuilder

节点创建时间

示例值:1642402428

func (*NodeBuilder) NodeCreator added in v3.2.8

func (builder *NodeBuilder) NodeCreator(nodeCreator string) *NodeBuilder

节点创建者

示例值:ou_xxxxx

func (*NodeBuilder) NodeToken

func (builder *NodeBuilder) NodeToken(nodeToken string) *NodeBuilder

节点token

示例值:wikcnKQ1k3p******8Vabcef

func (*NodeBuilder) NodeType

func (builder *NodeBuilder) NodeType(nodeType string) *NodeBuilder

节点类型

示例值:origin

func (*NodeBuilder) ObjCreateTime

func (builder *NodeBuilder) ObjCreateTime(objCreateTime string) *NodeBuilder

文档创建时间

示例值:1642402428

func (*NodeBuilder) ObjEditTime

func (builder *NodeBuilder) ObjEditTime(objEditTime string) *NodeBuilder

文档最近编辑时间

示例值:1642402428

func (*NodeBuilder) ObjToken

func (builder *NodeBuilder) ObjToken(objToken string) *NodeBuilder

对应文档类型的token,可根据 obj_type 判断属于哪种文档类型。

示例值:doccnzAaOD******Wabcdef

func (*NodeBuilder) ObjType

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

文档类型,对于快捷方式,该字段是对应的实体的obj_type。

示例值:doc

func (*NodeBuilder) OriginNodeToken

func (builder *NodeBuilder) OriginNodeToken(originNodeToken string) *NodeBuilder

快捷方式对应的实体node_token,当节点为快捷方式时,该值不为空。

示例值:wikcnKQ1k3p******8Vabcef

func (*NodeBuilder) OriginSpaceId

func (builder *NodeBuilder) OriginSpaceId(originSpaceId string) *NodeBuilder

快捷方式对应的实体所在的space id

示例值:6946843325487912356

func (*NodeBuilder) Owner

func (builder *NodeBuilder) Owner(owner string) *NodeBuilder

节点所有者

示例值:ou_xxxxx

func (*NodeBuilder) ParentNodeToken

func (builder *NodeBuilder) ParentNodeToken(parentNodeToken string) *NodeBuilder

父节点 token。若当前节点为一级节点,父节点 token 为空。

示例值:wikcnKQ1k3p******8Vabcef

func (*NodeBuilder) SpaceId

func (builder *NodeBuilder) SpaceId(spaceId string) *NodeBuilder

知识空间id;[获取方式](https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/wiki-overview)

示例值:6946843325487912356

func (*NodeBuilder) Title

func (builder *NodeBuilder) Title(title string) *NodeBuilder

文档标题

示例值:标题

type NodeSearch

type NodeSearch struct {
	NodeId   *string  `json:"node_id,omitempty"`   // node的唯一标识
	SpaceId  *string  `json:"space_id,omitempty"`  // 所属空间id
	ParentId *string  `json:"parent_id,omitempty"` // 父节点id
	ObjType  *int     `json:"obj_type,omitempty"`  // wiki类型
	Title    *string  `json:"title,omitempty"`     // wiki标题
	Url      *string  `json:"url,omitempty"`       // wiki的访问url
	Icon     *string  `json:"icon,omitempty"`      // wiki对应图标的url
	AreaId   *string  `json:"area_id,omitempty"`   // 所属权限范围id
	SortId   *float64 `json:"sort_id,omitempty"`   // 序号
	Domain   *string  `json:"domain,omitempty"`    // 所在域名
	ObjToken *string  `json:"obj_token,omitempty"` // objToken
}

type NodeSearchBuilder

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

func NewNodeSearchBuilder

func NewNodeSearchBuilder() *NodeSearchBuilder

func (*NodeSearchBuilder) AreaId

func (builder *NodeSearchBuilder) AreaId(areaId string) *NodeSearchBuilder

所属权限范围id

示例值:7067522558521772323

func (*NodeSearchBuilder) Build

func (builder *NodeSearchBuilder) Build() *NodeSearch

func (*NodeSearchBuilder) Domain

func (builder *NodeSearchBuilder) Domain(domain string) *NodeSearchBuilder

所在域名

示例值:example.feishu.cn

func (*NodeSearchBuilder) Icon

func (builder *NodeSearchBuilder) Icon(icon string) *NodeSearchBuilder

wiki对应图标的url

示例值:https://example.feishu.cn/icon

func (*NodeSearchBuilder) NodeId

func (builder *NodeSearchBuilder) NodeId(nodeId string) *NodeSearchBuilder

node的唯一标识

示例值:wikbcIbccBl4Mik9GQ2KskO6hsf

func (*NodeSearchBuilder) ObjToken

func (builder *NodeSearchBuilder) ObjToken(objToken string) *NodeSearchBuilder

objToken

示例值:doxbcBBOM3vQxO5NztUhKpTBNQd

func (*NodeSearchBuilder) ObjType

func (builder *NodeSearchBuilder) ObjType(objType int) *NodeSearchBuilder

wiki类型

示例值:1

func (*NodeSearchBuilder) ParentId

func (builder *NodeSearchBuilder) ParentId(parentId string) *NodeSearchBuilder

父节点id

示例值:7067522558521772323

func (*NodeSearchBuilder) SortId

func (builder *NodeSearchBuilder) SortId(sortId float64) *NodeSearchBuilder

序号

示例值:1

func (*NodeSearchBuilder) SpaceId

func (builder *NodeSearchBuilder) SpaceId(spaceId string) *NodeSearchBuilder

所属空间id

示例值:7067522558521770004

func (*NodeSearchBuilder) Title

func (builder *NodeSearchBuilder) Title(title string) *NodeSearchBuilder

wiki标题

示例值:文档标题

func (*NodeSearchBuilder) Url

func (builder *NodeSearchBuilder) Url(url string) *NodeSearchBuilder

wiki的访问url

示例值:https://example.feishu.cn/wiki

type Setting

type Setting struct {
	CreateSetting   *string `json:"create_setting,omitempty"`   // 谁可以创建空间的一级页面: "admin_and_member" = 管理员和成员 "admin"  - 仅管理员
	SecuritySetting *string `json:"security_setting,omitempty"` // 可阅读用户可否创建副本/打印/导出/复制: "allow" - 允许 "not_allow" - 不允许
	CommentSetting  *string `json:"comment_setting,omitempty"`  // 可阅读用户可否评论: "allow" - 允许 "not_allow" - 不允许
}

type SettingBuilder

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

func NewSettingBuilder

func NewSettingBuilder() *SettingBuilder

func (*SettingBuilder) Build

func (builder *SettingBuilder) Build() *Setting

func (*SettingBuilder) CommentSetting

func (builder *SettingBuilder) CommentSetting(commentSetting string) *SettingBuilder

可阅读用户可否评论: "allow" - 允许 "not_allow" - 不允许

示例值:allow/not_allow

func (*SettingBuilder) CreateSetting

func (builder *SettingBuilder) CreateSetting(createSetting string) *SettingBuilder

谁可以创建空间的一级页面: "admin_and_member" = 管理员和成员 "admin" - 仅管理员

示例值:admin/admin_and_member

func (*SettingBuilder) SecuritySetting

func (builder *SettingBuilder) SecuritySetting(securitySetting string) *SettingBuilder

可阅读用户可否创建副本/打印/导出/复制: "allow" - 允许 "not_allow" - 不允许

示例值:allow/not_allow

type Space

type Space struct {
	Name        *string `json:"name,omitempty"`         // 知识空间名称
	Description *string `json:"description,omitempty"`  // 知识空间描述
	SpaceId     *string `json:"space_id,omitempty"`     // 知识空间id
	SpaceType   *string `json:"space_type,omitempty"`   // 表示知识空间类型(团队空间 或 个人空间)
	Visibility  *string `json:"visibility,omitempty"`   // 表示知识空间可见性(公开空间 或 私有空间)
	OpenSharing *string `json:"open_sharing,omitempty"` // 表示知识空间的分享状态
}

type SpaceBuilder

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

func NewSpaceBuilder

func NewSpaceBuilder() *SpaceBuilder

func (*SpaceBuilder) Build

func (builder *SpaceBuilder) Build() *Space

func (*SpaceBuilder) Description

func (builder *SpaceBuilder) Description(description string) *SpaceBuilder

知识空间描述

示例值:知识空间描述

func (*SpaceBuilder) Name

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

知识空间名称

示例值:知识空间

func (*SpaceBuilder) OpenSharing added in v3.2.9

func (builder *SpaceBuilder) OpenSharing(openSharing string) *SpaceBuilder

表示知识空间的分享状态

示例值:open

func (*SpaceBuilder) SpaceId

func (builder *SpaceBuilder) SpaceId(spaceId string) *SpaceBuilder

知识空间id

示例值:6946843325487456878

func (*SpaceBuilder) SpaceType

func (builder *SpaceBuilder) SpaceType(spaceType string) *SpaceBuilder

表示知识空间类型(团队空间 或 个人空间)

示例值:team

func (*SpaceBuilder) Visibility

func (builder *SpaceBuilder) Visibility(visibility string) *SpaceBuilder

表示知识空间可见性(公开空间 或 私有空间)

示例值:private

type TaskResult

type TaskResult struct {
	TaskId     *string       `json:"task_id,omitempty"`     // 任务id
	MoveResult []*MoveResult `json:"move_result,omitempty"` // [移动云空间文档至知识空间](https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/wiki-v2/space-node/move_docs_to_wiki)任务结果
}

type TaskResultBuilder

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

func NewTaskResultBuilder

func NewTaskResultBuilder() *TaskResultBuilder

func (*TaskResultBuilder) Build

func (builder *TaskResultBuilder) Build() *TaskResult

func (*TaskResultBuilder) MoveResult

func (builder *TaskResultBuilder) MoveResult(moveResult []*MoveResult) *TaskResultBuilder

[移动云空间文档至知识空间](https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/wiki-v2/space-node/move_docs_to_wiki)任务结果

示例值:

func (*TaskResultBuilder) TaskId

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

任务id

示例值:7037044037068177428-075c9481e6a0007c1df689dfbe5b55a08b6b06f7

type UpdateSpaceSettingReq

type UpdateSpaceSettingReq struct {
	Setting *Setting `body:""`
	// contains filtered or unexported fields
}

type UpdateSpaceSettingReqBuilder

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

func NewUpdateSpaceSettingReqBuilder

func NewUpdateSpaceSettingReqBuilder() *UpdateSpaceSettingReqBuilder

func (*UpdateSpaceSettingReqBuilder) Build

func (*UpdateSpaceSettingReqBuilder) Setting

根据space_id更新知识空间公共设置

func (*UpdateSpaceSettingReqBuilder) SpaceId

知识空间id

示例值:1565676577122621

type UpdateSpaceSettingResp

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

func (*UpdateSpaceSettingResp) Success

func (resp *UpdateSpaceSettingResp) Success() bool

type UpdateSpaceSettingRespData

type UpdateSpaceSettingRespData struct {
	Setting *Setting `json:"setting,omitempty"` // 知识空间设置
}

type UpdateTitleSpaceNodePathReqBodyBuilder

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

func NewUpdateTitleSpaceNodePathReqBodyBuilder

func NewUpdateTitleSpaceNodePathReqBodyBuilder() *UpdateTitleSpaceNodePathReqBodyBuilder

func (*UpdateTitleSpaceNodePathReqBodyBuilder) Build

func (*UpdateTitleSpaceNodePathReqBodyBuilder) Title

节点新标题

示例值:新标题

type UpdateTitleSpaceNodeReq

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

type UpdateTitleSpaceNodeReqBody

type UpdateTitleSpaceNodeReqBody struct {
	Title *string `json:"title,omitempty"` // 节点新标题
}

type UpdateTitleSpaceNodeReqBodyBuilder

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

func NewUpdateTitleSpaceNodeReqBodyBuilder

func NewUpdateTitleSpaceNodeReqBodyBuilder() *UpdateTitleSpaceNodeReqBodyBuilder

func (*UpdateTitleSpaceNodeReqBodyBuilder) Build

func (*UpdateTitleSpaceNodeReqBodyBuilder) Title

节点新标题

示例值:新标题

type UpdateTitleSpaceNodeReqBuilder

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

func NewUpdateTitleSpaceNodeReqBuilder

func NewUpdateTitleSpaceNodeReqBuilder() *UpdateTitleSpaceNodeReqBuilder

func (*UpdateTitleSpaceNodeReqBuilder) Body

此接口用于更新节点标题

func (*UpdateTitleSpaceNodeReqBuilder) Build

func (*UpdateTitleSpaceNodeReqBuilder) NodeToken

节点token

示例值:wikcnKQ1k3pcuo5uSK4t8Vabcef

func (*UpdateTitleSpaceNodeReqBuilder) SpaceId

知识空间ID

示例值:6946843325487912356

type UpdateTitleSpaceNodeResp

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

func (*UpdateTitleSpaceNodeResp) Success

func (resp *UpdateTitleSpaceNodeResp) Success() bool

type V2 added in v3.1.0

type V2 struct {
	Space        *space        // 知识空间
	SpaceMember  *spaceMember  // 空间成员
	SpaceNode    *spaceNode    // 节点
	SpaceSetting *spaceSetting // 空间设置
	Task         *task         // 云文档
}

func New added in v3.1.0

func New(config *larkcore.Config) *V2

Jump to

Keyboard shortcuts

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