larkbaike

package
v3.0.0-beta-6 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 5 Imported by: 6

Documentation

Index

Constants

View Source
const (
	UserIdTypeUserId  = "user_id"
	UserIdTypeUnionId = "union_id"
	UserIdTypeOpenId  = "open_id"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Abbreviation

type Abbreviation struct {
	Id *string `json:"id,omitempty"`
}

type AbbreviationBuilder

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

builder开始

func NewAbbreviationBuilder

func NewAbbreviationBuilder() *AbbreviationBuilder

func (*AbbreviationBuilder) Build

func (builder *AbbreviationBuilder) Build() *Abbreviation

func (*AbbreviationBuilder) Id

type BaikeService

type BaikeService struct {
	Classification *classification
	Draft          *draft
	Entity         *entity
	// contains filtered or unexported fields
}

业务域服务定义

func NewService

func NewService(config *larkcore.Config) *BaikeService

构建业务域服务实例

type Classification

type Classification struct {
	Id       *string `json:"id,omitempty"`
	Name     *string `json:"name,omitempty"`
	FatherId *string `json:"father_id,omitempty"`
}

type ClassificationBuilder

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

builder开始

func NewClassificationBuilder

func NewClassificationBuilder() *ClassificationBuilder

func (*ClassificationBuilder) Build

func (builder *ClassificationBuilder) Build() *Classification

func (*ClassificationBuilder) FatherId

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

func (*ClassificationBuilder) Id

func (*ClassificationBuilder) Name

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

type CreateDraftReq

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

type CreateDraftReqBuilder

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

1.4 生成请求的builder结构体

func NewCreateDraftReqBuilder

func NewCreateDraftReqBuilder() *CreateDraftReqBuilder

生成请求的New构造器

func (*CreateDraftReqBuilder) Build

func (builder *CreateDraftReqBuilder) Build() *CreateDraftReq

1.5 生成请求的builder的build方法

func (*CreateDraftReqBuilder) Entity

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

func (*CreateDraftReqBuilder) UserIdType

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

1.5 生成请求的builder属性方法

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
}

1.4 生成请求的builder结构体

func NewCreateEntityReqBuilder

func NewCreateEntityReqBuilder() *CreateEntityReqBuilder

生成请求的New构造器

func (*CreateEntityReqBuilder) Build

func (builder *CreateEntityReqBuilder) Build() *CreateEntityReq

1.5 生成请求的builder的build方法

func (*CreateEntityReqBuilder) Entity

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

func (*CreateEntityReqBuilder) UserIdType

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

1.5 生成请求的builder属性方法

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 DisplayStatus

type DisplayStatus struct {
	AllowHighlight *bool `json:"allow_highlight,omitempty"`
	AllowSearch    *bool `json:"allow_search,omitempty"`
}

type DisplayStatusBuilder

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

builder开始

func NewDisplayStatusBuilder

func NewDisplayStatusBuilder() *DisplayStatusBuilder

func (*DisplayStatusBuilder) AllowHighlight

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

func (*DisplayStatusBuilder) AllowSearch

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

func (*DisplayStatusBuilder) Build

func (builder *DisplayStatusBuilder) Build() *DisplayStatus

type Draft

type Draft struct {
	DraftId *string `json:"draft_id,omitempty"`
	Entity  *Entity `json:"entity,omitempty"`
}

type DraftBuilder

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

builder开始

func NewDraftBuilder

func NewDraftBuilder() *DraftBuilder

func (*DraftBuilder) Build

func (builder *DraftBuilder) Build() *Draft

func (*DraftBuilder) DraftId

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

func (*DraftBuilder) Entity

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

type Entity

type Entity struct {
	Id       *string `json:"id,omitempty"`
	MainKeys []*Term `json:"main_keys,omitempty"`

	Aliases     []*Term      `json:"aliases,omitempty"`
	Description *string      `json:"description,omitempty"`
	CreateTime  *string      `json:"create_time,omitempty"`
	UpdateTime  *string      `json:"update_time,omitempty"`
	RelatedMeta *RelatedMeta `json:"related_meta,omitempty"`
	Categories  []string     `json:"categories,omitempty"`
	Statistics  *Statistics  `json:"statistics,omitempty"`
	OuterInfo   *OuterInfo   `json:"outer_info,omitempty"`
	RichText    *string      `json:"rich_text,omitempty"`
}

type EntityBuilder

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

builder开始

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

func (builder *EntityBuilder) Categories(categories []string) *EntityBuilder

func (*EntityBuilder) CreateTime

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

func (*EntityBuilder) Description

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

func (*EntityBuilder) Id

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

