model

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Calc

type Calc struct {
	Open       int64   `json:"open"`
	PlayRatio  float64 `json:"play_ratio"`
	FavRatio   float64 `json:"fav_ratio"`
	LikeRatio  float64 `json:"like_ratio"`
	ShareRatio float64 `json:"share_ratio"`
	CoinRatio  float64 `json:"coin_ratio"`
	ReplyRatio float64 `json:"reply_ratio"`
}

Calc .

type EsParam

type EsParam struct {
	From  int                               `json:"from"`
	Size  int                               `json:"size"`
	Query map[string]map[string]interface{} `json:"query"`
	Sort  []map[string]*Script              `json:"sort"`
}

EsParam es请求参数

type Query

type Query struct {
	Calc   *Calc                  `json:"calc"`
	Where  *Where                 `json:"where"`
	Filter map[string]interface{} `json:"filter"`
	From   int                    `json:"from"`
	Size   int                    `json:"size"`
}

Query .

type Script

type Script struct {
	Order  string                 `json:"order"`
	Script map[string]interface{} `json:"script"`
	Type   string                 `json:"type"`
}

Script .

type Where

type Where struct {
	In    map[string][]interface{} `json:"in"`
	NotIn map[string][]interface{} `json:"not_in"`
	Lte   map[string]int64         `json:"lte"`
	Gte   map[string]int64         `json:"gte"`
}

Where .

Jump to

Keyboard shortcuts

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