larkwiki

package
v3.0.0-beta-8 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: MIT Imports: 5 Imported by: 12

Documentation

Index

Constants

View Source
const (
	ObjTypeObjTypeDoc      = "doc"      // doc
	ObjTypeObjTypeSheet    = "sheet"    // sheet
	ObjTypeObjTypeMindNote = "mindnote" // mindnote
	ObjTypeObjTypeBitable  = "bitable"  // bitable
	ObjTypeObjTypeFile     = "file"     // file
	ObjTypeObjTypeDocx     = "docx"     // docx
)
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 (文件)
)
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

示例值:wikcnKQ1k3pcuo5uSK4t8Vabcef

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

示例值:wikcnKQ1k3pcuo5uSK4t8Vabcef

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

示例值:wikcnKQ1k3pcuo5uSK4t8Vabcef

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"` // copy后的节点
}

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

添加知识空间成员(管理员)。;;- 公开知识空间(visibility为public)对租户所有用户可见,因此不支持再添加成员,但可以添加管理员。;; 相关错误:131101 public wiki space can't create member.;- 个人知识空间 (type为person)为个人管理的知识空间,不支持添加其他管理员(包括应用/机器人)。但可以添加成员。;; 相关错误:131101 person wiki space can't create admin.

func (*CreateSpaceMemberReqBuilder) NeedNotification

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

添加权限后是否通知对方

示例值:true/fasle

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

此接口用于在知识库里创建节点。

func (*CreateSpaceNodeReqBuilder) SpaceId

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

知识空间id

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

此接口用于删除知识空间成员。;;- 公开知识空间(visibility为public)对租户所有用户可见,因此不支持再删除成员,但可以删除管理员。;;- 个人知识空间 (type为person)为个人管理的知识空间,不支持删除管理员。但可以删除成员。

func (*DeleteSpaceMemberReqBuilder) MemberId

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

成员id

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

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

文档的wiki token

示例值:wikcnKQ1k3pcuo5uSK4t8VN6kVf

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

示例值:wikcnKQ1k3pcuo5uSK4t8VN6kVf

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"` //
	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) 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"` //
	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
	MemberId   *string `json:"member_id,omitempty"`   // 用户id
	MemberRole *string `json:"member_role,omitempty"` // 角色:;;“admin” - 管理员;;“member” - 成员
}

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

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

示例值:docbc6e1qBqt1O5mCBVA1QUKVEg

func (*MoveDocsToWikiSpaceNodePathReqBodyBuilder) ObjType

文档类型

示例值:doc

func (*MoveDocsToWikiSpaceNodePathReqBodyBuilder) ParentWikiToken

节点的父亲token

示例值:wikbcOHIFxB0PJS2UTd2kF2SP6c

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

示例值:docbc6e1qBqt1O5mCBVA1QUKVEg

func (*MoveDocsToWikiSpaceNodeReqBodyBuilder) ObjType

文档类型

示例值:doc

func (*MoveDocsToWikiSpaceNodeReqBodyBuilder) ParentWikiToken

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

节点的父亲token

示例值:wikbcOHIFxB0PJS2UTd2kF2SP6c

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

示例值:

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

示例值:

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

示例值:7008061636015554580

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
	NodeToken       *string `json:"node_token,omitempty"`        // 节点token
	ObjToken        *string `json:"obj_token,omitempty"`         // 文档token,可以根据obj_type判断是属于doc、sheet还是mindnote的token(对于快捷方式,该字段是对应的实体的obj_token)
	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"`   // 快捷方式对应的实体所在的spaceid
	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"`             // 节点所有者
}

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

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

节点token 示例值:wikcnKQ1k3pcuo5uSK4t8Vabcef

func (*NodeBuilder) NodeType

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

节点类型 示例值:origin/shortcut

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判断是属于doc、sheet还是mindnote的token(对于快捷方式,该字段是对应的实体的obj_token) 示例值:doccnzAaODNqykc8g9hOWabcdef

func (*NodeBuilder) ObjType

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

文档类型,对于快捷方式,该字段是对应的实体的obj_type 示例值:doc/sheet/mindnote

func (*NodeBuilder) OriginNodeToken

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

快捷方式对应的实体node_token,当创建节点为快捷方式时,需要传该值 示例值:wikcnKQ1k3pcuo5uSK4t8Vabcef

func (*NodeBuilder) OriginSpaceId

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

快捷方式对应的实体所在的spaceid 示例值: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为空。 示例值:wikcnKQ1k3pcuo5uSK4t8Vabcef

func (*NodeBuilder) SpaceId

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

知识库id 示例值: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 示例值:

func (*NodeSearchBuilder) Build

func (builder *NodeSearchBuilder) Build() *NodeSearch

func (*NodeSearchBuilder) Domain

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

所在域名 示例值:

func (*NodeSearchBuilder) Icon

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

wiki对应图标的url 示例值:

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

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://single-container.feishu.cn/wiki/wikbcPkzIoLp52Dh2Pj3nQaYPFO

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"`  // 表示知识空间可见性(公开空间 或 私有空间)
}

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

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

知识空间id 示例值:1565676577122621

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"` // MoveDocsToWiki任务结果
}

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

MoveDocsToWiki任务结果 示例值:

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 WikiService

type WikiService struct {
	Space        *space        // 节点
	SpaceMember  *spaceMember  // 空间成员
	SpaceNode    *spaceNode    // 节点
	SpaceSetting *spaceSetting // 空间设置
	Task         *task         // 云文档
	// contains filtered or unexported fields
}

func NewService

func NewService(config *larkcore.Config) *WikiService

Jump to

Keyboard shortcuts

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