30 lines
746 B
Go
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"`
|
|
}
|