func (*EntityBuilder) MainKeys

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

func (*EntityBuilder) OuterInfo

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

func (*EntityBuilder) RelatedMeta

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

func (*EntityBuilder) RichText

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

func (*EntityBuilder) Statistics

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

func (*EntityBuilder) UpdateTime

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

type GetEntityReq

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

type GetEntityReqBuilder

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

1.4 生成请求的builder结构体

func NewGetEntityReqBuilder

func NewGetEntityReqBuilder() *GetEntityReqBuilder

生成请求的New构造器

func (*GetEntityReqBuilder) Build

func (builder *GetEntityReqBuilder) Build() *GetEntityReq

1.5 生成请求的builder的build方法

func (*GetEntityReqBuilder) EntityId

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

1.5 生成请求的builder属性方法

func (*GetEntityReqBuilder) OuterId

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

func (*GetEntityReqBuilder) Provider

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

func (*GetEntityReqBuilder) UserIdType

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

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
}

上传文件path开始

func NewHighlightEntityPathReqBodyBuilder

func NewHighlightEntityPathReqBodyBuilder() *HighlightEntityPathReqBodyBuilder

func (*HighlightEntityPathReqBodyBuilder) Build

func (*HighlightEntityPathReqBodyBuilder) Text

type HighlightEntityReq

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

type HighlightEntityReqBody

type HighlightEntityReqBody struct {
	Text *string `json:"text,omitempty"`
}

type HighlightEntityReqBodyBuilder

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

func NewHighlightEntityReqBodyBuilder

func NewHighlightEntityReqBodyBuilder() *HighlightEntityReqBodyBuilder

生成body的New构造器

func (*HighlightEntityReqBodyBuilder) Build

1.3 生成body的build方法

func (*HighlightEntityReqBodyBuilder) Text

1.2 生成body的builder属性方法

type HighlightEntityReqBuilder

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

1.4 生成请求的builder结构体

func NewHighlightEntityReqBuilder

func NewHighlightEntityReqBuilder() *HighlightEntityReqBuilder

生成请求的New构造器

func (*HighlightEntityReqBuilder) Body

1.5 生成请求的builder属性方法

func (*HighlightEntityReqBuilder) Build

1.5 生成请求的builder的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 ListClassificationIterator

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

生成请求的builder构造器 1.1 生成body的builder结构体

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
}

1.4 生成请求的builder结构体

func NewListClassificationReqBuilder

func NewListClassificationReqBuilder() *ListClassificationReqBuilder

生成请求的New构造器

func (*ListClassificationReqBuilder) Build

1.5 生成请求的builder的build方法

func (*ListClassificationReqBuilder) Limit

1.5 生成请求的builder属性方法

func (*ListClassificationReqBuilder) PageSize

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

func (*ListClassificationReqBuilder) PageToken

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

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"`
	PageToken *string           `json:"page_token,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
}

1.4 生成请求的builder结构体

func NewListEntityReqBuilder

func NewListEntityReqBuilder() *ListEntityReqBuilder

生成请求的New构造器

func (*ListEntityReqBuilder) Build

func (builder *ListEntityReqBuilder) Build() *ListEntityReq

1.5 生成请求的builder的build方法

func (*ListEntityReqBuilder) Limit

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

1.5 生成请求的builder属性方法

func (*ListEntityReqBuilder) PageSize

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

func (*ListEntityReqBuilder) PageToken

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

func (*ListEntityReqBuilder) Provider

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

func (*ListEntityReqBuilder) UserIdType

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

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"`
}

type MatchEntityPathReqBodyBuilder

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

上传文件path开始

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

生成body的New构造器

func (*MatchEntityReqBodyBuilder) Build

1.3 生成body的build方法

func (*MatchEntityReqBodyBuilder) Word

1.2 生成body的builder属性方法

type MatchEntityReqBuilder

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

1.4 生成请求的builder结构体

func NewMatchEntityReqBuilder

func NewMatchEntityReqBuilder() *MatchEntityReqBuilder

生成请求的New构造器

func (*MatchEntityReqBuilder) Body

1.5 生成请求的builder属性方法

func (*MatchEntityReqBuilder) Build

func (builder *MatchEntityReqBuilder) Build() *MatchEntityReq

1.5 生成请求的builder的build方法

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"`
	Type     *int    `json:"type,omitempty"`
}

type MatchInfoBuilder

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

builder开始

func NewMatchInfoBuilder

func NewMatchInfoBuilder() *MatchInfoBuilder

func (*MatchInfoBuilder) Build

func (builder *MatchInfoBuilder) Build() *MatchInfo

func (*MatchInfoBuilder) EntityId

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

