larkdocs

package
v3.4.21 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2025 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

View Source
const (
	LangZH = "zh" // 中文
	LangEN = "en" // 英文
	LangJA = "ja" // 日文
)
View Source
const (
	ContentTypeMarkdown = "markdown" // Markdown 格式
)
View Source
const (
	DocTypeDOCX = "docx" // 新版文档
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DepartmentId

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

	OpenDepartmentId *string `json:"open_department_id,omitempty"` //
}

type DepartmentIdBuilder

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

func NewDepartmentIdBuilder

func NewDepartmentIdBuilder() *DepartmentIdBuilder

func (*DepartmentIdBuilder) Build

func (builder *DepartmentIdBuilder) Build() *DepartmentId

func (*DepartmentIdBuilder) DepartmentId

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

示例值:

func (*DepartmentIdBuilder) OpenDepartmentId

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

示例值:

type GetContentReq

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

type GetContentReqBuilder

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

func NewGetContentReqBuilder

func NewGetContentReqBuilder() *GetContentReqBuilder

func (*GetContentReqBuilder) Build

func (builder *GetContentReqBuilder) Build() *GetContentReq

func (*GetContentReqBuilder) ContentType

func (builder *GetContentReqBuilder) ContentType(contentType string) *GetContentReqBuilder

内容类型

示例值:markdown

func (*GetContentReqBuilder) DocToken

func (builder *GetContentReqBuilder) DocToken(docToken string) *GetContentReqBuilder

文档唯一标识

示例值:B4EPdAYx8oi8HRxgPQQbM15UcBf

func (*GetContentReqBuilder) DocType

func (builder *GetContentReqBuilder) DocType(docType string) *GetContentReqBuilder

文档类型

示例值:docx

func (*GetContentReqBuilder) Lang

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

语言

示例值:zh

type GetContentResp

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

func (*GetContentResp) Success

func (resp *GetContentResp) Success() bool

type GetContentRespData

type GetContentRespData struct {
	Content *string `json:"content,omitempty"` // 内容
}

type V1

type V1 struct {
	Content *content // content
}

func New

func New(config *larkcore.Config) *V1

Jump to

Keyboard shortcuts

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