Introduced interfaces for all repositories, completely isolating the persistence layer from the repositories usage and specification
This commit is contained in:
@@ -8,4 +8,10 @@ type Album struct {
|
||||
Year int
|
||||
Compilation bool
|
||||
Rating int
|
||||
}
|
||||
|
||||
type AlbumRepository interface {
|
||||
BaseRepository
|
||||
Put(m *Album) error
|
||||
Get(id string) (*Album, error)
|
||||
}
|
||||
Reference in New Issue
Block a user