mirror of
https://github.com/photoprism/photoprism.git
synced 2025-10-08 10:10:38 +08:00
17 lines
338 B
Go
17 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
|
|
}
|