Introduced interfaces for all repositories, completely isolating the persistence layer from the repositories usage and specification
This commit is contained in:
+9
-1
@@ -3,4 +3,12 @@ package domain
|
||||
type Artist struct {
|
||||
Id string
|
||||
Name string
|
||||
}
|
||||
}
|
||||
|
||||
type ArtistRepository interface {
|
||||
BaseRepository
|
||||
Put(m *Artist) error
|
||||
Get(id string) (*Artist, error)
|
||||
GetByName(name string) (*Artist, error)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user