This commit is contained in:
Deluan
2016-03-02 13:18:39 -05:00
parent 9d41f5a39f
commit 4843ccb46c
42 changed files with 150 additions and 160 deletions
+1 -1
View File
@@ -14,4 +14,4 @@ type AlbumRepository interface {
BaseRepository
Put(m *Album) error
Get(id string) (*Album, error)
}
}
+2 -3
View File
@@ -1,8 +1,8 @@
package domain
type Artist struct {
Id string
Name string
Id string
Name string
}
type ArtistRepository interface {
@@ -11,4 +11,3 @@ type ArtistRepository interface {
Get(id string) (*Artist, error)
GetByName(name string) (*Artist, error)
}
-2
View File
@@ -3,6 +3,4 @@ package domain
type BaseRepository interface {
NewId(fields ...string) string
CountAll() (int, error)
}
+2 -3
View File
@@ -2,15 +2,14 @@ package domain
type ArtistInfo struct {
ArtistId string
Artist string
Artist string
}
type ArtistIndex struct {
Id string
Id string
Artists []ArtistInfo
}
type ArtistIndexRepository interface {
BaseRepository
Put(m *ArtistIndex) error
+2 -2
View File
@@ -11,7 +11,7 @@ type MediaFile struct {
Album string
Artist string
AlbumArtist string
AlbumId string `parent:"album"`
AlbumId string `parent:"album"`
Compilation bool
CreatedAt time.Time
UpdatedAt time.Time
@@ -20,4 +20,4 @@ type MediaFile struct {
type MediaFileRepository interface {
BaseRepository
Put(m *MediaFile) error
}
}
+1 -2
View File
@@ -1,7 +1,7 @@
package domain
type MediaFolder struct {
Id string
Id string
Name string
Path string
}
@@ -9,4 +9,3 @@ type MediaFolder struct {
type MediaFolderRepository interface {
GetAll() ([]MediaFolder, error)
}
-1
View File
@@ -10,4 +10,3 @@ type PropertyRepository interface {
Get(id string) (string, error)
DefaultGet(id string, defaultValue string) (string, error)
}