photoprism/internal/viewer/result.go
Michael Mayer 5ec90a5fff Index: Skip redundant thumbs and support symbolic file links #1049 #1874
Signed-off-by: Michael Mayer <michael@photoprism.app>
2022-07-06 23:01:54 +02:00

24 lines
678 B
Go

package viewer
import (
"time"
"github.com/photoprism/photoprism/internal/thumb"
)
// Result represents a photo viewer result.
type Result struct {
UID string `json:"UID"`
Title string `json:"Title"`
TakenAtLocal time.Time `json:"TakenAtLocal"`
Description string `json:"Description"`
Favorite bool `json:"Favorite"`
Playable bool `json:"Playable"`
DownloadUrl string `json:"DownloadUrl"`
Width int `json:"Width"`
Height int `json:"Height"`
Thumbs thumb.Public `json:"Thumbs"`
}
// Results represents a list of viewer search results.
type Results []Result