2020-01-15 23:49:09 +01:00
|
|
|
package model
|
|
|
|
|
|
|
|
type Genre struct {
|
2023-12-27 18:44:25 +01:00
|
|
|
ID string `structs:"id" json:"id,omitempty" toml:"id,omitempty" yaml:"id,omitempty"`
|
2021-08-01 07:21:20 +02:00
|
|
|
Name string `structs:"name" json:"name"`
|
2023-12-27 18:44:25 +01:00
|
|
|
SongCount int `structs:"-" json:"-" toml:"-" yaml:"-"`
|
|
|
|
AlbumCount int `structs:"-" json:"-" toml:"-" yaml:"-"`
|
2020-01-15 23:49:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type Genres []Genre
|
|
|
|
|
|
|
|
type GenreRepository interface {
|
2021-07-19 21:30:22 +02:00
|
|
|
GetAll(...QueryOptions) (Genres, error)
|
|
|
|
Put(*Genre) error
|
2020-01-15 23:49:09 +01:00
|
|
|
}
|