Documentation ¶
Index ¶
- Constants
- type Abbreviation
- type AbbreviationBuilder
- type BaikeService
- type Classification
- type ClassificationBuilder
- func (builder *ClassificationBuilder) Build() *Classification
- func (builder *ClassificationBuilder) FatherId(fatherId string) *ClassificationBuilder
- func (builder *ClassificationBuilder) Id(id string) *ClassificationBuilder
- func (builder *ClassificationBuilder) Name(name string) *ClassificationBuilder
- type CreateDraftReq
- type CreateDraftReqBuilder
- type CreateDraftResp
- type CreateDraftRespData
- type CreateEntityReq
- type CreateEntityReqBuilder
- type CreateEntityResp
- type CreateEntityRespData
- type DisplayStatus
- type DisplayStatusBuilder
- type Draft
- type DraftBuilder
- type Entity
- type EntityBuilder
- func (builder *EntityBuilder) Aliases(aliases []*Term) *EntityBuilder
- func (builder *EntityBuilder) Build() *Entity
- func (builder *EntityBuilder) Categories(categories []string) *EntityBuilder
- func (builder *EntityBuilder) CreateTime(createTime string) *EntityBuilder
- func (builder *EntityBuilder) Description(description string) *EntityBuilder
- func (builder *EntityBuilder) Id(id string) *EntityBuilder
- func (builder *EntityBuilder) MainKeys(mainKeys []*Term) *EntityBuilder
- func (builder *EntityBuilder) OuterInfo(outerInfo *OuterInfo) *EntityBuilder
- func (builder *EntityBuilder) RelatedMeta(relatedMeta *RelatedMeta) *EntityBuilder
- func (builder *EntityBuilder) RichText(richText string) *EntityBuilder
- func (builder *EntityBuilder) Statistics(statistics *Statistics) *EntityBuilder
- func (builder *EntityBuilder) UpdateTime(updateTime string) *EntityBuilder
- type GetEntityReq
- type GetEntityReqBuilder
- func (builder *GetEntityReqBuilder) Build() *GetEntityReq
- func (builder *GetEntityReqBuilder) EntityId(entityId string) *GetEntityReqBuilder
- func (builder *GetEntityReqBuilder) OuterId(outerId string) *GetEntityReqBuilder
- func (builder *GetEntityReqBuilder) Provider(provider string) *GetEntityReqBuilder
- func (builder *GetEntityReqBuilder) UserIdType(userIdType string) *GetEntityReqBuilder
- type GetEntityResp
- type GetEntityRespData
- type HighlightEntityPathReqBodyBuilder
- type HighlightEntityReq
- type HighlightEntityReqBody
- type HighlightEntityReqBodyBuilder
- type HighlightEntityReqBuilder
- type HighlightEntityResp
- type HighlightEntityRespData
- type ListClassificationIterator
- type ListClassificationReq
- type ListClassificationReqBuilder
- func (builder *ListClassificationReqBuilder) Build() *ListClassificationReq
- func (builder *ListClassificationReqBuilder) Limit(limit int) *ListClassificationReqBuilder
- func (builder *ListClassificationReqBuilder) PageSize(pageSize int) *ListClassificationReqBuilder
- func (builder *ListClassificationReqBuilder) PageToken(pageToken string) *ListClassificationReqBuilder
- type ListClassificationResp
- type ListClassificationRespData
- type ListEntityIterator
- type ListEntityReq
- type ListEntityReqBuilder
- func (builder *ListEntityReqBuilder) Build() *ListEntityReq
- func (builder *ListEntityReqBuilder) Limit(limit int) *ListEntityReqBuilder
- func (builder *ListEntityReqBuilder) PageSize(pageSize int) *ListEntityReqBuilder
- func (builder *ListEntityReqBuilder) PageToken(pageToken string) *ListEntityReqBuilder
- func (builder *ListEntityReqBuilder) Provider(provider string) *ListEntityReqBuilder
- func (builder *ListEntityReqBuilder) UserIdType(userIdType string) *ListEntityReqBuilder
- type ListEntityResp
- type ListEntityRespData
- type MatchEntityPathReqBodyBuilder
- type MatchEntityReq
- type MatchEntityReqBody
- type MatchEntityReqBodyBuilder
- type MatchEntityReqBuilder
- type MatchEntityResp
- type MatchEntityRespData
- type MatchInfo
- type MatchInfoBuilder
- type OuterInfo
- type OuterInfoBuilder
- type Phrase
- type PhraseBuilder
- type Referer
- type RefererBuilder
- type RelatedMeta
- type RelatedMetaBuilder
- func (builder *RelatedMetaBuilder) Abbreviations(abbreviations []*Abbreviation) *RelatedMetaBuilder
- func (builder *RelatedMetaBuilder) Build() *RelatedMeta
- func (builder *RelatedMetaBuilder) Chats(chats []*Referer) *RelatedMetaBuilder
- func (builder *RelatedMetaBuilder) Classifications(classifications []*Classification) *RelatedMetaBuilder
- func (builder *RelatedMetaBuilder) Docs(docs []*Referer) *RelatedMetaBuilder
- func (builder *RelatedMetaBuilder) Links(links []*Referer) *RelatedMetaBuilder
- func (builder *RelatedMetaBuilder) Oncalls(oncalls []*Referer) *RelatedMetaBuilder
- func (builder *RelatedMetaBuilder) Users(users []*Referer) *RelatedMetaBuilder
- type SearchEntityIterator
- type SearchEntityPathReqBodyBuilder
- type SearchEntityReq
- type SearchEntityReqBody
- type SearchEntityReqBodyBuilder
- type SearchEntityReqBuilder
- func (builder *SearchEntityReqBuilder) Body(body *SearchEntityReqBody) *SearchEntityReqBuilder
- func (builder *SearchEntityReqBuilder) Build() *SearchEntityReq
- func (builder *SearchEntityReqBuilder) Limit(limit int) *SearchEntityReqBuilder
- func (builder *SearchEntityReqBuilder) PageSize(pageSize int) *SearchEntityReqBuilder
- func (builder *SearchEntityReqBuilder) PageToken(pageToken string) *SearchEntityReqBuilder
- func (builder *SearchEntityReqBuilder) UserIdType(userIdType string) *SearchEntityReqBuilder
- type SearchEntityResp
- type SearchEntityRespData
- type Span
- type SpanBuilder
- type Statistics
- type StatisticsBuilder
- type Term
- type TermBuilder
- type UpdateDraftReq
- type UpdateDraftReqBuilder
- func (builder *UpdateDraftReqBuilder) Build() *UpdateDraftReq
- func (builder *UpdateDraftReqBuilder) DraftId(draftId string) *UpdateDraftReqBuilder
- func (builder *UpdateDraftReqBuilder) Entity(entity *Entity) *UpdateDraftReqBuilder
- func (builder *UpdateDraftReqBuilder) UserIdType(userIdType string) *UpdateDraftReqBuilder
- type UpdateDraftResp
- type UpdateDraftRespData
- type UpdateEntityReq
- type UpdateEntityReqBuilder
- func (builder *UpdateEntityReqBuilder) Build() *UpdateEntityReq
- func (builder *UpdateEntityReqBuilder) Entity(entity *Entity) *UpdateEntityReqBuilder
- func (builder *UpdateEntityReqBuilder) EntityId(entityId string) *UpdateEntityReqBuilder
- func (builder *UpdateEntityReqBuilder) UserIdType(userIdType string) *UpdateEntityReqBuilder
- type UpdateEntityResp
- type UpdateEntityRespData
Constants ¶
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 ¶
func (builder *AbbreviationBuilder) Id(id string) *AbbreviationBuilder
type BaikeService ¶
type BaikeService struct { Classification *classification Draft *draft Entity *entity // contains filtered or unexported fields }
业务域服务定义
type Classification ¶
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 (builder *ClassificationBuilder) Id(id string) *ClassificationBuilder
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 (*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 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 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 (*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 (builder *HighlightEntityPathReqBodyBuilder) Build() (*HighlightEntityReqBody, error)
func (*HighlightEntityPathReqBodyBuilder) Text ¶
func (builder *HighlightEntityPathReqBodyBuilder) Text(text string) *HighlightEntityPathReqBodyBuilder
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 ¶
func (builder *HighlightEntityReqBodyBuilder) Build() *HighlightEntityReqBody
1.3 生成body的build方法
func (*HighlightEntityReqBodyBuilder) Text ¶
func (builder *HighlightEntityReqBodyBuilder) Text(text string) *HighlightEntityReqBodyBuilder
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 ¶
func (builder *HighlightEntityReqBuilder) Body(body *HighlightEntityReqBody) *HighlightEntityReqBuilder
1.5 生成请求的builder属性方法
func (*HighlightEntityReqBuilder) Build ¶
func (builder *HighlightEntityReqBuilder) Build() *HighlightEntityReq
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 ¶
func (builder *ListClassificationReqBuilder) Build() *ListClassificationReq
1.5 生成请求的builder的build方法
func (*ListClassificationReqBuilder) Limit ¶
func (builder *ListClassificationReqBuilder) Limit(limit int) *ListClassificationReqBuilder
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) 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 (*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 MatchEntityPathReqBodyBuilder ¶
type MatchEntityPathReqBodyBuilder struct {
// contains filtered or unexported fields
}
上传文件path开始
func NewMatchEntityPathReqBodyBuilder ¶
func NewMatchEntityPathReqBodyBuilder() *MatchEntityPathReqBodyBuilder
func (*MatchEntityPathReqBodyBuilder) Build ¶
func (builder *MatchEntityPathReqBodyBuilder) Build() (*MatchEntityReqBody, error)
func (*MatchEntityPathReqBodyBuilder) Word ¶
func (builder *MatchEntityPathReqBodyBuilder) Word(word string) *MatchEntityPathReqBodyBuilder
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 ¶
func (builder *MatchEntityReqBodyBuilder) Build() *MatchEntityReqBody
1.3 生成body的build方法
func (*MatchEntityReqBodyBuilder) Word ¶
func (builder *MatchEntityReqBodyBuilder) Word(word string) *MatchEntityReqBodyBuilder
1.2 生成body的builder属性方法
type MatchEntityReqBuilder ¶
type MatchEntityReqBuilder struct {
// contains filtered or unexported fields
}
1.4 生成请求的builder结构体
func (*MatchEntityReqBuilder) Body ¶
func (builder *MatchEntityReqBuilder) Body(body *MatchEntityReqBody) *MatchEntityReqBuilder
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 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 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 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 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 (*RelatedMetaBuilder) Links ¶
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 (builder *SearchEntityPathReqBodyBuilder) Build() (*SearchEntityReqBody, error)
func (*SearchEntityPathReqBodyBuilder) Query ¶
func (builder *SearchEntityPathReqBodyBuilder) Query(query string) *SearchEntityPathReqBodyBuilder
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 ¶
func (builder *SearchEntityReqBodyBuilder) Build() *SearchEntityReqBody
1.3 生成body的build方法
func (*SearchEntityReqBodyBuilder) Query ¶
func (builder *SearchEntityReqBodyBuilder) Query(query string) *SearchEntityReqBodyBuilder
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 (builder *SearchEntityReqBuilder) Body(body *SearchEntityReqBody) *SearchEntityReqBuilder
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 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 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 (*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"`
}