feat: statistics: finish dev

This commit is contained in:
fallen-angle
2022-01-23 18:28:01 +08:00
parent 582807ae10
commit d844711191
29 changed files with 1670 additions and 51 deletions

60
models/statistic.go Normal file
View File

@@ -0,0 +1,60 @@
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"`
}

View File

@@ -6,3 +6,9 @@ type UtilRequestInfo struct {
Body string
Timeout int
}
type GinResponse struct {
Code int `json:"code"`
Msg interface{} `json:"msg"`
Data interface{} `json:"data"`
}