feat: statistics: finish dev
This commit is contained in:
60
models/statistic.go
Normal file
60
models/statistic.go
Normal 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"`
|
||||
}
|
||||
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user