larklingo

package
v3.2.7 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: MIT Imports: 8 Imported by: 5

Documentation

Index

Constants

View Source
const (
	UserIdTypeUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeUpdateDraftUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeUpdateDraftUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeUpdateDraftOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeCreateEntityUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeCreateEntityUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeCreateEntityOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeGetEntityUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeGetEntityUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeGetEntityOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeListEntityUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeListEntityUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeListEntityOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeSearchEntityUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeSearchEntityUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeSearchEntityOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeUpdateEntityUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeUpdateEntityUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeUpdateEntityOpenId  = "open_id"  // 以open_id来识别用户
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Abbreviation

type Abbreviation struct {
	Id *string `json:"id,omitempty"` // 相关其他词条 id
}

type AbbreviationBuilder

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

func NewAbbreviationBuilder

func NewAbbreviationBuilder() *AbbreviationBuilder

func (*AbbreviationBuilder) Build

func (builder *AbbreviationBuilder) Build() *Abbreviation

func (*AbbreviationBuilder) Id

相关其他词条 id

示例值:enterprise_51587960

type AigcConfig

type AigcConfig struct {
	NeedReview *bool   `json:"need_review,omitempty"` // 是否需要人工审核
	RepoId     *string `json:"repo_id,omitempty"`     // 词库ID
}

type AigcConfigBuilder

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

func NewAigcConfigBuilder

func NewAigcConfigBuilder() *AigcConfigBuilder

func (*AigcConfigBuilder) Build

func (builder *AigcConfigBuilder) Build() *AigcConfig

func (*AigcConfigBuilder) NeedReview

func (builder *AigcConfigBuilder) NeedReview(needReview bool) *AigcConfigBuilder

是否需要人工审核

示例值:false

func (*AigcConfigBuilder) RepoId

func (builder *AigcConfigBuilder) RepoId(repoId string) *AigcConfigBuilder

词库ID

示例值:7203646336854390000

type BaikeImage

type BaikeImage struct {
	Token *string `json:"token,omitempty"` // 通过文件接口上传后的图片 token
}

type BaikeImageBuilder

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

func NewBaikeImageBuilder

func NewBaikeImageBuilder() *BaikeImageBuilder

func (*BaikeImageBuilder) Build

func (builder *BaikeImageBuilder) Build() *BaikeImage

func (*BaikeImageBuilder) Token

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

通过文件接口上传后的图片 token

示例值:

type Classification

type Classification struct {
	Id        *string        `json:"id,omitempty"`         // 唯一分类 ID
	Name      *string        `json:"name,omitempty"`       // 分类名称
	FatherId  *string        `json:"father_id,omitempty"`  // 父级分类的 ID
	I18nNames []*I18nClsName `json:"i18n_names,omitempty"` // 国际化分类名
}

type ClassificationBuilder

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

func NewClassificationBuilder

func NewClassificationBuilder() *ClassificationBuilder

func (*ClassificationBuilder) Build

func (builder *ClassificationBuilder) Build() *Classification

func (*ClassificationBuilder) FatherId

func (builder *ClassificationBuilder) FatherId(fatherId string) *ClassificationBuilder

父级分类的 ID

示例值:7049606926702837777

func (*ClassificationBuilder) I18nNames

func (builder *ClassificationBuilder) I18nNames(i18nNames []*I18nClsName) *ClassificationBuilder

国际化分类名

示例值:

func (*ClassificationBuilder) Id

唯一分类 ID

示例值:7049606926702837761

func (*ClassificationBuilder) Name

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

分类名称

示例值:行业术语

type ClassificationFilter

type ClassificationFilter struct {
	Include []string `json:"include,omitempty"` // 需要获取的分类
	Exclude []string `json:"exclude,omitempty"` // 需要排除的分类
}

type ClassificationFilterBuilder

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

func NewClassificationFilterBuilder

func NewClassificationFilterBuilder() *ClassificationFilterBuilder

func (*ClassificationFilterBuilder) Build

func (*ClassificationFilterBuilder) Exclude

func (builder *ClassificationFilterBuilder) Exclude(exclude []string) *ClassificationFilterBuilder

需要排除的分类

示例值:

func (*ClassificationFilterBuilder) Include

func (builder *ClassificationFilterBuilder) Include(include []string) *ClassificationFilterBuilder

需要获取的分类

示例值:

type CorrectError

type CorrectError struct {
	Type         *int           `json:"type,omitempty"`          //
	Total        *int           `json:"total,omitempty"`         // 该类型错误在请求时间周期内的累计数量
	CorrectPairs []*CorrectPair `json:"correct_pairs,omitempty"` // 该类型错误在周期内具体的纠错对
}

type CorrectErrorBuilder

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

func NewCorrectErrorBuilder

func NewCorrectErrorBuilder() *CorrectErrorBuilder

func (*CorrectErrorBuilder) Build

func (builder *CorrectErrorBuilder) Build() *CorrectError

func (*CorrectErrorBuilder) CorrectPairs

func (builder *CorrectErrorBuilder) CorrectPairs(correctPairs []*CorrectPair) *CorrectErrorBuilder

该类型错误在周期内具体的纠错对

示例值:

func (*CorrectErrorBuilder) Total

func (builder *CorrectErrorBuilder) Total(total int) *CorrectErrorBuilder

该类型错误在请求时间周期内的累计数量

示例值:

func (*CorrectErrorBuilder) Type

func (builder *CorrectErrorBuilder) Type(type_ int) *CorrectErrorBuilder

示例值:

type CorrectInfo

type CorrectInfo struct {
	CorrectTotal   *int          `json:"correct_total,omitempty"`    // 用户英文纠错数总数
	EachdayCorrect []int         `json:"eachday_correct,omitempty"`  // 时间区间内每一天纠错数
	GrammarError   *CorrectError `json:"grammar_error,omitempty"`    // 语法错误相关统计信息
	SpellError     *CorrectError `json:"spell_error,omitempty"`      // 拼写错误相关统计信息
	NounError      *CorrectError `json:"noun_error,omitempty"`       // 单复数错误相关统计信息
	VerbTenseError *CorrectError `json:"verb_tense_error,omitempty"` // 时态错误相关统计信息
}

type CorrectInfoBuilder

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

func NewCorrectInfoBuilder

func NewCorrectInfoBuilder() *CorrectInfoBuilder

func (*CorrectInfoBuilder) Build

func (builder *CorrectInfoBuilder) Build() *CorrectInfo

func (*CorrectInfoBuilder) CorrectTotal

func (builder *CorrectInfoBuilder) CorrectTotal(correctTotal int) *CorrectInfoBuilder

用户英文纠错数总数

示例值:

func (*CorrectInfoBuilder) EachdayCorrect

func (builder *CorrectInfoBuilder) EachdayCorrect(eachdayCorrect []int) *CorrectInfoBuilder

时间区间内每一天纠错数

示例值:

func (*CorrectInfoBuilder) GrammarError

func (builder *CorrectInfoBuilder) GrammarError(grammarError *CorrectError) *CorrectInfoBuilder

语法错误相关统计信息

示例值:

func (*CorrectInfoBuilder) NounError

func (builder *CorrectInfoBuilder) NounError(nounError *CorrectError) *CorrectInfoBuilder

单复数错误相关统计信息

示例值:

func (*CorrectInfoBuilder) SpellError

func (builder *CorrectInfoBuilder) SpellError(spellError *CorrectError) *CorrectInfoBuilder

拼写错误相关统计信息

示例值:

func (*CorrectInfoBuilder) VerbTenseError

func (builder *CorrectInfoBuilder) VerbTenseError(verbTenseError *CorrectError) *CorrectInfoBuilder

时态错误相关统计信息

示例值:

type CorrectPair

type CorrectPair struct {
	SourceText *string `json:"source_text,omitempty"` // 被纠错的原词
	TargetText *string `json:"target_text,omitempty"` // 纠错建议替换的新词
	Total      *int    `json:"total,omitempty"`       // 纠错对在周期内出现的次数
}

type CorrectPairBuilder

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

func NewCorrectPairBuilder

func NewCorrectPairBuilder() *CorrectPairBuilder

func (*CorrectPairBuilder) Build

func (builder *CorrectPairBuilder) Build() *CorrectPair

func (*CorrectPairBuilder) SourceText

func (builder *CorrectPairBuilder) SourceText(sourceText string) *CorrectPairBuilder

被纠错的原词

示例值:

func (*CorrectPairBuilder) TargetText

func (builder *CorrectPairBuilder) TargetText(targetText string) *CorrectPairBuilder

纠错建议替换的新词

示例值:

func (*CorrectPairBuilder) Total

func (builder *CorrectPairBuilder) Total(total int) *CorrectPairBuilder

纠错对在周期内出现的次数

示例值:

type CreateDraftReq

type CreateDraftReq struct {
	Entity *Entity `body:""`
	// contains filtered or unexported fields
}

type CreateDraftReqBuilder

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

func NewCreateDraftReqBuilder

func NewCreateDraftReqBuilder() *CreateDraftReqBuilder

func (*CreateDraftReqBuilder) Build

func (builder *CreateDraftReqBuilder) Build() *CreateDraftReq

func (*CreateDraftReqBuilder) Entity

func (builder *CreateDraftReqBuilder) Entity(entity *Entity) *CreateDraftReqBuilder

func (*CreateDraftReqBuilder) RepoId

func (builder *CreateDraftReqBuilder) RepoId(repoId string) *CreateDraftReqBuilder

词库ID

示例值:7202510112396640276

func (*CreateDraftReqBuilder) UserIdType

func (builder *CreateDraftReqBuilder) UserIdType(userIdType string) *CreateDraftReqBuilder

此次调用中使用的用户ID的类型

示例值:

type CreateDraftResp

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

func (*CreateDraftResp) Success

func (resp *CreateDraftResp) Success() bool

type CreateDraftRespData

type CreateDraftRespData struct {
	Draft *Draft `json:"draft,omitempty"` //
}

type CreateEntityReq

type CreateEntityReq struct {
	Entity *Entity `body:""`
	// contains filtered or unexported fields
}

type CreateEntityReqBuilder

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

func NewCreateEntityReqBuilder

func NewCreateEntityReqBuilder() *CreateEntityReqBuilder

func (*CreateEntityReqBuilder) Build

func (builder *CreateEntityReqBuilder) Build() *CreateEntityReq

func (*CreateEntityReqBuilder) Entity

func (builder *CreateEntityReqBuilder) Entity(entity *Entity) *CreateEntityReqBuilder

func (*CreateEntityReqBuilder) RepoId

func (builder *CreateEntityReqBuilder) RepoId(repoId string) *CreateEntityReqBuilder

词库 ID

示例值:7152790921053274113

func (*CreateEntityReqBuilder) UserIdType

func (builder *CreateEntityReqBuilder) UserIdType(userIdType string) *CreateEntityReqBuilder

此次调用中使用的用户ID的类型

示例值:

type CreateEntityResp

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

func (*CreateEntityResp) Success

func (resp *CreateEntityResp) Success() bool

type CreateEntityRespData

type CreateEntityRespData struct {
	Entity *Entity `json:"entity,omitempty"` //
}

type DeleteEntityReq added in v3.0.34

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

type DeleteEntityReqBuilder added in v3.0.34

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

func NewDeleteEntityReqBuilder added in v3.0.34

func NewDeleteEntityReqBuilder() *DeleteEntityReqBuilder

func (*DeleteEntityReqBuilder) Build added in v3.0.34

func (builder *DeleteEntityReqBuilder) Build() *DeleteEntityReq

func (*DeleteEntityReqBuilder) EntityId added in v3.0.34

func (builder *DeleteEntityReqBuilder) EntityId(entityId string) *DeleteEntityReqBuilder

词条 id

示例值:enterprise_43742132363

func (*DeleteEntityReqBuilder) OuterId added in v3.0.34

func (builder *DeleteEntityReqBuilder) OuterId(outerId string) *DeleteEntityReqBuilder

外部唯一 id(使用时需要将路径中的词条 ID 固定为:enterprise_0,且提供 provider 和 outer_id)

示例值:123aaa

func (*DeleteEntityReqBuilder) Provider added in v3.0.34

func (builder *DeleteEntityReqBuilder) Provider(provider string) *DeleteEntityReqBuilder

数据提供方(使用时需要将路径中的词条 ID 固定为:enterprise_0,且提供 provider 和 outer_id)

示例值:星云

type DeleteEntityResp added in v3.0.34

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

func (*DeleteEntityResp) Success added in v3.0.34

func (resp *DeleteEntityResp) Success() bool

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 DisplayStatus

type DisplayStatus struct {
	AllowHighlight *bool `json:"allow_highlight,omitempty"` // 是否允许在 IM 和 Doc 等场景进行高亮提示
	AllowSearch    *bool `json:"allow_search,omitempty"`    // 是否允许在飞书中被搜索到
}

type DisplayStatusBuilder

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

func NewDisplayStatusBuilder

func NewDisplayStatusBuilder() *DisplayStatusBuilder

func (*DisplayStatusBuilder) AllowHighlight

func (builder *DisplayStatusBuilder) AllowHighlight(allowHighlight bool) *DisplayStatusBuilder

是否允许在 IM 和 Doc 等场景进行高亮提示

示例值:true

func (*DisplayStatusBuilder) AllowSearch

func (builder *DisplayStatusBuilder) AllowSearch(allowSearch bool) *DisplayStatusBuilder

是否允许在飞书中被搜索到

示例值:true

func (*DisplayStatusBuilder) Build

func (builder *DisplayStatusBuilder) Build() *DisplayStatus

type DocBullet

type DocBullet struct {
	Text *string `json:"text,omitempty"` // 文本内容
}

type DocBulletBuilder

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

func NewDocBulletBuilder

func NewDocBulletBuilder() *DocBulletBuilder

func (*DocBulletBuilder) Build

func (builder *DocBulletBuilder) Build() *DocBullet

func (*DocBulletBuilder) Text

func (builder *DocBulletBuilder) Text(text string) *DocBulletBuilder

文本内容

示例值:无序列表文本

type DocCode

type DocCode struct {
	Text *string `json:"text,omitempty"` // 代码文本内容
}

type DocCodeBuilder

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

func NewDocCodeBuilder

func NewDocCodeBuilder() *DocCodeBuilder

func (*DocCodeBuilder) Build

func (builder *DocCodeBuilder) Build() *DocCode

func (*DocCodeBuilder) Text

func (builder *DocCodeBuilder) Text(text string) *DocCodeBuilder

代码文本内容

示例值:int a = 10;

type DocContainer

type DocContainer struct {
}

type DocContent

type DocContent struct {
	Id          *string       `json:"id,omitempty"`           // 节点ID
	Children    []string      `json:"children,omitempty"`     // 子节点
	ContentType *int          `json:"content_type,omitempty"` // 内容类型
	Text        *DocText      `json:"text,omitempty"`         // 纯文本
	Heading     *DocHeading   `json:"heading,omitempty"`      // 标题
	Bullet      *DocBullet    `json:"bullet,omitempty"`       // 无序列表
	Ordered     *DocRodered   `json:"ordered,omitempty"`      // 有序列表
	Code        *DocCode      `json:"code,omitempty"`         // 代码块
	Link        *DocLink      `json:"link,omitempty"`         // 链接
	Image       *DocImage     `json:"image,omitempty"`        // 图片
	User        *DocUser      `json:"user,omitempty"`         // 用户
	Divider     *DocDivider   `json:"divider,omitempty"`      // 分割线
	Container   *DocContainer `json:"container,omitempty"`    // 容器
}

type DocContentBuilder

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

func NewDocContentBuilder

func NewDocContentBuilder() *DocContentBuilder

func (*DocContentBuilder) Build

func (builder *DocContentBuilder) Build() *DocContent

func (*DocContentBuilder) Bullet

func (builder *DocContentBuilder) Bullet(bullet *DocBullet) *DocContentBuilder

无序列表

示例值:

func (*DocContentBuilder) Children

func (builder *DocContentBuilder) Children(children []string) *DocContentBuilder

子节点

示例值:

func (*DocContentBuilder) Code

func (builder *DocContentBuilder) Code(code *DocCode) *DocContentBuilder

代码块

示例值:

func (*DocContentBuilder) Container

func (builder *DocContentBuilder) Container(container *DocContainer) *DocContentBuilder

容器

示例值:

func (*DocContentBuilder) ContentType

func (builder *DocContentBuilder) ContentType(contentType int) *DocContentBuilder

内容类型

示例值:1

func (*DocContentBuilder) Divider

func (builder *DocContentBuilder) Divider(divider *DocDivider) *DocContentBuilder

分割线

示例值:

func (*DocContentBuilder) Heading

func (builder *DocContentBuilder) Heading(heading *DocHeading) *DocContentBuilder

标题

示例值:

func (*DocContentBuilder) Id

func (builder *DocContentBuilder) Id(id string) *DocContentBuilder

节点ID

示例值:xxxxx

func (*DocContentBuilder) Image

func (builder *DocContentBuilder) Image(image *DocImage) *DocContentBuilder

图片

示例值:

func (builder *DocContentBuilder) Link(link *DocLink) *DocContentBuilder

链接

示例值:

func (*DocContentBuilder) Ordered

func (builder *DocContentBuilder) Ordered(ordered *DocRodered) *DocContentBuilder

有序列表

示例值:

func (*DocContentBuilder) Text

func (builder *DocContentBuilder) Text(text *DocText) *DocContentBuilder

纯文本

示例值:

func (*DocContentBuilder) User

func (builder *DocContentBuilder) User(user *DocUser) *DocContentBuilder

用户

示例值:

type DocData

type DocData struct {
	DocToken      *string       `json:"doc_token,omitempty"`       // 文档token
	CreatedAt     *string       `json:"created_at,omitempty"`      // 文档创建时间
	UpdatedAt     *string       `json:"updated_at,omitempty"`      // 文档最后更新时间
	DocContents   []*DocContent `json:"doc_contents,omitempty"`    // 文档数据
	RootContentId *string       `json:"root_content_id,omitempty"` // 根节点ID
}

type DocDataBuilder

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

func NewDocDataBuilder

func NewDocDataBuilder() *DocDataBuilder

func (*DocDataBuilder) Build

func (builder *DocDataBuilder) Build() *DocData

func (*DocDataBuilder) CreatedAt

func (builder *DocDataBuilder) CreatedAt(createdAt string) *DocDataBuilder

文档创建时间

示例值:1692242106

func (*DocDataBuilder) DocContents

func (builder *DocDataBuilder) DocContents(docContents []*DocContent) *DocDataBuilder

文档数据

示例值:

func (*DocDataBuilder) DocToken

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

文档token

示例值:docxxxxxxxxx

func (*DocDataBuilder) RootContentId

func (builder *DocDataBuilder) RootContentId(rootContentId string) *DocDataBuilder

根节点ID

示例值:blockxxxx

func (*DocDataBuilder) UpdatedAt

func (builder *DocDataBuilder) UpdatedAt(updatedAt string) *DocDataBuilder

文档最后更新时间

示例值:1692242106

type DocDivider

type DocDivider struct {
}

type DocHeading

type DocHeading struct {
	Text         *string `json:"text,omitempty"`          // 标题文本内容
	HeadingLevel *int    `json:"heading_level,omitempty"` // 标题等级
}

type DocHeadingBuilder

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

func NewDocHeadingBuilder

func NewDocHeadingBuilder() *DocHeadingBuilder

func (*DocHeadingBuilder) Build

func (builder *DocHeadingBuilder) Build() *DocHeading

func (*DocHeadingBuilder) HeadingLevel

func (builder *DocHeadingBuilder) HeadingLevel(headingLevel int) *DocHeadingBuilder

标题等级

示例值:1

func (*DocHeadingBuilder) Text

func (builder *DocHeadingBuilder) Text(text string) *DocHeadingBuilder

标题文本内容

示例值:这是一段标题内容

type DocImage

type DocImage struct {
	ImageKey *string `json:"image_key,omitempty"` // 图片key
}

type DocImageBuilder

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

func NewDocImageBuilder

func NewDocImageBuilder() *DocImageBuilder

func (*DocImageBuilder) Build

func (builder *DocImageBuilder) Build() *DocImage

func (*DocImageBuilder) ImageKey

func (builder *DocImageBuilder) ImageKey(imageKey string) *DocImageBuilder

图片key

示例值:v2_xxxxxxxxxxxx

type DocLink struct {
	Title *string `json:"title,omitempty"` // 链接标题
	Url   *string `json:"url,omitempty"`   // 链接URL
}

type DocLinkBuilder

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

func NewDocLinkBuilder

func NewDocLinkBuilder() *DocLinkBuilder

func (*DocLinkBuilder) Build

func (builder *DocLinkBuilder) Build() *DocLink

func (*DocLinkBuilder) Title

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

链接标题

示例值:百度

func (*DocLinkBuilder) Url

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

链接URL

示例值:https://www.baidu.com

type DocRodered

type DocRodered struct {
	Text *string `json:"text,omitempty"` // 文本内容
}

type DocRoderedBuilder

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

func NewDocRoderedBuilder

func NewDocRoderedBuilder() *DocRoderedBuilder

func (*DocRoderedBuilder) Build

func (builder *DocRoderedBuilder) Build() *DocRodered

func (*DocRoderedBuilder) Text

func (builder *DocRoderedBuilder) Text(text string) *DocRoderedBuilder

文本内容

示例值:有序列表文本

type DocText

type DocText struct {
	Text *string `json:"text,omitempty"` // 纯文本内容
}

type DocTextBuilder

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

func NewDocTextBuilder

func NewDocTextBuilder() *DocTextBuilder

func (*DocTextBuilder) Build

func (builder *DocTextBuilder) Build() *DocText

func (*DocTextBuilder) Text

func (builder *DocTextBuilder) Text(text string) *DocTextBuilder

纯文本内容

示例值:这是一段纯文本内容

type DocUser

type DocUser struct {
	UserId *string `json:"user_id,omitempty"` // 用户ID
}

type DocUserBuilder

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

func NewDocUserBuilder

func NewDocUserBuilder() *DocUserBuilder

func (*DocUserBuilder) Build

func (builder *DocUserBuilder) Build() *DocUser

func (*DocUserBuilder) UserId

func (builder *DocUserBuilder) UserId(userId string) *DocUserBuilder

用户ID

示例值:ou_xxxxxxx

type DownloadFileReq

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

type DownloadFileReqBuilder

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

func NewDownloadFileReqBuilder

func NewDownloadFileReqBuilder() *DownloadFileReqBuilder

func (*DownloadFileReqBuilder) Build

func (builder *DownloadFileReqBuilder) Build() *DownloadFileReq

func (*DownloadFileReqBuilder) FileToken

func (builder *DownloadFileReqBuilder) FileToken(fileToken string) *DownloadFileReqBuilder

需要下载的文件 token

示例值:

type DownloadFileResp

type DownloadFileResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	File     io.Reader `json:"-"`
	FileName string    `json:"-"`
}

