Files
nCovTrack-Backend/models/statistic.go
2022-01-23 18:28:01 +08:00

61 lines
1.8 KiB
Go

package models
type AreaInfo struct {
Name string `json:"name"`
Today AreaToday `json:"today"`
Total AreaTotal `json:"total"`
Children []AreaInfo `json:"children"`
}
type AreaToday struct {
Comfirm int `json:"confirm"`
IsUpdated bool `json:"isUpdate"`
}
type AreaTotal struct {
NowConfirm int `json:"nowConfirm"`
Confirm int `json:"confirm"`
Dead int `json:"dead"`
ShowRate bool `json:"showRate"`
Heal int `json:"heal"`
ShowHeal bool `json:"showHeal"`
Wzz int `json:"wzz"`
ProvinceLocalConfirm int `json:"provinceLocalConfirm"`
}
type ChinaAdd struct {
Confirm int `json:"confirm"`
Dead int `json:"dead"`
Heal int `json:"heal"`
ImportedCase int `json:"importedCase"`
LocalConfirm int `json:"localConfirm"`
LocalConfirmH5 int `json:"localConfirmH5"`
NoInfect int `json:"noInfect"`
NoInfectH5 int `json:"noInfectH5"`
NowConfirm int `json:"nowConfirm"`
NowSevere int `json:"nowSevere"`
Suspect int `json:"suspect"`
}
type ChinaTotal struct {
Confirm int `json:"confirm"`
Dead int `json:"dead"`
Heal int `json:"heal"`
ImportedCase int `json:"importedCase"`
LocalConfirm int `json:"localConfirm"`
LocalConfirmH5 int `json:"localConfirmH5"`
LocalAccConfirm int `json:"local_acc_confirm"`
NoInfect int `json:"noInfect"`
NoInfectH5 int `json:"noInfectH5"`
NowConfirm int `json:"nowConfirm"`
NowSevere int `json:"nowSevere"`
ShowLocalConfirm int `json:"showLocalConfirm"`
Showlocalinfeciton int `json:"showlocalinfeciton"`
Suspect int `json:"suspect"`
}
type ChinaData struct {
ChinaAdd ChinaAdd `json:"chinaAdd"`
ChinaTotal ChinaTotal `json:"chinaTotal"`
}