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:
Tran Anh Tuan
2026-05-14 11:44:39 +07:00
parent cee0186225
commit 84ef7d446e
11 changed files with 612 additions and 0 deletions

View File

@@ -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"`
}