go fmt
This commit is contained in:
+1
-1
@@ -14,4 +14,4 @@ type AlbumRepository interface {
|
||||
BaseRepository
|
||||
Put(m *Album) error
|
||||
Get(id string) (*Album, error)
|
||||
}
|
||||
}
|
||||
|
||||
+2
-3
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -3,6 +3,4 @@ package domain
|
||||
type BaseRepository interface {
|
||||
NewId(fields ...string) string
|
||||
CountAll() (int, error)
|
||||
|
||||
}
|
||||
|
||||
|
||||
+2
-3
@@ -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
|
||||
|
||||
@@ -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,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)
|
||||
}
|
||||
|
||||
|
||||
@@ -10,4 +10,3 @@ type PropertyRepository interface {
|
||||
Get(id string) (string, error)
|
||||
DefaultGet(id string, defaultValue string) (string, error)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user