func (*MatchInfoBuilder) Type

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

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
}

builder开始

func NewOuterInfoBuilder

func NewOuterInfoBuilder() *OuterInfoBuilder

func (*OuterInfoBuilder) Build

func (builder *OuterInfoBuilder) Build() *OuterInfo

func (*OuterInfoBuilder) OuterId

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

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"`
	Span      *Span    `json:"span,omitempty"`
}

type PhraseBuilder

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

builder开始

func NewPhraseBuilder

func NewPhraseBuilder() *PhraseBuilder

func (*PhraseBuilder) Build

func (builder *PhraseBuilder) Build() *Phrase

func (*PhraseBuilder) EntityIds

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

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"`
	Title *string `json:"title,omitempty"`
	Url   *string `json:"url,omitempty"`
}

type RefererBuilder

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

builder开始

func NewRefererBuilder

func NewRefererBuilder() *RefererBuilder

func (*RefererBuilder) Build

func (builder *RefererBuilder) Build() *Referer

func (*RefererBuilder) Id

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

func (*RefererBuilder) Title

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

func (*RefererBuilder) Url

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

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"`
}

type RelatedMetaBuilder

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

builder开始

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 (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 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
}

上传文件path开始

func NewSearchEntityPathReqBodyBuilder

func NewSearchEntityPathReqBodyBuilder() *SearchEntityPathReqBodyBuilder

func (*SearchEntityPathReqBodyBuilder) Build

func (*SearchEntityPathReqBodyBuilder) Query

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"`
}

type SearchEntityReqBodyBuilder

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

func NewSearchEntityReqBodyBuilder

func NewSearchEntityReqBodyBuilder() *SearchEntityReqBodyBuilder

生成body的New构造器

func (*SearchEntityReqBodyBuilder) Build

1.3 生成body的build方法

func (*SearchEntityReqBodyBuilder) Query

1.2 生成body的builder属性方法

type SearchEntityReqBuilder

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

1.4 生成请求的builder结构体

func NewSearchEntityReqBuilder

func NewSearchEntityReqBuilder() *SearchEntityReqBuilder

生成请求的New构造器

func (*SearchEntityReqBuilder) Body

func (*SearchEntityReqBuilder) Build

func (builder *SearchEntityReqBuilder) Build() *SearchEntityReq

1.5 生成请求的builder的build方法

func (*SearchEntityReqBuilder) Limit

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

1.5 生成请求的builder属性方法

func (*SearchEntityReqBuilder) PageSize

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

func (*SearchEntityReqBuilder) PageToken

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

func (*SearchEntityReqBuilder) UserIdType

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

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"`
}

type Span

type Span struct {
	Start *int `json:"start,omitempty"`
	End   *int `json:"end,omitempty"`
}

type SpanBuilder

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

builder开始

func NewSpanBuilder

func NewSpanBuilder() *SpanBuilder

func (*SpanBuilder) Build

func (builder *SpanBuilder) Build() *Span

func (*SpanBuilder) End

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

func (*SpanBuilder) Start

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

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
}

builder开始

func NewStatisticsBuilder

func NewStatisticsBuilder() *StatisticsBuilder

func (*StatisticsBuilder) Build

func (builder *StatisticsBuilder) Build() *Statistics

func (*StatisticsBuilder) DislikeCount

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

func (*StatisticsBuilder) LikeCount

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

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
}

builder开始

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
}

1.4 生成请求的builder结构体

func NewUpdateDraftReqBuilder

func NewUpdateDraftReqBuilder() *UpdateDraftReqBuilder

生成请求的New构造器

func (*UpdateDraftReqBuilder) Build

func (builder *UpdateDraftReqBuilder) Build() *UpdateDraftReq

1.5 生成请求的builder的build方法

func (*UpdateDraftReqBuilder) DraftId

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

1.5 生成请求的builder属性方法

func (*UpdateDraftReqBuilder) Entity

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

func (*UpdateDraftReqBuilder) UserIdType

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

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
}

1.4 生成请求的builder结构体

func NewUpdateEntityReqBuilder

func NewUpdateEntityReqBuilder() *UpdateEntityReqBuilder

生成请求的New构造器

func (*UpdateEntityReqBuilder) Build

func (builder *UpdateEntityReqBuilder) Build() *UpdateEntityReq

1.5 生成请求的builder的build方法

func (*UpdateEntityReqBuilder) Entity

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

func (*UpdateEntityReqBuilder) EntityId

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

1.5 生成请求的builder属性方法

func (*UpdateEntityReqBuilder) UserIdType

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

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"`
}

Jump to

Keyboard shortcuts

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