Files
tm_back/internal/dashboard/form.go
T
2026-05-18 16:56:35 +03:30

30 lines
746 B
Go

package dashboard
// SummaryQuery binds query params for GET /dashboard/summary.
type SummaryQuery struct {
ClosingWindow int `query:"closing_window"`
}
// TrendQuery binds query params for GET /dashboard/trend.
type TrendQuery struct {
Days int `query:"days"`
Metric string `query:"metric"`
}
// CountriesQuery binds query params for GET /dashboard/countries.
type CountriesQuery struct {
Limit int `query:"limit"`
}
// ClosingSoonQuery binds query params for GET /dashboard/closing-soon.
type ClosingSoonQuery struct {
Limit int `query:"limit"`
Window int `query:"window"`
}
// RecentQuery binds query params for GET /dashboard/recent.
type RecentQuery struct {
Limit int `query:"limit"`
Cursor string `query:"cursor"`
}