/
githubmirror
/
photoprism
Обзор
Документация
Войти
/
githubmirror
/
photoprism
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
internal/form/search_users.go
30 строк
832 B
Michael Mayer
CI: Apply Go linter recommendations to "internal/form" package #5330
22 ноя 2025, 14:09
22 ноя 2025, 14:09
7391066
Код
Авторство
О чём код?
package form // SearchUsers represents a user search form. type SearchUsers struct { Query string `form:"q"` User string `form:"user"` Name string `form:"name"` Email string `form:"email"` All bool `form:"all"` Deleted bool `form:"deleted"` Count int `form:"count" binding:"required" serialize:"-"` Offset int `form:"offset" serialize:"-"` Order string `form:"order" serialize:"-"` Reverse bool `form:"reverse" serialize:"-"` } // GetQuery returns the current search query string. func (f *SearchUsers) GetQuery() string { return f.Query } // SetQuery stores the raw query string. func (f *SearchUsers) SetQuery(q string) { f.Query = q } // ParseQueryString deserializes the query string into form fields. func (f *SearchUsers) ParseQueryString() error { return ParseQueryString(f) }