@@ -4,52 +4,55 @@ import "time"
44
55// SearchGeo represents search form fields for "/api/v1/geo".
66type SearchGeo struct {
7- Query string `form:"q"`
8- Filter string `form:"filter"`
9- Near string `form:"near"`
10- Type string `form:"type"`
11- Path string `form:"path"`
12- Folder string `form:"folder"` // Alias for Path
13- Name string `form:"name"`
14- Title string `form:"title"`
15- Before time.Time `form:"before" time_format:"2006-01-02"`
16- After time.Time `form:"after" time_format:"2006-01-02"`
17- Favorite bool `form:"favorite"`
18- Unsorted bool `form:"unsorted"`
19- Video bool `form:"video"`
20- Photo bool `form:"photo"`
21- Raw bool `form:"raw"`
22- Live bool `form:"live"`
23- Scan bool `form:"scan"`
24- Panorama bool `form:"panorama"`
25- Archived bool `form:"archived"`
26- Public bool `form:"public"`
27- Private bool `form:"private"`
28- Review bool `form:"review"`
29- Quality int `form:"quality"`
30- Faces string `form:"faces"` // Find or exclude faces if detected.
31- Lat float32 `form:"lat"`
32- Lng float32 `form:"lng"`
33- S2 string `form:"s2"`
34- Olc string `form:"olc"`
35- Dist uint `form:"dist"`
36- Face string `form:"face"` // UIDs
37- Subject string `form:"subject"` // UIDs
38- Person string `form:"person"` // Alias for Subject
39- Subjects string `form:"subjects"` // Text
40- People string `form:"people"` // Alias for Subjects
41- Keywords string `form:"keywords"`
42- Album string `form:"album"`
43- Albums string `form:"albums"`
44- Country string `form:"country"`
45- Year string `form:"year"` // Moments
46- Month string `form:"month"` // Moments
47- Day string `form:"day"` // Moments
48- Color string `form:"color"`
49- Camera int `form:"camera"`
50- Lens int `form:"lens"`
51- Count int `form:"count" serialize:"-"`
52- Offset int `form:"offset" serialize:"-"`
7+ Query string `form:"q"`
8+ Filter string `form:"filter"`
9+ Near string `form:"near"`
10+ Type string `form:"type"`
11+ Path string `form:"path"`
12+ Folder string `form:"folder"` // Alias for Path
13+ Name string `form:"name"`
14+ Title string `form:"title"`
15+ Before time.Time `form:"before" time_format:"2006-01-02"`
16+ After time.Time `form:"after" time_format:"2006-01-02"`
17+ Favorite bool `form:"favorite"`
18+ Unsorted bool `form:"unsorted"`
19+ Video bool `form:"video"`
20+ Photo bool `form:"photo"`
21+ Raw bool `form:"raw"`
22+ Live bool `form:"live"`
23+ Scan bool `form:"scan"`
24+ Panorama bool `form:"panorama"`
25+ Portrait bool `form:"portrait"`
26+ Landscape bool `form:"landscape"`
27+ Square bool `form:"square"`
28+ Archived bool `form:"archived"`
29+ Public bool `form:"public"`
30+ Private bool `form:"private"`
31+ Review bool `form:"review"`
32+ Quality int `form:"quality"`
33+ Faces string `form:"faces"` // Find or exclude faces if detected.
34+ Lat float32 `form:"lat"`
35+ Lng float32 `form:"lng"`
36+ S2 string `form:"s2"`
37+ Olc string `form:"olc"`
38+ Dist uint `form:"dist"`
39+ Face string `form:"face"` // UIDs
40+ Subject string `form:"subject"` // UIDs
41+ Person string `form:"person"` // Alias for Subject
42+ Subjects string `form:"subjects"` // Text
43+ People string `form:"people"` // Alias for Subjects
44+ Keywords string `form:"keywords"`
45+ Album string `form:"album"`
46+ Albums string `form:"albums"`
47+ Country string `form:"country"`
48+ Year string `form:"year"` // Moments
49+ Month string `form:"month"` // Moments
50+ Day string `form:"day"` // Moments
51+ Color string `form:"color"`
52+ Camera int `form:"camera"`
53+ Lens int `form:"lens"`
54+ Count int `form:"count" serialize:"-"`
55+ Offset int `form:"offset" serialize:"-"`
5356}
5457
5558// GetQuery returns the query parameter as string.
0 commit comments