dashboard APIs
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user