photoprism/internal/form/search_sessions.go
Michael Mayer 0a5dce5aeb Auth: Refactor sessions API and model #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-09 18:45:04 +01:00

22 lines
512 B
Go

package form
// SearchSessions represents a session search form.
type SearchSessions struct {
Query string `form:"q"`
UID string `form:"uid"`
Count int `form:"count" binding:"required" serialize:"-"`
Offset int `form:"offset" serialize:"-"`
Order string `form:"order" serialize:"-"`
}
func (f *SearchSessions) GetQuery() string {
return f.Query
}
func (f *SearchSessions) SetQuery(q string) {
f.Query = q
}
func (f *SearchSessions) ParseQueryString() error {
return ParseQueryString(f)
}