Rename domain to model
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package model
|
||||
|
||||
type Artist struct {
|
||||
ID string
|
||||
Name string
|
||||
AlbumCount int
|
||||
}
|
||||
|
||||
type ArtistRepository interface {
|
||||
BaseRepository
|
||||
Put(m *Artist) error
|
||||
Get(id string) (*Artist, error)
|
||||
PurgeInactive(active Artists) error
|
||||
Search(q string, offset int, size int) (Artists, error)
|
||||
}
|
||||
|
||||
type Artists []Artist
|
||||
Reference in New Issue
Block a user