Documentation ¶
Index ¶
- Constants
- type CopySpaceNodePathReqBodyBuilder
- func (builder *CopySpaceNodePathReqBodyBuilder) Build() (*CopySpaceNodeReqBody, error)
- func (builder *CopySpaceNodePathReqBodyBuilder) TargetParentToken(targetParentToken string) *CopySpaceNodePathReqBodyBuilder
- func (builder *CopySpaceNodePathReqBodyBuilder) TargetSpaceId(targetSpaceId string) *CopySpaceNodePathReqBodyBuilder
- func (builder *CopySpaceNodePathReqBodyBuilder) Title(title string) *CopySpaceNodePathReqBodyBuilder
- type CopySpaceNodeReq
- type CopySpaceNodeReqBody
- type CopySpaceNodeReqBodyBuilder
- func (builder *CopySpaceNodeReqBodyBuilder) Build() *CopySpaceNodeReqBody
- func (builder *CopySpaceNodeReqBodyBuilder) TargetParentToken(targetParentToken string) *CopySpaceNodeReqBodyBuilder
- func (builder *CopySpaceNodeReqBodyBuilder) TargetSpaceId(targetSpaceId string) *CopySpaceNodeReqBodyBuilder
- func (builder *CopySpaceNodeReqBodyBuilder) Title(title string) *CopySpaceNodeReqBodyBuilder
- type CopySpaceNodeReqBuilder
- func (builder *CopySpaceNodeReqBuilder) Body(body *CopySpaceNodeReqBody) *CopySpaceNodeReqBuilder
- func (builder *CopySpaceNodeReqBuilder) Build() *CopySpaceNodeReq
- func (builder *CopySpaceNodeReqBuilder) NodeToken(nodeToken string) *CopySpaceNodeReqBuilder
- func (builder *CopySpaceNodeReqBuilder) SpaceId(spaceId string) *CopySpaceNodeReqBuilder
- type CopySpaceNodeResp
- type CopySpaceNodeRespData
- type CreateSpaceMemberReq
- type CreateSpaceMemberReqBuilder
- func (builder *CreateSpaceMemberReqBuilder) Build() *CreateSpaceMemberReq
- func (builder *CreateSpaceMemberReqBuilder) Member(member *Member) *CreateSpaceMemberReqBuilder
- func (builder *CreateSpaceMemberReqBuilder) NeedNotification(needNotification bool) *CreateSpaceMemberReqBuilder
- func (builder *CreateSpaceMemberReqBuilder) SpaceId(spaceId string) *CreateSpaceMemberReqBuilder
- type CreateSpaceMemberResp
- type CreateSpaceMemberRespData
- type CreateSpaceNodeReq
- type CreateSpaceNodeReqBuilder
- type CreateSpaceNodeResp
- type CreateSpaceNodeRespData
- type CreateSpaceReq
- type CreateSpaceReqBuilder
- type CreateSpaceResp
- type CreateSpaceRespData
- type DeleteSpaceMemberReq
- type DeleteSpaceMemberReqBuilder
- func (builder *DeleteSpaceMemberReqBuilder) Build() *DeleteSpaceMemberReq
- func (builder *DeleteSpaceMemberReqBuilder) Member(member *Member) *DeleteSpaceMemberReqBuilder
- func (builder *DeleteSpaceMemberReqBuilder) MemberId(memberId string) *DeleteSpaceMemberReqBuilder
- func (builder *DeleteSpaceMemberReqBuilder) SpaceId(spaceId string) *DeleteSpaceMemberReqBuilder
- type DeleteSpaceMemberResp
- type DeleteSpaceMemberRespData
- type GetNodeSpaceReq
- type GetNodeSpaceReqBuilder
- type GetNodeSpaceResp
- type GetNodeSpaceRespData
- type GetSpaceReq
- type GetSpaceReqBuilder
- type GetSpaceResp
- type GetSpaceRespData
- type GetTaskReq
- type GetTaskReqBuilder
- type GetTaskResp
- type GetTaskRespData
- type ListSpaceIterator
- type ListSpaceNodeIterator
- type ListSpaceNodeReq
- type ListSpaceNodeReqBuilder
- func (builder *ListSpaceNodeReqBuilder) Build() *ListSpaceNodeReq
- func (builder *ListSpaceNodeReqBuilder) Limit(limit int) *ListSpaceNodeReqBuilder
- func (builder *ListSpaceNodeReqBuilder) PageSize(pageSize int) *ListSpaceNodeReqBuilder
- func (builder *ListSpaceNodeReqBuilder) PageToken(pageToken string) *ListSpaceNodeReqBuilder
- func (builder *ListSpaceNodeReqBuilder) ParentNodeToken(parentNodeToken string) *ListSpaceNodeReqBuilder
- func (builder *ListSpaceNodeReqBuilder) SpaceId(spaceId string) *ListSpaceNodeReqBuilder
- type ListSpaceNodeResp
- type ListSpaceNodeRespData
- type ListSpaceReq
- type ListSpaceReqBuilder
- type ListSpaceResp
- type ListSpaceRespData
- type Member
- type MemberBuilder
- type MoveDocsToWikiSpaceNodePathReqBodyBuilder
- func (builder *MoveDocsToWikiSpaceNodePathReqBodyBuilder) Apply(apply bool) *MoveDocsToWikiSpaceNodePathReqBodyBuilder
- func (builder *MoveDocsToWikiSpaceNodePathReqBodyBuilder) Build() (*MoveDocsToWikiSpaceNodeReqBody, error)
- func (builder *MoveDocsToWikiSpaceNodePathReqBodyBuilder) ObjToken(objToken string) *MoveDocsToWikiSpaceNodePathReqBodyBuilder
- func (builder *MoveDocsToWikiSpaceNodePathReqBodyBuilder) ObjType(objType string) *MoveDocsToWikiSpaceNodePathReqBodyBuilder
- func (builder *MoveDocsToWikiSpaceNodePathReqBodyBuilder) ParentWikiToken(parentWikiToken string) *MoveDocsToWikiSpaceNodePathReqBodyBuilder
- type MoveDocsToWikiSpaceNodeReq
- type MoveDocsToWikiSpaceNodeReqBody
- type MoveDocsToWikiSpaceNodeReqBodyBuilder
- func (builder *MoveDocsToWikiSpaceNodeReqBodyBuilder) Apply(apply bool) *MoveDocsToWikiSpaceNodeReqBodyBuilder
- func (builder *MoveDocsToWikiSpaceNodeReqBodyBuilder) Build() *MoveDocsToWikiSpaceNodeReqBody
- func (builder *MoveDocsToWikiSpaceNodeReqBodyBuilder) ObjToken(objToken string) *MoveDocsToWikiSpaceNodeReqBodyBuilder
- func (builder *MoveDocsToWikiSpaceNodeReqBodyBuilder) ObjType(objType string) *MoveDocsToWikiSpaceNodeReqBodyBuilder
- func (builder *MoveDocsToWikiSpaceNodeReqBodyBuilder) ParentWikiToken(parentWikiToken string) *MoveDocsToWikiSpaceNodeReqBodyBuilder
- type MoveDocsToWikiSpaceNodeReqBuilder
- func (builder *MoveDocsToWikiSpaceNodeReqBuilder) Body(body *MoveDocsToWikiSpaceNodeReqBody) *MoveDocsToWikiSpaceNodeReqBuilder
- func (builder *MoveDocsToWikiSpaceNodeReqBuilder) Build() *MoveDocsToWikiSpaceNodeReq
- func (builder *MoveDocsToWikiSpaceNodeReqBuilder) SpaceId(spaceId string) *MoveDocsToWikiSpaceNodeReqBuilder
- type MoveDocsToWikiSpaceNodeResp
- type MoveDocsToWikiSpaceNodeRespData
- type MoveResult
- type MoveResultBuilder
- type MoveSpaceNodePathReqBodyBuilder
- func (builder *MoveSpaceNodePathReqBodyBuilder) Build() (*MoveSpaceNodeReqBody, error)
- func (builder *MoveSpaceNodePathReqBodyBuilder) TargetParentToken(targetParentToken string) *MoveSpaceNodePathReqBodyBuilder
- func (builder *MoveSpaceNodePathReqBodyBuilder) TargetSpaceId(targetSpaceId string) *MoveSpaceNodePathReqBodyBuilder
- type MoveSpaceNodeReq
- type MoveSpaceNodeReqBody
- type MoveSpaceNodeReqBodyBuilder
- type MoveSpaceNodeReqBuilder
- func (builder *MoveSpaceNodeReqBuilder) Body(body *MoveSpaceNodeReqBody) *MoveSpaceNodeReqBuilder
- func (builder *MoveSpaceNodeReqBuilder) Build() *MoveSpaceNodeReq
- func (builder *MoveSpaceNodeReqBuilder) NodeToken(nodeToken string) *MoveSpaceNodeReqBuilder
- func (builder *MoveSpaceNodeReqBuilder) SpaceId(spaceId string) *MoveSpaceNodeReqBuilder
- type MoveSpaceNodeResp
- type MoveSpaceNodeRespData
- type Node
- type NodeBuilder
- func (builder *NodeBuilder) Build() *Node
- func (builder *NodeBuilder) Creator(creator string) *NodeBuilder
- func (builder *NodeBuilder) HasChild(hasChild bool) *NodeBuilder
- func (builder *NodeBuilder) NodeCreateTime(nodeCreateTime string) *NodeBuilder
- func (builder *NodeBuilder) NodeToken(nodeToken string) *NodeBuilder
- func (builder *NodeBuilder) NodeType(nodeType string) *NodeBuilder
- func (builder *NodeBuilder) ObjCreateTime(objCreateTime string) *NodeBuilder
- func (builder *NodeBuilder) ObjEditTime(objEditTime string) *NodeBuilder
- func (builder *NodeBuilder) ObjToken(objToken string) *NodeBuilder
- func (builder *NodeBuilder) ObjType(objType string) *NodeBuilder
- func (builder *NodeBuilder) OriginNodeToken(originNodeToken string) *NodeBuilder
- func (builder *NodeBuilder) OriginSpaceId(originSpaceId string) *NodeBuilder
- func (builder *NodeBuilder) Owner(owner string) *NodeBuilder
- func (builder *NodeBuilder) ParentNodeToken(parentNodeToken string) *NodeBuilder
- func (builder *NodeBuilder) SpaceId(spaceId string) *NodeBuilder
- func (builder *NodeBuilder) Title(title string) *NodeBuilder
- type NodeSearch
- type NodeSearchBuilder
- func (builder *NodeSearchBuilder) AreaId(areaId string) *NodeSearchBuilder
- func (builder *NodeSearchBuilder) Build() *NodeSearch
- func (builder *NodeSearchBuilder) Domain(domain string) *NodeSearchBuilder
- func (builder *NodeSearchBuilder) Icon(icon string) *NodeSearchBuilder
- func (builder *NodeSearchBuilder) NodeId(nodeId string) *NodeSearchBuilder
- func (builder *NodeSearchBuilder) ObjToken(objToken string) *NodeSearchBuilder
- func (builder *NodeSearchBuilder) ObjType(objType int) *NodeSearchBuilder
- func (builder *NodeSearchBuilder) ParentId(parentId string) *NodeSearchBuilder
- func (builder *NodeSearchBuilder) SortId(sortId float64) *NodeSearchBuilder
- func (builder *NodeSearchBuilder) SpaceId(spaceId string) *NodeSearchBuilder
- func (builder *NodeSearchBuilder) Title(title string) *NodeSearchBuilder
- func (builder *NodeSearchBuilder) Url(url string) *NodeSearchBuilder
- type Setting
- type SettingBuilder
- func (builder *SettingBuilder) Build() *Setting
- func (builder *SettingBuilder) CommentSetting(commentSetting string) *SettingBuilder
- func (builder *SettingBuilder) CreateSetting(createSetting string) *SettingBuilder
- func (builder *SettingBuilder) SecuritySetting(securitySetting string) *SettingBuilder
- type Space
- type SpaceBuilder
- func (builder *SpaceBuilder) Build() *Space
- func (builder *SpaceBuilder) Description(description string) *SpaceBuilder
- func (builder *SpaceBuilder) Name(name string) *SpaceBuilder
- func (builder *SpaceBuilder) SpaceId(spaceId string) *SpaceBuilder
- func (builder *SpaceBuilder) SpaceType(spaceType string) *SpaceBuilder
- func (builder *SpaceBuilder) Visibility(visibility string) *SpaceBuilder
- type TaskResult
- type TaskResultBuilder
- type UpdateSpaceSettingReq
- type UpdateSpaceSettingReqBuilder
- type UpdateSpaceSettingResp
- type UpdateSpaceSettingRespData
- type UpdateTitleSpaceNodePathReqBodyBuilder
- type UpdateTitleSpaceNodeReq
- type UpdateTitleSpaceNodeReqBody
- type UpdateTitleSpaceNodeReqBodyBuilder
- type UpdateTitleSpaceNodeReqBuilder
- func (builder *UpdateTitleSpaceNodeReqBuilder) Body(body *UpdateTitleSpaceNodeReqBody) *UpdateTitleSpaceNodeReqBuilder
- func (builder *UpdateTitleSpaceNodeReqBuilder) Build() *UpdateTitleSpaceNodeReq
- func (builder *UpdateTitleSpaceNodeReqBuilder) NodeToken(nodeToken string) *UpdateTitleSpaceNodeReqBuilder
- func (builder *UpdateTitleSpaceNodeReqBuilder) SpaceId(spaceId string) *UpdateTitleSpaceNodeReqBuilder
- type UpdateTitleSpaceNodeResp
- type WikiService
Constants ¶
const ( ObjTypeObjTypeDoc = "doc" // doc ObjTypeObjTypeSheet = "sheet" // sheet ObjTypeObjTypeMindNote = "mindnote" // mindnote ObjTypeObjTypeBitable = "bitable" // bitable ObjTypeObjTypeFile = "file" // file ObjTypeObjTypeDocx = "docx" // docx )
const ( NodeTypeNodeTypeEntity = "origin" // 实体 NodeTypeNodeTypeShortCut = "shortcut" // 快捷方式 )
const ( MoveDocsToWikiObjTypeObjTypeDoc = "doc" // doc(文档) MoveDocsToWikiObjTypeObjTypeSheet = "sheet" // sheet(表格) MoveDocsToWikiObjTypeObjTypeBitable = "bitable" // bitable(多维表格) MoveDocsToWikiObjTypeObjTypeMindNote = "mindnote" // mindnote(思维导图) MoveDocsToWikiObjTypeObjTypeDocx = "docx" // docx MoveDocsToWikiObjTypeObjTypeFile = "file" // file (文件) )
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 (builder *CopySpaceNodePathReqBodyBuilder) Build() (*CopySpaceNodeReqBody, error)
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 ¶
func (builder *CopySpaceNodePathReqBodyBuilder) Title(title string) *CopySpaceNodePathReqBodyBuilder
复制后的新标题。如果填空,则新标题为空。如果不填,则使用原节点标题。
示例值:新标题
type CopySpaceNodeReq ¶
type CopySpaceNodeReq struct { Body *CopySpaceNodeReqBody `body:""` // contains filtered or unexported fields }
type CopySpaceNodeReqBody ¶
type CopySpaceNodeReqBodyBuilder ¶
type CopySpaceNodeReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewCopySpaceNodeReqBodyBuilder ¶
func NewCopySpaceNodeReqBodyBuilder() *CopySpaceNodeReqBodyBuilder
func (*CopySpaceNodeReqBodyBuilder) Build ¶
func (builder *CopySpaceNodeReqBodyBuilder) Build() *CopySpaceNodeReqBody
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 ¶
func (builder *CopySpaceNodeReqBodyBuilder) Title(title string) *CopySpaceNodeReqBodyBuilder
复制后的新标题。如果填空,则新标题为空。如果不填,则使用原节点标题。
示例值:新标题
type CopySpaceNodeReqBuilder ¶
type CopySpaceNodeReqBuilder struct {
// contains filtered or unexported fields
}
func NewCopySpaceNodeReqBuilder ¶
func NewCopySpaceNodeReqBuilder() *CopySpaceNodeReqBuilder
func (*CopySpaceNodeReqBuilder) Body ¶
func (builder *CopySpaceNodeReqBuilder) Body(body *CopySpaceNodeReqBody) *CopySpaceNodeReqBuilder
此接口用于创建节点副本到指定地点。
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 (builder *CreateSpaceMemberReqBuilder) Build() *CreateSpaceMemberReq
func (*CreateSpaceMemberReqBuilder) Member ¶
func (builder *CreateSpaceMemberReqBuilder) Member(member *Member) *CreateSpaceMemberReqBuilder
添加知识空间成员(管理员)。;;- 公开知识空间(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 ¶
func (builder *CreateSpaceMemberReqBuilder) SpaceId(spaceId string) *CreateSpaceMemberReqBuilder
知识空间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 (builder *CreateSpaceNodeReqBuilder) Build() *CreateSpaceNodeReq
func (*CreateSpaceNodeReqBuilder) Node ¶
func (builder *CreateSpaceNodeReqBuilder) Node(node *Node) *CreateSpaceNodeReqBuilder
此接口用于在知识库里创建节点。
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 (builder *DeleteSpaceMemberReqBuilder) Build() *DeleteSpaceMemberReq
func (*DeleteSpaceMemberReqBuilder) Member ¶
func (builder *DeleteSpaceMemberReqBuilder) Member(member *Member) *DeleteSpaceMemberReqBuilder
此接口用于删除知识空间成员。;;- 公开知识空间(visibility为public)对租户所有用户可见,因此不支持再删除成员,但可以删除管理员。;;- 个人知识空间 (type为person)为个人管理的知识空间,不支持删除管理员。但可以删除成员。
func (*DeleteSpaceMemberReqBuilder) MemberId ¶
func (builder *DeleteSpaceMemberReqBuilder) MemberId(memberId string) *DeleteSpaceMemberReqBuilder
成员id
示例值:g64fb7g7
func (*DeleteSpaceMemberReqBuilder) SpaceId ¶
func (builder *DeleteSpaceMemberReqBuilder) SpaceId(spaceId string) *DeleteSpaceMemberReqBuilder
知识空间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) 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 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 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 ¶
func (builder *MoveDocsToWikiSpaceNodePathReqBodyBuilder) Apply(apply bool) *MoveDocsToWikiSpaceNodePathReqBodyBuilder
没有权限时,是否申请迁入文档
示例值:true
func (*MoveDocsToWikiSpaceNodePathReqBodyBuilder) Build ¶
func (builder *MoveDocsToWikiSpaceNodePathReqBodyBuilder) Build() (*MoveDocsToWikiSpaceNodeReqBody, error)
func (*MoveDocsToWikiSpaceNodePathReqBodyBuilder) ObjToken ¶
func (builder *MoveDocsToWikiSpaceNodePathReqBodyBuilder) ObjToken(objToken string) *MoveDocsToWikiSpaceNodePathReqBodyBuilder
文档token
示例值:docbc6e1qBqt1O5mCBVA1QUKVEg
func (*MoveDocsToWikiSpaceNodePathReqBodyBuilder) ObjType ¶
func (builder *MoveDocsToWikiSpaceNodePathReqBodyBuilder) ObjType(objType string) *MoveDocsToWikiSpaceNodePathReqBodyBuilder
文档类型
示例值:doc
func (*MoveDocsToWikiSpaceNodePathReqBodyBuilder) ParentWikiToken ¶
func (builder *MoveDocsToWikiSpaceNodePathReqBodyBuilder) ParentWikiToken(parentWikiToken string) *MoveDocsToWikiSpaceNodePathReqBodyBuilder
节点的父亲token
示例值:wikbcOHIFxB0PJS2UTd2kF2SP6c
type MoveDocsToWikiSpaceNodeReq ¶
type MoveDocsToWikiSpaceNodeReq struct { Body *MoveDocsToWikiSpaceNodeReqBody `body:""` // contains filtered or unexported fields }
type MoveDocsToWikiSpaceNodeReqBodyBuilder ¶
type MoveDocsToWikiSpaceNodeReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewMoveDocsToWikiSpaceNodeReqBodyBuilder ¶
func NewMoveDocsToWikiSpaceNodeReqBodyBuilder() *MoveDocsToWikiSpaceNodeReqBodyBuilder
func (*MoveDocsToWikiSpaceNodeReqBodyBuilder) Apply ¶
func (builder *MoveDocsToWikiSpaceNodeReqBodyBuilder) Apply(apply bool) *MoveDocsToWikiSpaceNodeReqBodyBuilder
没有权限时,是否申请迁入文档
示例值:true
func (*MoveDocsToWikiSpaceNodeReqBodyBuilder) Build ¶
func (builder *MoveDocsToWikiSpaceNodeReqBodyBuilder) Build() *MoveDocsToWikiSpaceNodeReqBody
func (*MoveDocsToWikiSpaceNodeReqBodyBuilder) ObjToken ¶
func (builder *MoveDocsToWikiSpaceNodeReqBodyBuilder) ObjToken(objToken string) *MoveDocsToWikiSpaceNodeReqBodyBuilder
文档token
示例值:docbc6e1qBqt1O5mCBVA1QUKVEg
func (*MoveDocsToWikiSpaceNodeReqBodyBuilder) ObjType ¶
func (builder *MoveDocsToWikiSpaceNodeReqBodyBuilder) ObjType(objType string) *MoveDocsToWikiSpaceNodeReqBodyBuilder
文档类型
示例值: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 (builder *MoveDocsToWikiSpaceNodeReqBuilder) Body(body *MoveDocsToWikiSpaceNodeReqBody) *MoveDocsToWikiSpaceNodeReqBuilder
该接口允许添加已有云文档至知识库,并挂载在指定父页面下
func (*MoveDocsToWikiSpaceNodeReqBuilder) Build ¶
func (builder *MoveDocsToWikiSpaceNodeReqBuilder) Build() *MoveDocsToWikiSpaceNodeReq
func (*MoveDocsToWikiSpaceNodeReqBuilder) SpaceId ¶
func (builder *MoveDocsToWikiSpaceNodeReqBuilder) SpaceId(spaceId string) *MoveDocsToWikiSpaceNodeReqBuilder
知识库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 MoveResult ¶
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 (builder *MoveSpaceNodePathReqBodyBuilder) Build() (*MoveSpaceNodeReqBody, error)
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 MoveSpaceNodeReqBodyBuilder ¶
type MoveSpaceNodeReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewMoveSpaceNodeReqBodyBuilder ¶
func NewMoveSpaceNodeReqBodyBuilder() *MoveSpaceNodeReqBodyBuilder
func (*MoveSpaceNodeReqBodyBuilder) Build ¶
func (builder *MoveSpaceNodeReqBodyBuilder) Build() *MoveSpaceNodeReqBody
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 ¶
func (builder *MoveSpaceNodeReqBuilder) Body(body *MoveSpaceNodeReqBody) *MoveSpaceNodeReqBuilder
此方法用于在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 (builder *UpdateSpaceSettingReqBuilder) Build() *UpdateSpaceSettingReq
func (*UpdateSpaceSettingReqBuilder) Setting ¶
func (builder *UpdateSpaceSettingReqBuilder) Setting(setting *Setting) *UpdateSpaceSettingReqBuilder
根据space_id更新知识空间公共设置
func (*UpdateSpaceSettingReqBuilder) SpaceId ¶
func (builder *UpdateSpaceSettingReqBuilder) SpaceId(spaceId string) *UpdateSpaceSettingReqBuilder
知识空间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 (builder *UpdateTitleSpaceNodePathReqBodyBuilder) Build() (*UpdateTitleSpaceNodeReqBody, error)
func (*UpdateTitleSpaceNodePathReqBodyBuilder) Title ¶
func (builder *UpdateTitleSpaceNodePathReqBodyBuilder) Title(title string) *UpdateTitleSpaceNodePathReqBodyBuilder
节点新标题
示例值:新标题
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 (builder *UpdateTitleSpaceNodeReqBodyBuilder) Build() *UpdateTitleSpaceNodeReqBody
func (*UpdateTitleSpaceNodeReqBodyBuilder) Title ¶
func (builder *UpdateTitleSpaceNodeReqBodyBuilder) Title(title string) *UpdateTitleSpaceNodeReqBodyBuilder
节点新标题
示例值:新标题
type UpdateTitleSpaceNodeReqBuilder ¶
type UpdateTitleSpaceNodeReqBuilder struct {
// contains filtered or unexported fields
}
func NewUpdateTitleSpaceNodeReqBuilder ¶
func NewUpdateTitleSpaceNodeReqBuilder() *UpdateTitleSpaceNodeReqBuilder
func (*UpdateTitleSpaceNodeReqBuilder) Body ¶
func (builder *UpdateTitleSpaceNodeReqBuilder) Body(body *UpdateTitleSpaceNodeReqBody) *UpdateTitleSpaceNodeReqBuilder
此接口用于更新节点标题
func (*UpdateTitleSpaceNodeReqBuilder) Build ¶
func (builder *UpdateTitleSpaceNodeReqBuilder) Build() *UpdateTitleSpaceNodeReq
func (*UpdateTitleSpaceNodeReqBuilder) NodeToken ¶
func (builder *UpdateTitleSpaceNodeReqBuilder) NodeToken(nodeToken string) *UpdateTitleSpaceNodeReqBuilder
节点token
示例值:wikcnKQ1k3pcuo5uSK4t8Vabcef
func (*UpdateTitleSpaceNodeReqBuilder) SpaceId ¶
func (builder *UpdateTitleSpaceNodeReqBuilder) SpaceId(spaceId string) *UpdateTitleSpaceNodeReqBuilder
知识空间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