Optimize GetAll genres query

This commit is contained in:
Deluan 2021-07-19 15:30:22 -04:00 committed by Deluan Quintão
parent 1471e1240d
commit b6e9ec4db4
3 changed files with 8 additions and 17 deletions

View file

@ -10,6 +10,6 @@ type Genre struct {
type Genres []Genre
type GenreRepository interface {
GetAll() (Genres, error)
Put(m *Genre) error
GetAll(...QueryOptions) (Genres, error)
Put(*Genre) error
}