func (*DownloadFileResp) Success

func (resp *DownloadFileResp) Success() bool

func (*DownloadFileResp) WriteFile

func (resp *DownloadFileResp) WriteFile(fileName string) error

type Draft

type Draft struct {
	DraftId *string `json:"draft_id,omitempty"` // 草稿 Id
	Entity  *Entity `json:"entity,omitempty"`   // 实体词
}

type DraftBuilder

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

func NewDraftBuilder

func NewDraftBuilder() *DraftBuilder

func (*DraftBuilder) Build

func (builder *DraftBuilder) Build() *Draft

func (*DraftBuilder) DraftId

func (builder *DraftBuilder) DraftId(draftId string) *DraftBuilder

草稿 Id

示例值:42322

func (*DraftBuilder) Entity

func (builder *DraftBuilder) Entity(entity *Entity) *DraftBuilder

实体词

示例值:

type Entity

type Entity struct {
	Id       *string `json:"id,omitempty"`        // 实体词 Id
	MainKeys []*Term `json:"main_keys,omitempty"` // 词条名

	Aliases     []*Term          `json:"aliases,omitempty"`      // 别名
	Description *string          `json:"description,omitempty"`  // 详情描述
	Creator     *string          `json:"creator,omitempty"`      // 创建者
	CreateTime  *string          `json:"create_time,omitempty"`  // 词条创建时间(秒级时间戳)
	Updater     *string          `json:"updater,omitempty"`      // 最近一次更新者
	UpdateTime  *string          `json:"update_time,omitempty"`  // 最近一次更新词条时间(秒级时间戳)
	RelatedMeta *RelatedMeta     `json:"related_meta,omitempty"` // 相关数据
	Statistics  *Statistics      `json:"statistics,omitempty"`   // 统计数据
	OuterInfo   *OuterInfo       `json:"outer_info,omitempty"`   // 外部 id 关联数据
	RichText    *string          `json:"rich_text,omitempty"`    // 富文本格式(当填写富文本内容时,description字段将会失效可不填写),支持的格式参考[企业百科指南](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/baike-v1/overview)中的释义部分
	Source      *int             `json:"source,omitempty"`       // 词条的创建来源,1:用户主动创建,2:批量导入,3:官方词,4:OpenAPI 创建
	I18nDescs   []*I18nEntryDesc `json:"i18n_descs,omitempty"`   // 国际化的词条释义
}

type EntityBuilder

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

func NewEntityBuilder

func NewEntityBuilder() *EntityBuilder

func (*EntityBuilder) Aliases

func (builder *EntityBuilder) Aliases(aliases []*Term) *EntityBuilder

别名

示例值:

func (*EntityBuilder) Build

func (builder *EntityBuilder) Build() *Entity

func (*EntityBuilder) CreateTime

func (builder *EntityBuilder) CreateTime(createTime string) *EntityBuilder

词条创建时间(秒级时间戳)

示例值:1649318125

