Documentation
¶
Index ¶
- Constants
- type DepartmentId
- type DepartmentIdBuilder
- type GetContentReq
- type GetContentReqBuilder
- func (builder *GetContentReqBuilder) Build() *GetContentReq
- func (builder *GetContentReqBuilder) ContentType(contentType string) *GetContentReqBuilder
- func (builder *GetContentReqBuilder) DocToken(docToken string) *GetContentReqBuilder
- func (builder *GetContentReqBuilder) DocType(docType string) *GetContentReqBuilder
- func (builder *GetContentReqBuilder) Lang(lang string) *GetContentReqBuilder
- type GetContentResp
- type GetContentRespData
- type V1
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 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"` // 内容
}
Click to show internal directories.
Click to hide internal directories.