quintodrome/model/genres.go

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
254 B
Go
Raw Normal View History

2020-01-15 13:49:09 -09:00
package model
type Genre struct {
ID string `json:"id" orm:"column(id)"`
2020-01-15 13:49:09 -09:00
Name string
SongCount int
AlbumCount int
}
type Genres []Genre
type GenreRepository interface {
GetAll() (Genres, error)
Put(m *Genre) error
2020-01-15 13:49:09 -09:00
}