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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EsSeason

type EsSeason struct {
	ID          int      `json:"id"`
	Title       string   `json:"title"`
	Alias       string   `json:"alias"`
	AliasSearch []string `json:"alias_search"`
	Actors      []string `json:"actors"`
}

EsSeason ...

type Item

type Item struct {
	ID           int64  `json:"id"`
	Name         string `json:"name"`
	IPRightID    int    `json:"ip_right_id"`
	Brief        string `json:"brief"`
	Keywords     string `json:"keywords"`
	SalesCount   int    `json:"sales_count"`
	WishCount    int    `json:"wish_count"`
	CommentCount int    `json:"comment_count"`
	HeadImg      string `json:"head_img"`
	SugImg       string `json:"sug_img"`
}

Item ...

type Message

type Message struct {
	Action string          `json:"action"`
	Table  string          `json:"table"`
	New    json.RawMessage `json:"new"`
	Old    json.RawMessage `json:"old"`
}

Message ...

type Score

type Score struct {
	SeasonID   string
	SeasonName string
	Score      float64
}

Score ...

type Season

type Season struct {
	ID          int    `json:"id"`
	Title       string `json:"title"`
	SeasonTitle string `json:"season_title"`
	Mode        int    `json:"mode"`
	Type        int    `json:"type"`
	Alias       string `json:"alias"`
	AliasSearch string `json:"alias_search"`
	Brief       string `json:"brief"`
	Evaluate    string `json:"evaluate"`
	Actors      string `json:"actors"`
	Staff       string `json:"staff"`
	SquareCover string `json:"square_cover"`
	Cover       string `json:"cover"`
	EpCover     string `json:"epcover"`
	Area        int    `json:"area"`
	Ctime       string `json:"ctime"`
	Mtime       string `json:"mtime"`
}

Season ...

func (*Season) EsFormat

func (s *Season) EsFormat() (es *EsSeason)

EsFormat ...

func (*Season) FieldDiff

func (s *Season) FieldDiff(season *Season) bool

FieldDiff 检查指定字段是有变化

type Sug

type Sug struct {
	Item     *Item
	SeasonID int64
	Score    int64
}

Sug ...

Jump to

Keyboard shortcuts

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