aggret

package
v1.4.6 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: MulanPSL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TagsEsMapping = `` /* 1378-byte string literal not displayed */

Functions

func InjectTagsEs

func InjectTagsEs(s *TagsEs)

func InjectTagsEsResult

func InjectTagsEsResult(s *TagsEsResult)

func LoadTagsEs

func LoadTagsEs() baseiface.ISingleton

func LoadTagsEsResult

func LoadTagsEsResult() baseiface.ISingleton

func TagsWordAgg

func TagsWordAgg() *pagemodel.PageResult[*TagsEs]

Types

type TagsEs

type TagsEs struct {
	basedto.BaseEntityIndex
	Id          int64  `json:"id"`
	Slug        string `json:"slug"`
	TagType     string `json:"tag_type"`
	ShopId      int64  `json:"shop_id"`
	Name        string `json:"name"`
	ObjectCount int64  `json:"object_count"`
	Approved    bool   `json:"approved"`
	CreatedBy   int64  `json:"created_by"`
	CreatedAt   int64  `json:"created_at"`
	UpdatedBy   int64  `json:"updated_by"`
	UpdatedAt   int64  `json:"updated_at"`
	DeletedBy   int64  `json:"deleted_by"`
	DeletedAt   int64  `json:"deleted_at"`
}

标签

func FindBeanTagsEs

func FindBeanTagsEs() *TagsEs

FindBeanTagsEs

func NewTagsEs

func NewTagsEs() *TagsEs

func (TagsEs) AliasName

func (TagsEs) AliasName() string

func (TagsEs) IndexID

func (s TagsEs) IndexID() string

func (TagsEs) Mapping

func (TagsEs) Mapping() string

func (*TagsEs) Marshal

func (s *TagsEs) Marshal() ([]byte, error)

func (TagsEs) TableName

func (TagsEs) TableName() string

func (*TagsEs) Unmarshal

func (s *TagsEs) Unmarshal(data []byte) error

type TagsEsBatchUpdate

type TagsEsBatchUpdate []*TagsEsBatchUpdateItem

type TagsEsBatchUpdateItem

type TagsEsBatchUpdateItem struct {
	TagsEs
	NewScript     string
	NewScriptVals map[string]interface{}
}

type TagsEsList

type TagsEsList []*TagsEs

func (*TagsEsList) Unmarshal

func (l *TagsEsList) Unmarshal(data []byte) error

type TagsEsMultiUpdate

type TagsEsMultiUpdate struct {
	TagsEs
	Ids           []string `json:"Ids"`
	NewScript     string
	NewScriptVals map[string]interface{}
}

func (*TagsEsMultiUpdate) Docs

func (r *TagsEsMultiUpdate) Docs() map[string]interface{}

func (*TagsEsMultiUpdate) IDs

func (r *TagsEsMultiUpdate) IDs() []string

func (*TagsEsMultiUpdate) NewScriptInline

func (r *TagsEsMultiUpdate) NewScriptInline() string

func (*TagsEsMultiUpdate) Unmarshal

func (r *TagsEsMultiUpdate) Unmarshal(data []byte) error

type TagsEsResult

type TagsEsResult struct {
	basedto.BaseEntity
	Domain struct {
		SumOtherDocCount int `json:"sum_other_doc_count"`
		Buckets          []struct {
			Key         string `json:"key"`
			DocCount    int    `json:"doc_count"`
			ObjectCount struct {
				Value float64 `json:"value"`
			} `json:"object_count"`
		} `json:"buckets"`
		DocCountErrorUpperBound int `json:"doc_count_error_upper_bound"`
	} `json:"domain"`
}

func FindBeanTagsEsResult

func FindBeanTagsEsResult() *TagsEsResult

FindBeanTagsEsResult

func NewTagsEsResult

func NewTagsEsResult() *TagsEsResult

func (*TagsEsResult) FromDataAgg

func (self *TagsEsResult) FromDataAgg(dataAgg any) *TagsEsResult

Jump to

Keyboard shortcuts

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