feat: add endpoints and logic for retrieving warehouse space usage and status distribution, including SQL queries, models, and service integration
This commit is contained in:
@@ -76,3 +76,16 @@ type TopExportedComponent struct {
|
||||
ComponentTypeName string `json:"componentTypeName"`
|
||||
TotalExported int64 `json:"totalExported"`
|
||||
}
|
||||
|
||||
type StatusDistributionItem struct {
|
||||
Status string `json:"status"`
|
||||
Count int64 `json:"count"`
|
||||
TotalQuantity int64 `json:"totalQuantity"`
|
||||
}
|
||||
|
||||
type SpaceUsageItem struct {
|
||||
Warehouse string `json:"warehouse"`
|
||||
Room string `json:"room"`
|
||||
TotalContainers int64 `json:"totalContainers"`
|
||||
UsedContainers int64 `json:"usedContainers"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user