feat: customer industry distribution

This commit is contained in:
zchengo
2023-01-03 21:42:59 +08:00
parent 288afdb99c
commit 3ae1ca33ba
3 changed files with 76 additions and 17 deletions
+12 -6
View File
@@ -1,10 +1,16 @@
package models
type DashboardSum struct {
Customers int `json:"customers"`
Contracts int `json:"contracts"`
ContractAmount float64 `json:"contractAmount"`
Products int `json:"products"`
Date []string `json:"date"`
Amount []float64 `json:"amount"`
Customers int `json:"customers"`
Contracts int `json:"contracts"`
ContractAmount float64 `json:"contractAmount"`
Products int `json:"products"`
Date []string `json:"date"`
Amount []float64 `json:"amount"`
CustomerIndustry []*CustomerIndustry `json:"customerIndustry"`
}
type CustomerIndustry struct {
Name string `json:"name"`
Value int `json:"value"`
}