Introduced types for the collections
This commit is contained in:
+3
-1
@@ -32,9 +32,11 @@ func (mf *MediaFile) ContentType() string {
|
||||
return mime.TypeByExtension("." + mf.Suffix)
|
||||
}
|
||||
|
||||
type MediaFiles []MediaFile
|
||||
|
||||
type MediaFileRepository interface {
|
||||
BaseRepository
|
||||
Put(m *MediaFile) error
|
||||
Get(id string) (*MediaFile, error)
|
||||
FindByAlbum(albumId string) ([]MediaFile, error)
|
||||
FindByAlbum(albumId string) (MediaFiles, error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user