entity

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Genre

type Genre struct {
	ID     int64
	Name   string
	Count  int
	Mean   float64
	Member int
}

Genre is entity for genre.

type GetHistoriesRequest added in v0.10.0

type GetHistoriesRequest struct {
	GenreID   int64
	StartYear int
	EndYear   int
	Group     HistoryGroup
}

GetHistoriesRequest is get histories request model.

type GetRequest added in v0.10.0

type GetRequest struct {
	Name  string
	Sort  Sort
	Page  int
	Limit int
}

GetRequest is get genre list request model.

type History added in v0.10.0

type History struct {
	Year       int
	Month      int
	Mean       float64
	Rank       int
	Popularity int
	Member     int
	Voter      int
	Count      int
}

History is entity for genre history.

type HistoryGroup added in v0.10.0

type HistoryGroup string

HistoryGroup is genre history group.

const (
	Yearly  HistoryGroup = "YEARLY"
	Monthly HistoryGroup = "MONTHLY"
)

Available genre history group.

type Sort added in v0.10.0

type Sort string

Sort is genre sorting.

const (
	SortName   Sort = "NAME"
	SortCount  Sort = "COUNT"
	SortMean   Sort = "MEAN"
	SortMember Sort = "MEMBER"
)

Available genre sorting.

Jump to

Keyboard shortcuts

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