func (*EntityBuilder) Creator

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

创建者

示例值:ou_30b07b63089ea46518789914dac63d36

func (*EntityBuilder) Description

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

详情描述

示例值:企业百科是飞书提供的一款知识管理工具,通过企业百科可以帮助企业将分散的知识信息进行聚合,并通过UGC的方式,促进企业知识的保鲜和流通

func (*EntityBuilder) I18nDescs

func (builder *EntityBuilder) I18nDescs(i18nDescs []*I18nEntryDesc) *EntityBuilder

国际化的词条释义

示例值:

func (*EntityBuilder) Id

func (builder *EntityBuilder) Id(id string) *EntityBuilder

实体词 Id

示例值:enterprise_40217521

func (*EntityBuilder) MainKeys

func (builder *EntityBuilder) MainKeys(mainKeys []*Term) *EntityBuilder

词条名

示例值:

func (*EntityBuilder) OuterInfo

func (builder *EntityBuilder) OuterInfo(outerInfo *OuterInfo) *EntityBuilder

外部 id 关联数据

示例值:

func (*EntityBuilder) RelatedMeta

func (builder *EntityBuilder) RelatedMeta(relatedMeta *RelatedMeta) *EntityBuilder

相关数据

示例值:

func (*EntityBuilder) RichText

func (builder *EntityBuilder) RichText(richText string) *EntityBuilder

富文本格式(当填写富文本内容时,description字段将会失效可不填写),支持的格式参考[企业百科指南](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/baike-v1/overview)中的释义部分

示例值:<b>加粗</b><i>斜体</i><p><a href="https://feishu.cn">l链接</a></p><p><span>企业百科是飞书提供的一款知识管理工具,通过企业百科可以帮助企业将分散的知识信息进行聚合,并通过UGC的方式,促进企业知识的保鲜和流通</span></p>

func (*EntityBuilder) Source

func (builder *EntityBuilder) Source(source int) *EntityBuilder

词条的创建来源,1:用户主动创建,2:批量导入,3:官方词,4:OpenAPI 创建

示例值:1

func (*EntityBuilder) Statistics

func (builder *EntityBuilder) Statistics(statistics *Statistics) *EntityBuilder

统计数据

示例值:

func (*EntityBuilder) UpdateTime

func (builder *EntityBuilder) UpdateTime(updateTime string) *EntityBuilder

最近一次更新词条时间(秒级时间戳)

示例值:1649318125

func (*EntityBuilder) Updater

func (builder *EntityBuilder) Updater(updater string) *EntityBuilder

最近一次更新者

示例值:ou_30b07b63089ea46518789914dac63d36

type EntityCardData

type EntityCardData struct {
	Card         *string `json:"card,omitempty"`          // 根据请求的渲染类型进行渲染后的词条卡片数据
	Id           *string `json:"id,omitempty"`            // 卡片对应词条的id
	Key          *string `json:"key,omitempty"`           // 用户点击的高亮词条
	CardType     *int    `json:"card_type,omitempty"`     // 词条卡片类型
	TemplateName *string `json:"template_name,omitempty"` // 卡片模版名
}

type EntityCardDataBuilder

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

func NewEntityCardDataBuilder

func NewEntityCardDataBuilder() *EntityCardDataBuilder

func (*EntityCardDataBuilder) Build

func (builder *EntityCardDataBuilder) Build() *EntityCardData

func (*EntityCardDataBuilder) Card

func (builder *EntityCardDataBuilder) Card(card string) *EntityCardDataBuilder

根据请求的渲染类型进行渲染后的词条卡片数据

