Files
RenewCMS/internal/domain/image/imageRepositoryInterface.go
T
2026-10-08 02:33:32 +02:00

21 lines
537 B
Go

package image
type SearchQuery struct {
Search string
Hash string
}
type Repository interface {
Create(image Image) (Image, error)
Get(id uint32) (Image, error)
Delete(id uint32) error
List(query SearchQuery) ([]Image, error)
FindByHash(hash string) ([]Image, error)
Rename(id uint32, filename string) (Image, error)
ListDuplicates() ([]Image, error)
Counts() (Counts, error)
ExistsByStoredName(storedName string) (bool, error)
ListMissingMetadata() ([]Image, error)
UpdateMetadata(id uint32, metadata Metadata) error
}