2021-09-18 15:32:39 +02:00
|
|
|
package search
|
2020-05-08 15:41:01 +02:00
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
2021-09-18 15:32:39 +02:00
|
|
|
// Label represents a label search result.
|
|
|
|
type Label struct {
|
2020-05-23 20:58:58 +02:00
|
|
|
ID uint `json:"ID"`
|
|
|
|
LabelUID string `json:"UID"`
|
2021-08-30 18:58:27 +02:00
|
|
|
Thumb string `json:"Thumb"`
|
2021-09-20 16:17:10 +02:00
|
|
|
ThumbSrc string `json:"ThumbSrc,omitempty"`
|
2020-05-23 20:58:58 +02:00
|
|
|
LabelSlug string `json:"Slug"`
|
|
|
|
CustomSlug string `json:"CustomSlug"`
|
|
|
|
LabelName string `json:"Name"`
|
|
|
|
LabelPriority int `json:"Priority"`
|
|
|
|
LabelFavorite bool `json:"Favorite"`
|
|
|
|
LabelDescription string `json:"Description"`
|
|
|
|
LabelNotes string `json:"Notes"`
|
|
|
|
PhotoCount int `json:"PhotoCount"`
|
|
|
|
CreatedAt time.Time `json:"CreatedAt"`
|
|
|
|
UpdatedAt time.Time `json:"UpdatedAt"`
|
|
|
|
DeletedAt time.Time `json:"DeletedAt,omitempty"`
|
2020-05-08 15:41:01 +02:00
|
|
|
}
|