photoprism/internal/entity/photo_interface.go
Michael Mayer 13255695e5 Albums: Remove photo from review when adding it to an album #4229
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-05-09 16:00:53 +02:00

16 lines
338 B
Go

package entity
// PhotoInterface represents an abstract Photo entity interface.
type PhotoInterface interface {
GetID() uint
HasID() bool
GetUID() string
Approve() error
Restore() error
}
// PhotosInterface represents a Photo slice provider interface.
type PhotosInterface interface {
UIDs() []string
Photos() []PhotoInterface
}