dashboard APIs

This commit is contained in:
Mazyar
2026-05-18 16:56:35 +03:30
parent 6dac5b482a
commit defa74de80
8 changed files with 1157 additions and 4 deletions
+29
View File
@@ -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"`
}