示例值:<view className="aslcard-baike-ultra-card larkw-aslCard-layout-flex aslcard-baike-container-outer without-copyperm-dom" style='flex-direction: column; width: 100%; box-sizing: border-box; height: 100%; max-height: inherit; max-width: inherit;position: relative;'> <style id="baike-card-external-ultra"> .aslcard-baike-container-outer { min-width: 320px; } .abbreviation-cardItem_insearch .aslcard-baike-container-outer { min-width: 100%; } .larkw-aslCard-card-container .larkw-aslCard-element-abbrnav-bar { padding-top: 12px; } .larkw-aslCard-baikeCard .larkw-aslCard-showInLark { display: none; } .larkw-aslCard-baikeCard-inLark .larkw-aslCard-showInLark { display: block; } .larkw-aslCard-baikeCard-inLark .larkw-aslCard-footer-ignoreBtn { display: none; } .list-item-avatar { margin-right: 8px; flex-shrink: 0; overflow: hidden; border-radius: 8px; } .list-item-avatar-bg { background-color: @primary-pri-100; } .list-item-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: @text-title; } .list-item-title.larkw-aslCard-text-link-button { margin-left: -2px; } .larkw-aslCard-text-link-button { padding: 0 4px; transition: none; border-radius: 6px; } .larkw-aslCard-text-link-button:hover { color: @text-link-normal; } .larkw-aslCard-text-link-button:active { color: @text-link-pressed; } .larkw-aslCard-baike-header {} .larkw-aslCard-baikeCard-actions-icon .universe-icon { font-size: 16px; } .baikeSectionHeader { width: 100%; box-sizing: border-box; padding-left: 16px; } .baikeSectionHeaderInner { padding: 8px 0; flex-shrink: 0; font-size: 12px; margin-right: 4px; line-height: 20px; color: @text-caption; } .larkw-aslCard-ig .larkw-aslCard-element-abbrnav-bar { padding: 18px 0 10px 0; margin-left: -4px; } .abbreviation-cardItem_insearch .larkw-aslCard-showInLarkSearch { display: block; } .abbreviation-cardItem_insearch .larkw-aslCard-hideInLarkSearch { display: none; } .abbreviation-cardItem_insearch .larkw-aslCard-icon-mask.larkw-aslCard-baikeCard-actions-icon:not(:last-child), .abbreviation-cardItem_insearch .larkw-aslCard-icon-mask:not(:last-child) { display: none; } .baike-card-link-item .larkw-aslCard-element-image-fallback, .baike-card-link-item .larkw-aslCard-element-plImage-placeholder { background-color: @primary-pri-100; } .baike-card-link-item-default { display: flex; justify-content: center; align-items: center; background-color: @primary-pri-100; color: @text-link-normal; } .larkw-aslCard-text-link-ig:hover { color: @text-link-hover; } .larkw-aslCard-text-link-ig:active { color: @text-link-pressed; } .larkw-aslCard-abbrClassify-tag .ud__tag__content { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .larkw-aslCard-layout-block.larkw-abbreviation-content { padding: 0; box-sizing: inherit; } .larkw-abbreviation-content { border-radius: 10px; } .list-item-avatar-user .ud__avatar { height: 24px !important; width: 24px !important; } .lux-ellipsis-line { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 50px; } .ud__menu-normal-item-title-content.ud__menu-normal-item-title-content-text-overflow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .asl-section-description .larkw-aslCard-element-text { white-space: pre-wrap; word-break: break-word; } .abbreviation-cardItem_insearch .larkw-aslCard-element-image-set .image-cell { width: 9.18vw; height: 9.18vw; } .larkw-aslCard-element-rich-text .larkw-aslCard-element-link, .larkw-aslCard-element-rich-text .larkw-aslCard-element-richlink { margin: 0px !important; padding: 3px 2px; display: inline; } .larkw-aslCard-element-rich-text .larkw-aslCard-element-abbreviation { display: inline; cursor: pointer; line-height: 20px; position: relative; border-bottom-style: solid; border-width: 1px; border-image-slice: 1; border-image-source: repeating-linear-gradient(90deg, @N650 0, @N650 1px, transparent 0, transparent 3px); } .larkw-aslCard-element-rich-text .larkw-aslCard-element-abbreviation:hover, .larkw-aslCard-element-rich-text .larkw-aslCard-element-abbreviation:active { border-bottom-color: @B500; } .larkw-aslCard-element-rich-text .larkw-aslCard-element-abbreviation:hover { color: @B500; border-image-source: repeating-linear-gradient(90deg, @B500 0, @B500 1px, transparent 0, transparent 3px); } .larkw-aslCard-element-at { color: @text-link-normal !important; } .main-key-content { width: fit-content; padding-bottom: 4px; } .main-key-tooltip { cursor: pointer; } .main-key-tooltip:hover { .larkw-aslCard-element-text { color: @text-link-hover !important; } } .larkw-aslCard-baikecard-feedback .panel { display: flex; flex-wrap: wrap; grid-template-columns: unset; grid-template-rows: unset; .capsule { min-width: 183px; .capsule-text { overflow: hidden; text-overflow: ellipsis; } } } </style> <style id="aslcard_theme_ultra"> .ai-popup-portal .ai-popup-wrapper { border: none; overflow: inherit; box-shadow: @shadow-s4-down; } .larkw-aslCard-util-bg-ultra { background-repeat: no-repeat; background-position: 0 0; background-size: 100% 143px; } .larkw-aslCard-card-theme-LIGHT .larkw-aslCard-util-bg-ultra { background-image: url(https://lf-cdn-tos.bytescm.com/obj/static/asl-card/lm-min-ultra.png?time=202209222) } .larkw-aslCard-card-theme-DARK .larkw-aslCard-util-bg-ultra { background-image: url(https://lf-cdn-tos.bytescm.com/obj/static/asl-card/dm-min-ultra.png?time=202209222) } .aslcard-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .aslcard-baike-section-ultra { padding: 6px 0px; } .asl-baikeultra-section-title { font-weight: 500; font-size: 12px; line-height: 22px; display: flex; align-items: center; padding: 4px 20px; color: @text-title; .section-subTitle { color: @text-caption; font-weight: 400; padding-left: 2px; } } .asl-baikeultra-list-item { padding: 6px 20px; display: flex; align-items: center; .item-tag-md { margin-left: 4px; } } .aslcard-baike-btn { display: flex; align-items: center; justify-content: center; border-radius: 6px; cursor: pointer; } .aslcard-baike-btn:hover { background-color: @fill-hover; } .aslcard-baike-btn-extra-small { height: 24px; padding: 0 2px; } .aslcard-baike-btn-logo {} .aslcard-baike-category-item { margin: 4px 8px 4px 0px; position: relative; cursor: pointer; line-height: 20px; display: flex; .category-tag-icon { position: absolute; right: 6px; display: flex; color: @udtoken-tag-text-blue; } .aslcard-baike-tag-md { font-size: 12px; font-weight: 400; color: @udtoken-tag-text-blue; background-color: @udtoken-tag-bg-blue; cursor: pointer; padding-right: 17px; } } .aslcard-baike-category-item: hover { .aslcard-baike-tag-md { background-color: @udtoken-tag-bg-blue-hover; } } .aslcard-baike-btn-bg-primary { cursor: pointer; background-color: @primary-pri-50; } .aslcard-baike-btn-bg-primary:hover { background-color: @primary-pri-100; } .aslcard-baike-btn-bg-primary:active { background-color: @primary-pri-200; } .aslcard-baike-divider { height: 1px; background-color: @line-divider-default; transform: scaleY(0.5); } .aslcard-baike-navbar { user-select: none; box-sizing: border-box; background-color: @bg-float; border-radius: 10px 10px 0 0; position: absolute; width: 100%; z-index: 3; overflow: hidden; height: 56px; opacity: 0; pointer-events: none; } .aslcard-baike-navbar-content { width: 100%; height: 22px; display: flex; align-items: center; border-radius: 10px 10px 0 0; overflow: hidden; } .aslcard-baike-navbar-noback { box-sizing: border-box; padding: 0px 20px; height: 22px; } .aslcard-baike-navbar-withback { justify-content: center; display: none; } .larkw-aslCard-baikeCard-scrolled .aslcard-baike-navbar { opacity: 1; pointer-events: auto; padding-top: 21px; transition: opacity 0.15s; } .aslcard-baike-navbar-goback-btn { display: none; position: absolute; top: 20px; left: 16px; z-index: 3; } .aslcard-baike-nav-placeloader { display: none; height: 28px; width: 100%; } .larkw-aslCard-baikeCard-withgoback .aslcard-baike-navbar-goback-btn { display: flex; } .larkw-aslCard-baikeCard-withgoback .aslcard-baike-navbar-noback { display: none; } .larkw-aslCard-baikeCard-withgoback.larkw-aslCard-baikeCard-scrolled .aslcard-baike-navbar-withback { display: flex; } .larkw-aslCard-baikeCard-withgoback .aslcard-baike-nav-placeloader { display: block; } .larkw-aslCard-element-abbrmultidesc .abbrmultidesc-list { max-height: 150px; overflow: hidden auto; margin-left: -8px; margin-right: -8px; } .larkw-aslCard-element-abbrmultidesc .abbrmultidesc-item-content { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .abbreviation-cardItem_insearch { border-radius: 8px; } .abbreviation-cardItem_insearch .larkw-aslCard-card-theme-LIGHT .larkw-aslCard-util-bg-ultra, .abbreviation-cardItem_insearch .larkw-aslCard-card-theme-DARK .larkw-aslCard-util-bg-ultra { background-image: none; } .larkw-aslCard-element-userlistV2 { margin-left: -4px; } .aslcard-baike-logo-btn-img { display: flex; transition: background-image 0.15s; } .aslcard-baike-logo-btn-img-placeholder { opacity: 0; } .aslcard-baike-logo-btn { color: @icon-n3; .repo_name { color: @text-placeholder; font-size: 12px; padding-left: 0px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; } } .aslcard-baike-logo-btn:hover { color: @icon-n2; .repo_name { color: @text-title; } } .aslcard-baike-logo-btn .aslcard-baike-logo-btn-img { background-image: url(https://lf-cdn-tos.bytescm.com/obj/static/asl-card/baike-logo-gray-lm_zh-CN_v2.svg); } .aslcard-baike-logo-btn:hover .aslcard-baike-logo-btn-img { background-image: url(https://lf-cdn-tos.bytescm.com/obj/static/asl-card/baike-logo-colorful-lm_zh-CN_v2.svg); } .larkw-aslCard-card-theme-DARK .aslcard-baike-logo-btn .aslcard-baike-logo-btn-img { background-image: url(https://lf-cdn-tos.bytescm.com/obj/static/asl-card/baike-logo-gray-dm_zh-CN_v2.svg); } .larkw-aslCard-card-theme-DARK .aslcard-baike-logo-btn:hover .aslcard-baike-logo-btn-img { background-image: url(https://lf-cdn-tos.bytescm.com/obj/static/asl-card/baike-logo-colorful-dm_zh-CN_v2.svg); } .larkw-aslCard-element-userlistV2-content .aslcard-barike-ultra-useritem:not(:last-child) { margin-right: 4px; } .larkw-aslCard-element-userlistV2-hint .username { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 144px; } .aslcard-baike-ultra-card .larkw-aslCard-footer-dislike-button .universe-icon.larkw-aslCard-footer-like-icon { color: @icon-n3; } .larkw-aslCard-element-abbrmultidesc .abbrmultidesc-list { padding-bottom: 4px; max-height: 144px; overflow: hidden overlay; margin-left: -5px; margin-right: -5px; } .larkw-aslCard-element-abbrmultidesc .abbrmultidesc-item { line-height: 18px; padding: 7px 5px 7px 18px; } .larkw-aslCard-element-abbrmultidesc .abbrmultidesc-item-active { color: @text-title; } .larkw-aslCard-element-abbrmultidesc .abbrmultidesc-item-visited { color: @text-title; } .larkw-aslCard-element-abbrmultidesc .abbrmultidesc-item:before { content: ""; position: absolute; top: 13px; border-radius: 50%; left: 5px; width: 6px; height: 6px; background-color: @icon-disabled; } .larkw-aslCard-element-abbrmultidesc .abbrmultidesc-item-active:before { background-color: @B500; } .larkw-aslCard-element-abbrmultidesc div.abbrmultidesc-item { padding: 7px 5px 7px 18px; } .larkw-aslCard-element-abbrmultidesc .abbrmultidesc-item .abbrmultidesc-item-content { padding: 0; } .larkw-aslCard-element-abbrmultidesc .abbrmultidesc-item-pinItem { margin-right: -5px; } .abbrmultidesc-list::-webkit-scrollbar-thumb:hover { background-color: transparent !important; } .-container { display: block; } .aslCard-baikeCard-alias-wrapper { margin-top: 2px; .aslCard-baikeCard-alias { color: @text-caption; font-size: 14px; line-height: 22px; } } .ellipsis-two-line { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .ellipsis-one-line { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; } .larkw-aslCard-element-abbrmultidescv2 .abbrmultidescv2-list-wrapper { user-select: none; max-height: 128px; } .larkw-aslCard-element-abbrmultidescv2 .abbrmultidescv2-list-unexpanded { max-height: 0px !important; } .abbrmultidescv2-list.aslcard-baikecard-scrollarea::-webkit-scrollbar { display: none; } .larkw-aslCard-section-title { display: flex; justify-content: space-between; border-radius: 6px; padding-right: -4px; .title-right-btn { margin-right: -4px; display: flex; flex-direction: row; align-items: center; cursor: pointer; color: @text-caption; font-size: 12px; font-weight: 400; height: 20px; line-height: 20px; padding: 0px 4px; border-radius: 6px; } .title-right-btn.related-docs-title { display: none; } .title-right-btn: hover{ background-color: @fill-hover; } } .larkw-aslCard-recommend-docs-entry-show { .larkw-aslCard-section-title { .title-right-btn.related-docs-title { display: flex; } } } .larkw-aslCard-folder-container-normal-button { padding: 4px 0px 4px 16px; .folder-option { padding: 0px 4px; } } .larkw-aslCard-folder-container-link-button { right: 0px; } .aslcard-baike-showEntry-section { margin-left: 12px !important; margin-right: 12px !important; .aslcard-baike-relatedWords-showEntry:hover { background-color: @bg-float-overlay;; cursor: pointer; } .asl-baikeultra-section-title { padding:4px 8px; } .larkw-aslCard-layout-block { padding:0px 8px; .larkw-aslCard-folder-container-normal-button { padding-left: 0px; } } .larkw-aslCard-folder-container-normal-button { padding-left: 8px; } } .larkw-aslCard-relatedWord-block { width: 100%; margin-bottom: 2px; .larkw-aslCard-relatedWord-block-title { color: @text-caption; font-size: 12px; line-height: 20px; display: flex; align-items: center; margin-bottom: 4px; } .larkw-aslCard-relatedWord-block-content{ display: flex; flex-wrap: wrap; } } .larkw-aslCard-relatedWord-block:last-child { padding-bottom: 0px; } .like-kit { display: flex; flex-direction: row; } .larkw-aslCard-scrollbar::-webkit-scrollbar { display: none; } .abbrmultidescv2-item-active .abbrmultidescv2-item-pinItem { opacity: 1 !important; } .aslcard-baike-fotter-icon { width: 24px; height: 24px; border-radius: 8px; cursor: pointer; align-items:center; justify-content: center; display: flex; color: @icon-n3; margin-left: 4px; } .aslcard-baike-fotter-icon:hover { background-color: @udtoken-btn-text-bg-neutral-hover;; } </style> <style id="aslcard_qa"> .aslcard-baike-relatedQASection { .show-one-line { height: } .relatedQA-page-entry: hover { background-color: @fill-hover; } .larkw-aslCard-QA-item { display: flex; flex-direction: row; padding: 6px 8px; border-radius: 6px; cursor: pointer; .QA_content { width: 100%; .larkw-aslCard-element-rich-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block; width: calc(100% - 34px); height: 22px; pointer: cursor; span { white-space: nowrap; } } .Q_content, .A_content { height: 22px; line-height:22px; align-items: center; display: flex; flex-direction: row; padding: 1px 0px; .QA_icon { width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 6px; margin-right:10px; font-size: 12px; } .Q_icon { background-color: @primary-pri-100; color: @primary-pri-500; } .A_icon { background-color: @function-warning-100; color: @function-warning-600; } } .no_answer { font-size: 14px; line-height: 20px; color: @text-caption; display: flex; align-items: center; .to_answer { font-size: 14px; } } } } .larkw-aslCard-QA-item: hover { background-color: @fill-hover; } } .to_answer { color: @text-link-normal; border-radius: 6px; padding: 0px 4px; font-size: 12px; line-height: 20px; height: 20px; cursor: pointer; } .to_answer:hover { color: @text-link-normal; background-color: @fill-active; } .to_answer:active { color: @text-link-pressed; background-color: @fill-active; } .to-answer-related-users, .to-answer-contributors { display: flex; flex-direction: row; font-size: 12px; line-height: 20px; color: @text-caption; cursor: pointer; width: fit-content; flex-wrap: wrap; } </style> <style id="aslcard-related-words"> .larkw-aslCard-relatedWords-wrapper { padding: 0px 16px; .larkw-aslCard-relatedWords-calssfication-item { padding:4px 4px 0px 4px !important; .title { margin-bottom: 4px; height: auto; .title-text { margin-bottom: 0px; flex: 1; } } .abbreviation-item { margin: 0px 6px 6px 0px; } } .larkw-aslCard-folder-container-normal-button { padding-left: 0px !important; } } </style> <style id="abbrmulti-desc-v2"> .larkw-aslCard-element-abbrmultidescv2 { .abbrmultidescv2-header-topline { margin: 2px 0px; } .abbrmultidescv2-header { padding: 4px 0px; } .abbrmultidescv2-item-content { padding: 4px 0px; } } .aslcard-baike-divider { margin: 4px 0px; } </style> <view className="aslcard-baike-navbar"> <view className="aslcard-baike-navbar-content aslcard-baike-navbar-noback" style="width: calc(100% - 64px);"> <text-highlight className="ellipsis-one-line" style="font-weight: 500;font-size: 14px;" text="Ai" highlightTerms='[]'/> </view> <view className="aslcard-baike-navbar-content aslcard-baike-navbar-withback"> <text style="font-weight: 500;font-size: 14px; max-width: 120px;" className="aslcard-ellipsis">Ai</text> </view> <view className="aslcard-baike-divider" style="position: absolute;bottom: 0;width: 100%;"></view> </view> <view className="aslcard-baike-navbar-goback-btn"> <tooltip title="返回"> <view className="larkw-aslCard-icon-mask" style="color: @icon-n1;" bind='{"onClick": { "callbacks": [ { "funcName": "back", "params":{} } ]} }'> <image> <svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg"> <path d="M12.2197 1.71967C12.5126 2.01256 12.5126 2.48744 12.2197 2.78033L6 9L12.2197 15.2197C12.5126 15.5126 12.5126 15.9874 12.2197 16.2803C11.9268 16.5732 11.4519 16.5732 11.159 16.2803L4.93934 10.0607C4.35355 9.47487 4.35355 8.52513 4.93934 7.93934L11.159 1.71967C11.4519 1.42678 11.9268 1.42678 12.2197 1.71967Z" fill="currentColor" /> </svg> </image> </view> </tooltip> </view> <view style="position: absolute;top: 20px;right: 16px;z-index: 3;"> <abbr-action-v2 data-tootip-more-title="更多"> <action shareModelTitle="分享到会话" showOut="true" type="share" text="分享" url="https://ai.feishu-boe.cn/lingo/detail/7233732879589572628?open_source&#x3D;im_share_card" tooltip="" className="abbr_share_icon" subscribed="" text-unsubscribe="取消订阅" data-tooltip-subscribed-text="订阅后,将会通过订阅号推送词条下的新增文档" data-tooltip-not-subscribed-text="取消订阅后,将不会再收到相关推送" data-toast-subscribe="订阅成功,将会通过订阅号推送词条下的新增文档" data-toast-unsubscribe="取消订阅后,将不会再收到相关推送" data-ignore-success-toast="已关闭词条下划线提示" /> <action shareModelTitle="" showOut="" type="abbr_home" text="查看词条详情" url="https://ai.feishu-boe.cn/lingo/detail/7233732879589572628?open_source&#x3D;card_entity_home" tooltip="" className="abbr_detail_home_icon" subscribed="" text-unsubscribe="取消订阅" data-tooltip-subscribed-text="订阅后,将会通过订阅号推送词条下的新增文档" data-tooltip-not-subscribed-text="取消订阅后,将不会再收到相关推送" data-toast-subscribe="订阅成功,将会通过订阅号推送词条下的新增文档" data-toast-unsubscribe="取消订阅后,将不会再收到相关推送" data-ignore-success-toast="已关闭词条下划线提示" /> <action shareModelTitle="" showOut="false" type="edit" text="编辑词条" url="https://ai.feishu-boe.cn/lingo/editor?locale&#x3D;zh-CN&amp;abbrId&#x3D;enterprise_7233732879589572628&amp;query&#x3D;Ai&amp;open_source&#x3D;card_entity_editor" tooltip="" className="" subscribed="" text-unsubscribe="取消订阅" data-tooltip-subscribed-text="订阅后,将会通过订阅号推送词条下的新增文档" data-tooltip-not-subscribed-text="取消订阅后,将不会再收到相关推送" data-toast-subscribe="订阅成功,将会通过订阅号推送词条下的新增文档" data-toast-unsubscribe="取消订阅后,将不会再收到相关推送" data-ignore-success-toast="已关闭词条下划线提示" /> <action shareModelTitle="" showOut="" type="ignore" text="关闭词条下划线" url="" tooltip="" className="" subscribed="" text-unsubscribe="取消订阅" data-tooltip-subscribed-text="订阅后,将会通过订阅号推送词条下的新增文档" data-tooltip-not-subscribed-text="取消订阅后,将不会再收到相关推送" data-toast-subscribe="订阅成功,将会通过订阅号推送词条下的新增文档" data-toast-unsubscribe="取消订阅后,将不会再收到相关推送" data-ignore-success-toast="已关闭词条下划线提示" /> <action shareModelTitle="" showOut="" type="divider" text="" url="" tooltip="" className="" subscribed="" text-unsubscribe="取消订阅" data-tooltip-subscribed-text="订阅后,将会通过订阅号推送词条下的新增文档" data-tooltip-not-subscribed-text="取消订阅后,将不会再收到相关推送" data-toast-subscribe="订阅成功,将会通过订阅号推送词条下的新增文档" data-toast-unsubscribe="取消订阅后,将不会再收到相关推送" data-ignore-success-toast="已关闭词条下划线提示" /> <action shareModelTitle="" showOut="" type="create" text="创建词条" url="https://ai.feishu-boe.cn/lingo/editor?action&#x3D;create&amp;abbrId&#x3D;enterprise_7233732879589572628&amp;locale&#x3D;zh-CN&amp;open_source&#x3D;card_entity_create" tooltip="" className="" subscribed="" text-unsubscribe="取消订阅" data-tooltip-subscribed-text="订阅后,将会通过订阅号推送词条下的新增文档" data-tooltip-not-subscribed-text="取消订阅后,将不会再收到相关推送" data-toast-subscribe="订阅成功,将会通过订阅号推送词条下的新增文档" data-toast-unsubscribe="取消订阅后,将不会再收到相关推送" data-ignore-success-toast="已关闭词条下划线提示" /> <action shareModelTitle="" showOut="" type="home" text="前往词典首页" url="https://baikeredirect.feishu.cn/drive/lingo?locale&#x3D;zh-CN&amp;open_source&#x3D;card_web_tab" tooltip="" className="" subscribed="" text-unsubscribe="取消订阅" data-tooltip-subscribed-text="订阅后,将会通过订阅号推送词条下的新增文档" data-tooltip-not-subscribed-text="取消订阅后,将不会再收到相关推送" data-toast-subscribe="订阅成功,将会通过订阅号推送词条下的新增文档" data-toast-unsubscribe="取消订阅后,将不会再收到相关推送" data-ignore-success-toast="已关闭词条下划线提示" /> </abbr-action-v2> </view> <view className="larkw-aslCard-layout-block baike_navbar_scrollbar_trigger larkw-abbreviation-content larkw-aslCard-scrollbar larkw-aslCard-scrollbar-hover" style="max-height: inherit; max-width: inherit; overflow: hidden overlay;word-break: normal;" canUseContributors="true"> <view className="larkw-aslCard-util-bg-ultra" id="larkw-aslCard-body-enterprise_7233732879589572628"> <view className="larkw-aslCard-layout-block larkw-aslCard-baike-header" style='padding:24px 20px 0; position: relative;'> <view className="aslcard-baike-nav-placeloader" /> <view className="larkw-aslCard-layout-block main-key-content" style="position: relative;width: 100%;" > <view className="larkw-aslCard-layout-inlineBlock" style='position: absolute; top: 0; right: 0;'> </view> <tooltip title="进入词条详情页" style="max-width:calc(100% - 64px);width:fit-content;" className="main-key-tooltip" bind='{"onClick":{ "callbacks":[{"funcName":"openURL","params":{"url":"https://ai.feishu-boe.cn/lingo/detail/7233732879589572628?open_source&#x3D;card_entity_home"}}], "events":[{"eventName":"event_track_v2","params":{"click":"function","function_type":"entity_name"}}] }}' > <text-highlight locale="zh-CN" style="color: @text-title;font-size: 18px;font-weight: 500;line-height: 26px;margin-right: 8px;" text="Ai" highlightTerms='[]'/> </tooltip> </view> <view className="larkw-aslCard-layout-flex" style="align-items: center;"> <user-list data-text-hint="贡献" version="v2" maxCountShow="2"> <user userId="7215104701929357331" avatarKey="v2_98f36e28-20f7-4f32-889c-b926df7eb22j" tooltip="张晓阳" className="aslcard-barike-ultra-useritem" userName="张晓阳" size="24" style=""> </user> <user-rest style="margin-right: 8px;height: 24px;width: 24px;display: flex;align-items: center;justify-content: center;border-radius: 50%;background-color: #EFF0F1;color: @text-caption;cursor: pointer;margin-right: 0;margin-bottom: 0;"> </user-rest> </user-list> <image style="margin: 0px 2px 0px 6px"> <svg width="2" height="10" viewBox="0 0 2 10" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M1 0V10" stroke="#BBBFC4"/> </svg> </image> <view className="to_answer" id="user-list-right-node" bind='{"onClick":{ "callbacks":[{"funcName":"openURL","params":{"url":"https://ai.feishu-boe.cn/lingo/detail/7233732879589572628?anchor&#x3D;qaComment&amp;addQuestion&#x3D;true&amp;open_source&#x3D;ask_contributor"}}], "events":[{"eventName":"event_track_v2","params":{"click":"function","function_type":"ask_contributor"}}] }}'> <text>提问</text> </view> </view> </view> <view className="larkw-aslCard-layout-block aslcard-baike-section-ultra" style="padding-top: 0px;"> <view className="larkw-aslCard-layout-block asl-section-description" style="padding:4px 20px;"> <text-highlight bind='{ "onUnFold": {"events":[{ "eventName":"event_track_v2", "params":{"click":"function","function_type":"description_unfold"} }]} }' locale="zh-CN" maxHeight="setMaxHeightVal folderSwitcher.canDescriptionFolder 66" style="white-space: pre-wrap;word-break: break-word;" text="人工智能是计算机科学的一个分支,它企图了解智能的实质,并生产出一种新的能以人类智能相似的方式做出反应的智能机器,该领域的研究包括机器人、语言识别、图像识别、自然语言处理和专家系统等。" highlightTerms='[&quot;&amp;#10&quot;]' /> </view> </view> <async-template hidden="false" templateName="recommend_docs" templateId="recommendRelatedDoc" serviceName="getRelatedResource" params='{"entryIds":["enterprise_7233732879589572628"],"resourceTypes":[1],"enterFrom":""}' /> <view className="larkw-aslCard-layout-block larkw-aslCard-hideInLarkSearch larkw-aslCard-showInLark"> <view className="larkw-aslCard-layout-flex" style='padding: 10px 20px;font-size: 12px;line-height: 20px;color: @text-caption;margin-bottom:14px;'> <view style="display: flex;align-items: center;"> <text>找不到想要的信息?</text> <view className="larkw-aslCard-layout-inlineBlock larkw-aslCard-text-link-button" style="color: @text-link-normal;" bind='{"onClick":{ "callbacks":[{"funcName":"openLarkSearch","params":{"query":"Ai"}}], "events":[{"eventName":"event_track_v2","params":{"click":"function","function_type":"search","abbr_id":"enterprise_7233732879589572628"}}] }}'> 搜索更多 </view> </view> </view> </view> <view style="display: none;" role="for-debug" data-canShowSuperAdminBanner="" data-superAdminBannerHref="" data-canShowNormalUserBanner="false" data-normalUserBannerHref="" data-IsUserSuperAdmin="nodata" data-IsTenantActivated="nodata" /> </view> </view> <view className="aslcard-baike-footer"> <view className="aslcard-baike-divider" style="margin: 0 20px;"> </view> <view style="display: flex;align-items: center;justify-content: space-between;height: 46px;padding: 0 16px;flex-shrink: 0;"> <view className="aslcard-baike-logo-btn-container larkw-aslCard-layout-flex" style="max-width: calc(100% - 84px);"> <tooltip title="前往词典首页,探索更多词条" style="width: 100%"> <view className="aslcard-baike-btn aslcard-baike-btn-extra-small aslcard-baike-logo-btn" url="https://baikeredirect.feishu.cn/drive/lingo?locale&#x3D;zh-CN&amp;from&#x3D;logo&amp;abbrId&#x3D;enterprise_7233732879589572628&amp;page&#x3D;category&amp;repo_id&#x3D;1&amp;open_source&#x3D;card_web_logo" bind='{"onClick":{"events":[{"eventName":"event_track_v2","params":{"click":"function","function_type":"encyclopedia_logo","target":"asl_abbr_paltform_view","abbr_id":"enterprise_7233732879589572628"}}]}}'> <view className="aslcard-baike-logo-btn-img" style="width: 21px; height: 17px;"> <image url="https://lf-cdn-tos.bytescm.com/obj/static/asl-card/baike-logo-gray-lm_zh-CN_v2.svg" className="aslcard-baike-logo-btn-img-placeholder"></image> </view> <text className="repo_name">企业词库</text> <image> <svg width="13" height="13" viewBox="0 0 13 13" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M4.65292 2.64645C4.45765 2.84171 4.45765 3.15829 4.65292 3.35355L7.79936 6.5L4.65292 9.64645C4.45765 9.84171 4.45765 10.1583 4.65292 10.3536C4.84818 10.5488 5.16476 10.5488 5.36002 10.3536L8.86002 6.85355C8.95379 6.75979 9.00647 6.63261 9.00647 6.5C9.00647 6.36739 8.95379 6.24021 8.86002 6.14645L5.36002 2.64645C5.16476 2.45118 4.84818 2.45118 4.65292 2.64645Z" fill="currentColor" /> </svg> </image> </view> </tooltip> </view> <view className="like-kit"> <like-kit like-count='0' data-text-ignore-btn="关闭词条提示" dislike-count='0' like="" dislike="" data-text-feedback-title="反馈给贡献者" data-text-feedback-success="反馈提交成功" show-like="true" show-dislike="false" ></like-kit> <tooltip title="我要反馈" className="aslcard-baike-fotter-icon"> <view bind='{"onClick":{ "callbacks":[{"funcName":"openFeedback","params":{"title":"词条反馈"}}], "events":[{"eventName":"event_track_v2","params":{"click":"function","function_type":"feedback_logo"}}] }}' style="height: 16px;"> <image > <svg width="14" height="16" viewBox="0 0 14 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg"> <path d="M10.6667 1.99984H1.33333V13.9998H4.66667V15.3332H1.33333C0.596954 15.3332 0 14.7362 0 13.9998V1.99984C0 1.26346 0.596954 0.666504 1.33333 0.666504H10.6667C11.403 0.666504 12 1.26346 12 1.99984V7.33317H10.6667V1.99984Z" fill="currentColor"/> <path d="M3.33333 4.6665C2.96514 4.6665 2.66667 4.96498 2.66667 5.33317C2.66667 5.70136 2.96514 5.99984 3.33333 5.99984H8.66667C9.03486 5.99984 9.33333 5.70136 9.33333 5.33317C9.33333 4.96498 9.03486 4.6665 8.66667 4.6665H3.33333Z" fill="currentColor"/> <path d="M2.66667 8.33317C2.66667 7.96498 2.96514 7.6665 3.33333 7.6665H6C6.36819 7.6665 6.66667 7.96498 6.66667 8.33317C6.66667 8.70136 6.36819 8.99984 6 8.99984H3.33333C2.96514 8.99984 2.66667 8.70136 2.66667 8.33317Z" fill="currentColor"/> <path d="M11.5523 8.69999C11.9428 8.30946 12.576 8.30946 12.9665 8.69999C13.357 9.09051 13.357 9.72367 12.9665 10.1142L12.2594 10.8213L10.8452 9.40709L11.5523 8.69999Z" fill="currentColor"/> <path d="M10.1381 10.1142L11.5523 11.5284L8.23093 14.8498C8.09164 14.9891 7.91229 15.0813 7.71798 15.1136L6.45737 15.3233C6.42136 15.3292 6.38467 15.3175 6.35885 15.2917C6.33271 15.2655 6.32099 15.2282 6.32749 15.1918L6.55128 13.9372C6.58465 13.7501 6.6746 13.5777 6.80901 13.4433L10.1381 10.1142Z" fill="currentColor"/> </svg> </image> </view> </tooltip> <tooltip title="相关讨论" className="aslcard-baike-fotter-icon"> <view bind='{"onClick":{ "callbacks":[{"funcName":"openURL","params":{"url":"https://ai.feishu-boe.cn/lingo/detail/7233732879589572628?anchor&#x3D;qaComment&amp;open_source&#x3D;answers_logo"}}], "events":[{"eventName":"event_track_v2","params":{"click":"function","function_type":"answers_logo"}}] }}' style="height: 16px;"> <image > <svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg"> <path d="M3.66675 8.66634H2.00008V2.66634H10.6667V8.66634H6.33059L3.66675 10.8333V8.66634ZM6.66675 9.99968H10.6667C11.4031 9.99968 12.0001 9.40272 12.0001 8.66634V2.66634C12.0001 1.92996 11.4031 1.33301 10.6667 1.33301H2.00008C1.2637 1.33301 0.666748 1.92996 0.666748 2.66634V8.66634C0.666748 9.40272 1.2637 9.99968 2.00008 9.99968H2.33341V11.9495C2.33341 12.4539 2.87199 12.7756 3.31615 12.5365L6.66675 9.99968ZM8.99726 12.6667H5.34274L7.0094 11.3333H9.33341L12.0001 13.5V11.333H14.0001V5.99967H13.3334V4.66634H14.0001C14.7365 4.66634 15.3334 5.2633 15.3334 5.99967V11.333C15.3334 12.0694 14.7365 12.6663 14.0001 12.6663H13.3334V14.6162C13.3334 15.1206 12.7948 15.4423 12.3507 15.2031L8.99726 12.6667Z" fill="currentColor"/> </svg> </image> </view> </tooltip> </view> </view> </view> <abbr-data-carrier id="abbr-data-carry-id" data-report-card-view='[{"result_type":"success"}]'></abbr-data-carrier> <guide data-options='{"key":"Lingo_card_share","style":{"zIndex":100,"width":"max-content"},"conf":[{"content":"词典支持分享词条啦!","target":".larkw-aslCard-moreactions-wrapper .abbr_share_icon","direction":"bottom","align":"center","distance":4,"clickBlankToDisappear":true,"autoFinishMs":5000}],"extraDaInfo":{"abbr_id":"enterprise_7233732879589572628","onboarding_type":"bubble","onboarding_sub_type":"entity_share"}}' > </guide> <guide data-options='{"key":"Lingo_doc_homograph","style":{"zIndex":100,"width":"max-content"},"conf":[{"content":"点击置顶,在当前文档优先展示该释义","target":".abbrmultidescv2-item-pinItem .larkw-aslCard-icon-mask","direction":"top","align":"center","distance":4,"clickBlankToDisappear":true,"autoFinishMs":5000}],"extraDaInfo":{"abbr_id":"enterprise_7233732879589572628","onboarding_type":"bubble","onboarding_sub_type":"entity_pin"}}' > </guide> </view>

func (*EntityCardDataBuilder) CardType

func (builder *EntityCardDataBuilder) CardType(cardType int) *EntityCardDataBuilder

词条卡片类型

示例值:

func (*EntityCardDataBuilder) Id

卡片对应词条的id

示例值:enterprise_7233732879589572628

func (*EntityCardDataBuilder) Key

用户点击的高亮词条

示例值:Ai

func (*EntityCardDataBuilder) TemplateName

func (builder *EntityCardDataBuilder) TemplateName(templateName string) *EntityCardDataBuilder

卡片模版名

示例值:abbreviation-ultra

type EntityWord

type EntityWord struct {
	Name    *string  `json:"name,omitempty"`    // 抽取出的词条名
	Aliases []string `json:"aliases,omitempty"` // 词条可能的推荐别名
}

type EntityWordBuilder

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

func NewEntityWordBuilder

func NewEntityWordBuilder() *EntityWordBuilder

func (*EntityWordBuilder) Aliases

func (builder *EntityWordBuilder) Aliases(aliases []string) *EntityWordBuilder

词条可能的推荐别名

示例值:

func (*EntityWordBuilder) Build

func (builder *EntityWordBuilder) Build() *EntityWord

func (*EntityWordBuilder) Name

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

抽取出的词条名

示例值:

type File

type File struct {
	Name *string   `json:"name,omitempty"` // 文件名称,当前仅支持上传图片且图片格式为以下六种:icon、bmp、gif、png、jpeg、webp
	File io.Reader `json:"file,omitempty"` // 二进制文件内容,高宽像素在 320-4096 像素之间,大小在 3KB-10MB 的图片
}

type FileBuilder

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

func NewFileBuilder

func NewFileBuilder() *FileBuilder

func (*FileBuilder) Build

func (builder *FileBuilder) Build() *File

func (*FileBuilder) File

func (builder *FileBuilder) File(file io.Reader) *FileBuilder

二进制文件内容,高宽像素在 320-4096 像素之间,大小在 3KB-10MB 的图片

示例值:

func (*FileBuilder) Name

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

文件名称,当前仅支持上传图片且图片格式为以下六种:icon、bmp、gif、png、jpeg、webp

示例值:示例图片.png

type GetEntityReq

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

type GetEntityReqBuilder

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

func NewGetEntityReqBuilder

func NewGetEntityReqBuilder() *GetEntityReqBuilder

func (*GetEntityReqBuilder) Build

func (builder *GetEntityReqBuilder) Build() *GetEntityReq

func (*GetEntityReqBuilder) EntityId

func (builder *GetEntityReqBuilder) EntityId(entityId string) *GetEntityReqBuilder

实体词 id

示例值:enterprise_0

func (*GetEntityReqBuilder) OuterId

func (builder *GetEntityReqBuilder) OuterId(outerId string) *GetEntityReqBuilder

外部唯一 id(使用时需要将路径中的实体词 ID 固定为:enterprise_0,且提供 provider 和 outer_id)

示例值:123aaa

func (*GetEntityReqBuilder) Provider

func (builder *GetEntityReqBuilder) Provider(provider string) *GetEntityReqBuilder

数据提供方(使用时需要将路径中的实体词 ID 固定为:enterprise_0,且提供 provider 和 outer_id)

示例值:星云

func (*GetEntityReqBuilder) UserIdType

func (builder *GetEntityReqBuilder) UserIdType(userIdType string) *GetEntityReqBuilder

此次调用中使用的用户ID的类型

示例值:

type GetEntityResp

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

func (*GetEntityResp) Success

func (resp *GetEntityResp) Success() bool

type GetEntityRespData

type GetEntityRespData struct {
	Entity *Entity `json:"entity,omitempty"` // 实体词
}

type HighlightEntityPathReqBodyBuilder

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

func NewHighlightEntityPathReqBodyBuilder

func NewHighlightEntityPathReqBodyBuilder() *HighlightEntityPathReqBodyBuilder

func (*HighlightEntityPathReqBodyBuilder) Build

func (*HighlightEntityPathReqBodyBuilder) Text

需要被识别实体词内容的一句话(不要超过1000字)

示例值:企业百科是飞书提供的一款知识管理工具

type HighlightEntityReq

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

type HighlightEntityReqBody

type HighlightEntityReqBody struct {
	Text *string `json:"text,omitempty"` // 需要被识别实体词内容的一句话(不要超过1000字)
}

type HighlightEntityReqBodyBuilder

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

func NewHighlightEntityReqBodyBuilder

func NewHighlightEntityReqBodyBuilder() *HighlightEntityReqBodyBuilder

func (*HighlightEntityReqBodyBuilder) Build

func (*HighlightEntityReqBodyBuilder) Text

需要被识别实体词内容的一句话(不要超过1000字)

示例值:企业百科是飞书提供的一款知识管理工具

type HighlightEntityReqBuilder

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

func NewHighlightEntityReqBuilder

func NewHighlightEntityReqBuilder() *HighlightEntityReqBuilder

func (*HighlightEntityReqBuilder) Body

func (*HighlightEntityReqBuilder) Build

type HighlightEntityResp

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

func (*HighlightEntityResp) Success

func (resp *HighlightEntityResp) Success() bool

type HighlightEntityRespData

type HighlightEntityRespData struct {
	Phrases []*Phrase `json:"phrases,omitempty"` // 返回识别到的实体词信息
}

type I18nClsName

type I18nClsName struct {
	Language *int    `json:"language,omitempty"` // 语言类型
	Name     *string `json:"name,omitempty"`     // 分类名
}

type I18nClsNameBuilder

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

func NewI18nClsNameBuilder

func NewI18nClsNameBuilder() *I18nClsNameBuilder

func (*I18nClsNameBuilder) Build

func (builder *I18nClsNameBuilder) Build() *I18nClsName

func (*I18nClsNameBuilder) Language

func (builder *I18nClsNameBuilder) Language(language int) *I18nClsNameBuilder

语言类型

示例值:1

func (*I18nClsNameBuilder) Name

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

分类名

示例值:词典分类

type I18nEntryDesc

type I18nEntryDesc struct {
	Language    *int    `json:"language,omitempty"`    // 语言类型
	Description *string `json:"description,omitempty"` // 纯文本释义
	RichText    *string `json:"rich_text,omitempty"`   // 富文本描述
}

type I18nEntryDescBuilder

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

func NewI18nEntryDescBuilder

func NewI18nEntryDescBuilder() *I18nEntryDescBuilder

func (*I18nEntryDescBuilder) Build

func (builder *I18nEntryDescBuilder) Build() *I18nEntryDesc

func (*I18nEntryDescBuilder) Description

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

纯文本释义

示例值:词典是飞书提供的一款知识管理工具,通过飞书词典可以帮助企业将分散的知识信息进行聚合,并通过UGC的方式,促进企业知识的保鲜和流通

func (*I18nEntryDescBuilder) Language

func (builder *I18nEntryDescBuilder) Language(language int) *I18nEntryDescBuilder

语言类型

示例值:1

func (*I18nEntryDescBuilder) RichText

func (builder *I18nEntryDescBuilder) RichText(richText string) *I18nEntryDescBuilder

富文本描述

示例值:<p><span>词典是飞书提供的一款知识管理工具,通过飞书词典可以帮助企业将分散的知识信息进行聚合,并通过UGC的方式,促进企业知识的保鲜和流通</span></p>

type ListClassificationIterator

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

func (*ListClassificationIterator) Next

func (iterator *ListClassificationIterator) Next() (bool, *Classification, error)

func (*ListClassificationIterator) NextPageToken

func (iterator *ListClassificationIterator) NextPageToken() *string

type ListClassificationReq

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

type ListClassificationReqBuilder

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

func NewListClassificationReqBuilder

func NewListClassificationReqBuilder() *ListClassificationReqBuilder

func (*ListClassificationReqBuilder) Build

func (*ListClassificationReqBuilder) Limit

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

func (*ListClassificationReqBuilder) PageSize

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

分页大小

示例值:20

func (*ListClassificationReqBuilder) PageToken

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

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

示例值:408ecac018b2e3518db37275e812aad7bb8ad3e755fc886f322ac6c430ba

func (*ListClassificationReqBuilder) RepoId

词库ID

示例值:7202510112396640276

type ListClassificationResp

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

func (*ListClassificationResp) Success

func (resp *ListClassificationResp) Success() bool

type ListClassificationRespData

type ListClassificationRespData struct {
	Items     []*Classification `json:"items,omitempty"`      // 分类list
	PageToken *string           `json:"page_token,omitempty"` // 分页标记,当还有下一页时会返回新的 page_token,否则 page_token 为空
	HasMore   *bool             `json:"has_more,omitempty"`   // 是否有下一页
}

type ListEntityIterator

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

func (*ListEntityIterator) Next

func (iterator *ListEntityIterator) Next() (bool, *Entity, error)

func (*ListEntityIterator) NextPageToken

func (iterator *ListEntityIterator) NextPageToken() *string

type ListEntityReq

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

type ListEntityReqBuilder

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

func NewListEntityReqBuilder

func NewListEntityReqBuilder() *ListEntityReqBuilder

func (*ListEntityReqBuilder) Build

func (builder *ListEntityReqBuilder) Build() *ListEntityReq

func (*ListEntityReqBuilder) Limit

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

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

func (*ListEntityReqBuilder) PageSize

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

分页大小

示例值:20

func (*ListEntityReqBuilder) PageToken

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

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

示例值:408ecac018b2e3518db37275e812aad7bb8ad3e755fc886f322ac6c430ba

func (*ListEntityReqBuilder) Provider

func (builder *ListEntityReqBuilder) Provider(provider string) *ListEntityReqBuilder

数据提供方【可用来过滤数据】

示例值:星云

func (*ListEntityReqBuilder) RepoId

func (builder *ListEntityReqBuilder) RepoId(repoId string) *ListEntityReqBuilder

词库 id

示例值:7152790921053274113

func (*ListEntityReqBuilder) UserIdType

func (builder *ListEntityReqBuilder) UserIdType(userIdType string) *ListEntityReqBuilder

此次调用中使用的用户ID的类型

示例值:

type ListEntityResp

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

func (*ListEntityResp) Success

func (resp *ListEntityResp) Success() bool

type ListEntityRespData

type ListEntityRespData struct {
	Entities  []*Entity `json:"entities,omitempty"`   // 词条列表
	PageToken *string   `json:"page_token,omitempty"` // 分页标记,当还有下一页时会返回新的 page_token,否则 page_token 为空
	HasMore   *bool     `json:"has_more,omitempty"`   // 是否有下一页
}

type ListRepoResp

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

func (*ListRepoResp) Success

func (resp *ListRepoResp) Success() bool

type ListRepoRespData

type ListRepoRespData struct {
	Items []*Repo `json:"items,omitempty"` // 词库列表
}

type MatchEntityPathReqBodyBuilder

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

func NewMatchEntityPathReqBodyBuilder

func NewMatchEntityPathReqBodyBuilder() *MatchEntityPathReqBodyBuilder

func (*MatchEntityPathReqBodyBuilder) Build

func (*MatchEntityPathReqBodyBuilder) Word

实体词主关键词、全称、别名全匹配

示例值:企业百科

type MatchEntityReq

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

type MatchEntityReqBody

type MatchEntityReqBody struct {
	Word *string `json:"word,omitempty"` // 实体词主关键词、全称、别名全匹配
}

type MatchEntityReqBodyBuilder

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

func NewMatchEntityReqBodyBuilder

func NewMatchEntityReqBodyBuilder() *MatchEntityReqBodyBuilder

func (*MatchEntityReqBodyBuilder) Build

func (*MatchEntityReqBodyBuilder) Word

实体词主关键词、全称、别名全匹配

示例值:企业百科

type MatchEntityReqBuilder

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

func NewMatchEntityReqBuilder

func NewMatchEntityReqBuilder() *MatchEntityReqBuilder

func (*MatchEntityReqBuilder) Body

func (*MatchEntityReqBuilder) Build

func (builder *MatchEntityReqBuilder) Build() *MatchEntityReq

func (*MatchEntityReqBuilder) RepoId

func (builder *MatchEntityReqBuilder) RepoId(repoId string) *MatchEntityReqBuilder

词库ID

示例值:7202510112396640276

type MatchEntityResp

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

func (*MatchEntityResp) Success

func (resp *MatchEntityResp) Success() bool

type MatchEntityRespData

type MatchEntityRespData struct {
	Results []*MatchInfo `json:"results,omitempty"` // 匹配结果
}

type MatchInfo

type MatchInfo struct {
	EntityId *string `json:"entity_id,omitempty"` // 实体词 id
	Type     *int    `json:"type,omitempty"`      // 匹配中的字段
}

type MatchInfoBuilder

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

func NewMatchInfoBuilder

func NewMatchInfoBuilder() *MatchInfoBuilder

func (*MatchInfoBuilder) Build

func (builder *MatchInfoBuilder) Build() *MatchInfo

func (*MatchInfoBuilder) EntityId

func (builder *MatchInfoBuilder) EntityId(entityId string) *MatchInfoBuilder

实体词 id

示例值:enterprise_34809584

func (*MatchInfoBuilder) Type

func (builder *MatchInfoBuilder) Type(type_ int) *MatchInfoBuilder

匹配中的字段

示例值:0

type OuterInfo

type OuterInfo struct {
	Provider *string `json:"provider,omitempty"` // 数据提供方(不能包含中横线 "-")
	OuterId  *string `json:"outer_id,omitempty"` // 唯一标识,可用来和其他平台的内容进行绑定。需保证和百科词条唯一对应(不能包含中横线 "-")
}

type OuterInfoBuilder

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

func NewOuterInfoBuilder

func NewOuterInfoBuilder() *OuterInfoBuilder

func (*OuterInfoBuilder) Build

func (builder *OuterInfoBuilder) Build() *OuterInfo

func (*OuterInfoBuilder) OuterId

func (builder *OuterInfoBuilder) OuterId(outerId string) *OuterInfoBuilder

唯一标识,可用来和其他平台的内容进行绑定。需保证和百科词条唯一对应(不能包含中横线 "-")

示例值:12345abc

func (*OuterInfoBuilder) Provider

func (builder *OuterInfoBuilder) Provider(provider string) *OuterInfoBuilder

数据提供方(不能包含中横线 "-")

示例值:星云

type Phrase

type Phrase struct {
	Name      *string  `json:"name,omitempty"`       // 文本中切分出的百科词条名称
	EntityIds []string `json:"entity_ids,omitempty"` // 实体词 id 列表
	Span      *Span    `json:"span,omitempty"`       // 实体词所在位置
}

type PhraseBuilder

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

func NewPhraseBuilder

func NewPhraseBuilder() *PhraseBuilder

func (*PhraseBuilder) Build

func (builder *PhraseBuilder) Build() *Phrase

func (*PhraseBuilder) EntityIds

func (builder *PhraseBuilder) EntityIds(entityIds []string) *PhraseBuilder

实体词 id 列表

示例值:

func (*PhraseBuilder) Name

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

文本中切分出的百科词条名称

示例值:企业百科

func (*PhraseBuilder) Span

func (builder *PhraseBuilder) Span(span *Span) *PhraseBuilder

实体词所在位置

示例值:

type Referer

type Referer struct {
	Id    *string `json:"id,omitempty"`    // 数据 id
	Title *string `json:"title,omitempty"` // 标题
	Url   *string `json:"url,omitempty"`   // 链接地址
}

type RefererBuilder

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

func NewRefererBuilder

func NewRefererBuilder() *RefererBuilder

func (*RefererBuilder) Build

func (builder *RefererBuilder) Build() *Referer

func (*RefererBuilder) Id

func (builder *RefererBuilder) Id(id string) *RefererBuilder

数据 id

示例值:7dab8a3d3cdcc9da365777c7ad535d62

func (*RefererBuilder) Title

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

标题

示例值:飞书官网

func (*RefererBuilder) Url

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

链接地址

示例值:https://www.feishu.cn/hc/zh-CN

type RelatedMeta

type RelatedMeta struct {
	Users           []*Referer        `json:"users,omitempty"`           // 关联用户信息
	Chats           []*Referer        `json:"chats,omitempty"`           // 关联群组信息
	Docs            []*Referer        `json:"docs,omitempty"`            // 关联文档信息
	Oncalls         []*Referer        `json:"oncalls,omitempty"`         // 关联值班者信息
	Links           []*Referer        `json:"links,omitempty"`           // 关联链接信息
	Abbreviations   []*Abbreviation   `json:"abbreviations,omitempty"`   // 相关词条信息
	Classifications []*Classification `json:"classifications,omitempty"` // 所属分类信息(不支持传入一级分类。词条不可同时属于同一个一级分类下的多个二级分类,一级分类下的二级分类互斥)
	Images          []*BaikeImage     `json:"images,omitempty"`          // 上传的相关图片
}

type RelatedMetaBuilder

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

func NewRelatedMetaBuilder

func NewRelatedMetaBuilder() *RelatedMetaBuilder

func (*RelatedMetaBuilder) Abbreviations

func (builder *RelatedMetaBuilder) Abbreviations(abbreviations []*Abbreviation) *RelatedMetaBuilder

相关词条信息

示例值:

func (*RelatedMetaBuilder) Build

func (builder *RelatedMetaBuilder) Build() *RelatedMeta

func (*RelatedMetaBuilder) Chats

func (builder *RelatedMetaBuilder) Chats(chats []*Referer) *RelatedMetaBuilder

关联群组信息

示例值:

func (*RelatedMetaBuilder) Classifications

func (builder *RelatedMetaBuilder) Classifications(classifications []*Classification) *RelatedMetaBuilder

所属分类信息(不支持传入一级分类。词条不可同时属于同一个一级分类下的多个二级分类,一级分类下的二级分类互斥)

示例值:

func (*RelatedMetaBuilder) Docs

func (builder *RelatedMetaBuilder) Docs(docs []*Referer) *RelatedMetaBuilder

关联文档信息

示例值:

func (*RelatedMetaBuilder) Images

func (builder *RelatedMetaBuilder) Images(images []*BaikeImage) *RelatedMetaBuilder

上传的相关图片

示例值:

func (builder *RelatedMetaBuilder) Links(links []*Referer) *RelatedMetaBuilder

关联链接信息

示例值:

func (*RelatedMetaBuilder) Oncalls

func (builder *RelatedMetaBuilder) Oncalls(oncalls []*Referer) *RelatedMetaBuilder

关联值班者信息

示例值:

func (*RelatedMetaBuilder) Users

func (builder *RelatedMetaBuilder) Users(users []*Referer) *RelatedMetaBuilder

关联用户信息

示例值:

type Repo

type Repo struct {
	Id   *string `json:"id,omitempty"`   // 词库 id
	Name *string `json:"name,omitempty"` // 词库名
}

type RepoBuilder

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

func NewRepoBuilder

func NewRepoBuilder() *RepoBuilder

func (*RepoBuilder) Build

func (builder *RepoBuilder) Build() *Repo

func (*RepoBuilder) Id

func (builder *RepoBuilder) Id(id string) *RepoBuilder

词库 id

示例值:7152790921053274113

func (*RepoBuilder) Name

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

词库名

示例值:企业词库

type SearchEntityIterator

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

func (*SearchEntityIterator) Next

func (iterator *SearchEntityIterator) Next() (bool, *Entity, error)

func (*SearchEntityIterator) NextPageToken

func (iterator *SearchEntityIterator) NextPageToken() *string

type SearchEntityPathReqBodyBuilder

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

func NewSearchEntityPathReqBodyBuilder

func NewSearchEntityPathReqBodyBuilder() *SearchEntityPathReqBodyBuilder

func (*SearchEntityPathReqBodyBuilder) Build

func (*SearchEntityPathReqBodyBuilder) ClassificationFilter

func (builder *SearchEntityPathReqBodyBuilder) ClassificationFilter(classificationFilter *ClassificationFilter) *SearchEntityPathReqBodyBuilder

分类筛选

示例值:

func (*SearchEntityPathReqBodyBuilder) Creators

创建者

示例值:ou_30b07b63089ea46518789914dac63d36

func (*SearchEntityPathReqBodyBuilder) Query

搜索关键词

示例值:飞书词典

func (*SearchEntityPathReqBodyBuilder) Sources

词条的创建来源,1:用户主动创建,2:批量导入,3:官方词,4:OpenAPI 创建

示例值:

type SearchEntityReq

type SearchEntityReq struct {
	Body  *SearchEntityReqBody `body:""`
	Limit int                  // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type SearchEntityReqBody

type SearchEntityReqBody struct {
	Query                *string               `json:"query,omitempty"`                 // 搜索关键词
	ClassificationFilter *ClassificationFilter `json:"classification_filter,omitempty"` // 分类筛选
	Sources              []int                 `json:"sources,omitempty"`               // 词条的创建来源,1:用户主动创建,2:批量导入,3:官方词,4:OpenAPI 创建
	Creators             []string              `json:"creators,omitempty"`              // 创建者
}

type SearchEntityReqBodyBuilder

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

func NewSearchEntityReqBodyBuilder

func NewSearchEntityReqBodyBuilder() *SearchEntityReqBodyBuilder

func (*SearchEntityReqBodyBuilder) Build

func (*SearchEntityReqBodyBuilder) ClassificationFilter

func (builder *SearchEntityReqBodyBuilder) ClassificationFilter(classificationFilter *ClassificationFilter) *SearchEntityReqBodyBuilder

分类筛选

示例值:

func (*SearchEntityReqBodyBuilder) Creators

func (builder *SearchEntityReqBodyBuilder) Creators(creators []string) *SearchEntityReqBodyBuilder

创建者

示例值:ou_30b07b63089ea46518789914dac63d36

func (*SearchEntityReqBodyBuilder) Query

搜索关键词

示例值:飞书词典

func (*SearchEntityReqBodyBuilder) Sources

func (builder *SearchEntityReqBodyBuilder) Sources(sources []int) *SearchEntityReqBodyBuilder

词条的创建来源,1:用户主动创建,2:批量导入,3:官方词,4:OpenAPI 创建

示例值:

type SearchEntityReqBuilder

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

func NewSearchEntityReqBuilder

func NewSearchEntityReqBuilder() *SearchEntityReqBuilder

func (*SearchEntityReqBuilder) Body

func (*SearchEntityReqBuilder) Build

func (builder *SearchEntityReqBuilder) Build() *SearchEntityReq

func (*SearchEntityReqBuilder) Limit

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

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

func (*SearchEntityReqBuilder) PageSize

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

每页返回的词条量

示例值:20

func (*SearchEntityReqBuilder) PageToken

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

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

示例值:b152fa6e6f62a291019a04c3a93f365f8ac641910506ff15ff4cad6534e087cb4ed8fa2c

func (*SearchEntityReqBuilder) RepoId

func (builder *SearchEntityReqBuilder) RepoId(repoId string) *SearchEntityReqBuilder

词库ID

示例值:7202510112396640276

func (*SearchEntityReqBuilder) UserIdType

func (builder *SearchEntityReqBuilder) UserIdType(userIdType string) *SearchEntityReqBuilder

此次调用中使用的用户ID的类型

示例值:

type SearchEntityResp

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

func (*SearchEntityResp) Success

func (resp *SearchEntityResp) Success() bool

type SearchEntityRespData

type SearchEntityRespData struct {
	Entities  []*Entity `json:"entities,omitempty"`   // 数据数组
	PageToken *string   `json:"page_token,omitempty"` // 分页标记,当还有下一页时会返回新的 page_token,否则 page_token 为空
	HasMore   *bool     `json:"has_more,omitempty"`   // 是否有下一页
}

type Span

type Span struct {
	Start *int `json:"start,omitempty"` // 偏移量开始位置,从 0 开始计数(编码格式采用 utf-8)
	End   *int `json:"end,omitempty"`   // 偏移量结束位置,从 0 开始计数(编码格式采用 utf-8)
}

type SpanBuilder

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

func NewSpanBuilder

func NewSpanBuilder() *SpanBuilder

func (*SpanBuilder) Build

func (builder *SpanBuilder) Build() *Span

func (*SpanBuilder) End

func (builder *SpanBuilder) End(end int) *SpanBuilder

偏移量结束位置,从 0 开始计数(编码格式采用 utf-8)

示例值:4

func (*SpanBuilder) Start

func (builder *SpanBuilder) Start(start int) *SpanBuilder

偏移量开始位置,从 0 开始计数(编码格式采用 utf-8)

示例值:0

type StatisticalReport

type StatisticalReport struct {
	DateInterval *int         `json:"date_interval,omitempty"` // 请求时间区间
	WordInfo     *WordInfo    `json:"word_info,omitempty"`     // 词汇量相关数据
	CorrectInfo  *CorrectInfo `json:"correct_info,omitempty"`  // 纠错相关数据
	UpdateDate   *string      `json:"update_date,omitempty"`   // 天维度的时间戳,用于确认数据最近一次更新时间
}

type StatisticalReportBuilder

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

func NewStatisticalReportBuilder

func NewStatisticalReportBuilder() *StatisticalReportBuilder

func (*StatisticalReportBuilder) Build

func (builder *StatisticalReportBuilder) Build() *StatisticalReport

func (*StatisticalReportBuilder) CorrectInfo

func (builder *StatisticalReportBuilder) CorrectInfo(correctInfo *CorrectInfo) *StatisticalReportBuilder

纠错相关数据

示例值:

func (*StatisticalReportBuilder) DateInterval

func (builder *StatisticalReportBuilder) DateInterval(dateInterval int) *StatisticalReportBuilder

请求时间区间

示例值:请求时间区间

func (*StatisticalReportBuilder) UpdateDate

func (builder *StatisticalReportBuilder) UpdateDate(updateDate string) *StatisticalReportBuilder

天维度的时间戳,用于确认数据最近一次更新时间

示例值:“20221101”

func (*StatisticalReportBuilder) WordInfo

func (builder *StatisticalReportBuilder) WordInfo(wordInfo *WordInfo) *StatisticalReportBuilder

词汇量相关数据

示例值:

type Statistics

type Statistics struct {
	LikeCount    *int `json:"like_count,omitempty"`    // 点赞数量
	DislikeCount *int `json:"dislike_count,omitempty"` // 点踩数量
}

type StatisticsBuilder

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

func NewStatisticsBuilder

func NewStatisticsBuilder() *StatisticsBuilder

func (*StatisticsBuilder) Build

func (builder *StatisticsBuilder) Build() *Statistics

func (*StatisticsBuilder) DislikeCount

func (builder *StatisticsBuilder) DislikeCount(dislikeCount int) *StatisticsBuilder

点踩数量

示例值:3

func (*StatisticsBuilder) LikeCount

func (builder *StatisticsBuilder) LikeCount(likeCount int) *StatisticsBuilder

点赞数量

示例值:55

type Term

type Term struct {
	Key           *string        `json:"key,omitempty"`            // 名称
	DisplayStatus *DisplayStatus `json:"display_status,omitempty"` // 展示状态
}

type TermBuilder

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

func NewTermBuilder

func NewTermBuilder() *TermBuilder

func (*TermBuilder) Build

func (builder *TermBuilder) Build() *Term

func (*TermBuilder) DisplayStatus

func (builder *TermBuilder) DisplayStatus(displayStatus *DisplayStatus) *TermBuilder

展示状态

示例值:

func (*TermBuilder) Key

func (builder *TermBuilder) Key(key string) *TermBuilder

名称

示例值:企业百科

type UpdateDraftReq

type UpdateDraftReq struct {
	Entity *Entity `body:""`
	// contains filtered or unexported fields
}

type UpdateDraftReqBuilder

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

func NewUpdateDraftReqBuilder

func NewUpdateDraftReqBuilder() *UpdateDraftReqBuilder

func (*UpdateDraftReqBuilder) Build

func (builder *UpdateDraftReqBuilder) Build() *UpdateDraftReq

func (*UpdateDraftReqBuilder) DraftId

func (builder *UpdateDraftReqBuilder) DraftId(draftId string) *UpdateDraftReqBuilder

草稿ID

示例值:7241543272228814852

func (*UpdateDraftReqBuilder) Entity

func (builder *UpdateDraftReqBuilder) Entity(entity *Entity) *UpdateDraftReqBuilder

func (*UpdateDraftReqBuilder) UserIdType

func (builder *UpdateDraftReqBuilder) UserIdType(userIdType string) *UpdateDraftReqBuilder

此次调用中使用的用户ID的类型

示例值:

type UpdateDraftResp

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

func (*UpdateDraftResp) Success

func (resp *UpdateDraftResp) Success() bool

type UpdateDraftRespData

type UpdateDraftRespData struct {
	Draft *Draft `json:"draft,omitempty"` //
}

type UpdateEntityReq

type UpdateEntityReq struct {
	Entity *Entity `body:""`
	// contains filtered or unexported fields
}

type UpdateEntityReqBuilder

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

func NewUpdateEntityReqBuilder

func NewUpdateEntityReqBuilder() *UpdateEntityReqBuilder

func (*UpdateEntityReqBuilder) Build

func (builder *UpdateEntityReqBuilder) Build() *UpdateEntityReq

func (*UpdateEntityReqBuilder) Entity

func (builder *UpdateEntityReqBuilder) Entity(entity *Entity) *UpdateEntityReqBuilder

func (*UpdateEntityReqBuilder) EntityId

func (builder *UpdateEntityReqBuilder) EntityId(entityId string) *UpdateEntityReqBuilder

词条 ID

示例值:enterprise_40217521

func (*UpdateEntityReqBuilder) UserIdType

func (builder *UpdateEntityReqBuilder) UserIdType(userIdType string) *UpdateEntityReqBuilder

此次调用中使用的用户ID的类型

示例值:

type UpdateEntityResp

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

func (*UpdateEntityResp) Success

func (resp *UpdateEntityResp) Success() bool

type UpdateEntityRespData

type UpdateEntityRespData struct {
	Entity *Entity `json:"entity,omitempty"` //
}

type UploadFileReq

type UploadFileReq struct {
	File *File `body:""`
	// contains filtered or unexported fields
}

type UploadFileReqBuilder

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

func NewUploadFileReqBuilder

func NewUploadFileReqBuilder() *UploadFileReqBuilder

func (*UploadFileReqBuilder) Build

func (builder *UploadFileReqBuilder) Build() *UploadFileReq

func (*UploadFileReqBuilder) File

func (builder *UploadFileReqBuilder) File(file *File) *UploadFileReqBuilder

type UploadFileResp

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

func (*UploadFileResp) Success

func (resp *UploadFileResp) Success() bool

type UploadFileRespData

type UploadFileRespData struct {
	FileToken *string `json:"file_token,omitempty"` // 文件 token
}

type V1 added in v3.1.0

type V1 struct {
	Classification *classification // classification
	Draft          *draft          // draft
	Entity         *entity         // entity
	File           *file           // file
	Repo           *repo           // repo
}

func New added in v3.1.0

func New(config *larkcore.Config) *V1

type WordInfo

type WordInfo struct {
	InputTotal                   *int     `json:"input_total,omitempty"`                       // 用户输入的总词汇量
	DedupInputTotal              *int     `json:"dedup_input_total,omitempty"`                 // 用户输入的去重后的总词汇量
	EachdayInput                 []int    `json:"eachday_input,omitempty"`                     // 时间区间内每一天发送的英文词数,时间是由远到近。以七天数据为例:下标6为昨天,下标5位前天以此类推
	EachdayDedupInput            []int    `json:"eachday_dedup_input,omitempty"`               // 时间区间内每一天发送的归一化去重后的英文词数,时间是由远到近。以七天数据为例:下标6为昨天,下标5位前天以此类推
	SendMessageTotal             *int     `json:"send_message_total,omitempty"`                // 发送的消息总数
	SendEnMessageTotal           *int     `json:"send_en_message_total,omitempty"`             // 发送的英语消息总数
	ReceiveMessageTotal          *int     `json:"receive_message_total,omitempty"`             // 接收消息的数量
	ReceiveEnMessageTotal        *int     `json:"receive_en_message_total,omitempty"`          // 接收英文消息的数量
	HistoryWordsTotal            *int     `json:"history_words_total,omitempty"`               // 历史总计英语词数(包含新增)
	NewWordsTotal                *int     `json:"new_words_total,omitempty"`                   // 新增英语词数
	EachdaySendEnMessage         []int    `json:"eachday_send_en_message,omitempty"`           // 时间区间内每一天发送的英语消息数
	EachdaySendMessage           []int    `json:"eachday_send_message,omitempty"`              // 时间区间内每一天发送的消息数
	EachdayReceiveEnMessage      []int    `json:"eachday_receive_en_message,omitempty"`        // 时间区间内每一天接收的英文消息数
	EachdayReceiveMessage        []int    `json:"eachday_receive_message,omitempty"`           // 时间区间内每一天接收的英文消息数
	SendEngMessageRateRingGrowth *float64 `json:"send_eng_message_rate_ring_growth,omitempty"` // 发送消息占比环比增长变化
	SendEngWordsRingGrowth       *int     `json:"send_eng_words_ring_growth,omitempty"`        // 发送英文单词数环比增长变化
}

type WordInfoBuilder

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

func NewWordInfoBuilder

func NewWordInfoBuilder() *WordInfoBuilder

func (*WordInfoBuilder) Build

func (builder *WordInfoBuilder) Build() *WordInfo

func (*WordInfoBuilder) DedupInputTotal

func (builder *WordInfoBuilder) DedupInputTotal(dedupInputTotal int) *WordInfoBuilder

用户输入的去重后的总词汇量

示例值:50

func (*WordInfoBuilder) EachdayDedupInput

func (builder *WordInfoBuilder) EachdayDedupInput(eachdayDedupInput []int) *WordInfoBuilder

时间区间内每一天发送的归一化去重后的英文词数,时间是由远到近。以七天数据为例:下标6为昨天,下标5位前天以此类推

示例值:

func (*WordInfoBuilder) EachdayInput

func (builder *WordInfoBuilder) EachdayInput(eachdayInput []int) *WordInfoBuilder

时间区间内每一天发送的英文词数,时间是由远到近。以七天数据为例:下标6为昨天,下标5位前天以此类推

示例值:

func (*WordInfoBuilder) EachdayReceiveEnMessage

func (builder *WordInfoBuilder) EachdayReceiveEnMessage(eachdayReceiveEnMessage []int) *WordInfoBuilder

时间区间内每一天接收的英文消息数

示例值:

func (*WordInfoBuilder) EachdayReceiveMessage

func (builder *WordInfoBuilder) EachdayReceiveMessage(eachdayReceiveMessage []int) *WordInfoBuilder

时间区间内每一天接收的英文消息数

示例值:

func (*WordInfoBuilder) EachdaySendEnMessage

func (builder *WordInfoBuilder) EachdaySendEnMessage(eachdaySendEnMessage []int) *WordInfoBuilder

时间区间内每一天发送的英语消息数

示例值:

func (*WordInfoBuilder) EachdaySendMessage

func (builder *WordInfoBuilder) EachdaySendMessage(eachdaySendMessage []int) *WordInfoBuilder

时间区间内每一天发送的消息数

示例值:

func (*WordInfoBuilder) HistoryWordsTotal

func (builder *WordInfoBuilder) HistoryWordsTotal(historyWordsTotal int) *WordInfoBuilder

历史总计英语词数(包含新增)

示例值:300

func (*WordInfoBuilder) InputTotal

func (builder *WordInfoBuilder) InputTotal(inputTotal int) *WordInfoBuilder

用户输入的总词汇量

示例值:100

func (*WordInfoBuilder) NewWordsTotal

func (builder *WordInfoBuilder) NewWordsTotal(newWordsTotal int) *WordInfoBuilder

新增英语词数

示例值:20

func (*WordInfoBuilder) ReceiveEnMessageTotal

func (builder *WordInfoBuilder) ReceiveEnMessageTotal(receiveEnMessageTotal int) *WordInfoBuilder

接收英文消息的数量

示例值:100

func (*WordInfoBuilder) ReceiveMessageTotal

func (builder *WordInfoBuilder) ReceiveMessageTotal(receiveMessageTotal int) *WordInfoBuilder

接收消息的数量

示例值:500

func (*WordInfoBuilder) SendEnMessageTotal

func (builder *WordInfoBuilder) SendEnMessageTotal(sendEnMessageTotal int) *WordInfoBuilder

发送的英语消息总数

示例值:150

func (*WordInfoBuilder) SendEngMessageRateRingGrowth

func (builder *WordInfoBuilder) SendEngMessageRateRingGrowth(sendEngMessageRateRingGrowth float64) *WordInfoBuilder

发送消息占比环比增长变化

示例值:2.1

func (*WordInfoBuilder) SendEngWordsRingGrowth

func (builder *WordInfoBuilder) SendEngWordsRingGrowth(sendEngWordsRingGrowth int) *WordInfoBuilder

发送英文单词数环比增长变化

示例值:9

func (*WordInfoBuilder) SendMessageTotal

func (builder *WordInfoBuilder) SendMessageTotal(sendMessageTotal int) *WordInfoBuilder

发送的消息总数

示例值:200

Jump to

Keyboard shortcuts

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