entity

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 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 GetHistoriesRequest added in v0.10.0

type GetHistoriesRequest struct {
	StudioID  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 studio 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 studio history.

type HistoryGroup added in v0.10.0

type HistoryGroup string

HistoryGroup is studio history group.

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

Available studio history group.

type Sort added in v0.10.0

type Sort string

Sort is studio sorting.

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

Available studio sorting.

type Studio

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

Studio is entity for studio.

Jump to

Keyboard shortcuts

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