feat: add endpoint and logic for retrieving top exported components, including SQL queries, models, and service integration

This commit is contained in:
Tran Anh Tuan
2026-05-14 11:02:09 +07:00
parent 96bc22942b
commit cee0186225
12 changed files with 431 additions and 4 deletions

View File

@@ -68,3 +68,11 @@ type TransactionChartItem struct {
type TransactionChartData struct {
Items []TransactionChartItem `json:"items"`
}
type TopExportedComponent struct {
ID int64 `json:"id"`
Name string `json:"name"`
Unit string `json:"unit"`
ComponentTypeName string `json:"componentTypeName"`
TotalExported int64 `json:"totalExported"`
}