photoprism/internal/forms/photo-search.go

21 lines
621 B
Go
Raw Normal View History

package forms
import (
"time"
)
2018-11-06 19:02:03 +01:00
// Query parameters for GET /api/v1/photos
type PhotoSearchForm struct {
Query string `form:"q"`
Tags string `form:"tags"`
Cat string `form:"cat"`
Country string `form:"country"`
CameraID int `form:"camera"`
Order string `form:"order"`
Count int `form:"count" binding:"required"`
Offset int `form:"offset"`
Before time.Time `form:"before" time_format:"2006-01-02"`
After time.Time `form:"after" time_format:"2006-01-02"`
FavoritesOnly bool `form:"favorites"`
}