2020-01-15 23:49:09 +01:00
|
|
|
package model
|
|
|
|
|
|
|
|
type Genre struct {
|
2021-07-16 01:53:40 +02:00
|
|
|
ID string `json:"id" orm:"column(id)"`
|
2021-07-17 01:41:49 +02:00
|
|
|
Name string `json:"name"`
|
|
|
|
SongCount int `json:"-"`
|
|
|
|
AlbumCount int `json:"-"`
|
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
|
|
|
}
|