0a5dce5aeb
Signed-off-by: Michael Mayer <michael@photoprism.app>
22 lines
512 B
Go
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)
|
|
}
|