2021-11-26 21:10:52 +01:00
|
|
|
package viewer
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
|
2022-07-06 23:01:54 +02:00
|
|
|
"github.com/photoprism/photoprism/internal/thumb"
|
|
|
|
)
|
2021-11-26 21:10:52 +01:00
|
|
|
|
|
|
|
// Result represents a photo viewer result.
|
|
|
|
type Result struct {
|
2022-07-06 23:01:54 +02:00
|
|
|
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"`
|
2021-11-26 21:10:52 +01:00
|
|
|
}
|
2022-03-31 17:09:08 +02:00
|
|
|
|
|
|
|
// Results represents a list of viewer search results.
|
|
|
|
type Results []Result
|