31 lines
873 B
Go
31 lines
873 B
Go
package models
|
|
|
|
type TotalComponentStats struct {
|
|
TotalTypes int64 `json:"totalTypes"`
|
|
TotalQuantity int64 `json:"totalQuantity"`
|
|
}
|
|
|
|
type AbnormalAlert struct {
|
|
Status string `json:"status"`
|
|
Count int64 `json:"count"`
|
|
}
|
|
|
|
type TodayInvoiceCount struct {
|
|
Type string `json:"type"`
|
|
Count int64 `json:"count"`
|
|
}
|
|
|
|
type ContainerStats struct {
|
|
TotalContainers int64 `json:"totalContainers"`
|
|
EmptyContainers int64 `json:"emptyContainers"`
|
|
}
|
|
|
|
type DashboardSummary struct {
|
|
TotalComponents TotalComponentStats `json:"totalComponents"`
|
|
PendingInvoices int64 `json:"pendingInvoices"`
|
|
LowStockComponents int64 `json:"lowStockComponents"`
|
|
AbnormalAlerts []AbnormalAlert `json:"abnormalAlerts"`
|
|
TodayInvoices []TodayInvoiceCount `json:"todayInvoices"`
|
|
EmptyContainers ContainerStats `json:"emptyContainers"`
|
|
}
|