mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 02:48:34 +08:00
【feat】首页面板数据
This commit is contained in:
@@ -50,3 +50,18 @@ func (DeviceCmdLog) TableName() string {
|
||||
type DeviceStatistics struct {
|
||||
Time time.Time `gorm:"comment:时间" json:"time"`
|
||||
}
|
||||
|
||||
type DeviceCount struct {
|
||||
Total int64 `json:"total"`
|
||||
Today int64 `json:"todayAdd"`
|
||||
}
|
||||
|
||||
type DeviceCountLinkStatus struct {
|
||||
Total int64 `json:"deviceTotal"`
|
||||
LinkStatus string `json:"linkStatus"`
|
||||
}
|
||||
|
||||
type DeviceCountType struct {
|
||||
Total int64 `json:"deviceTotal"`
|
||||
DeviceType string `json:"deviceType"`
|
||||
}
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
package entity
|
||||
|
||||
type DeviceTotalOutput struct {
|
||||
DeviceInfo DeviceCount `json:"deviceInfo"`
|
||||
DeviceLinkStatusInfo []DeviceCountLinkStatus `json:"deviceLinkStatusInfo"`
|
||||
DeviceCountType []DeviceCountType `json:"deviceCountType"`
|
||||
ProductInfo DeviceCount `json:"productInfo"`
|
||||
AlarmInfo DeviceCount `json:"alarmInfo"`
|
||||
}
|
||||
|
||||
type DeviceStatusVo struct {
|
||||
Name string `json:"name"`
|
||||
Key string `json:"key"`
|
||||
|
||||
Reference in New Issue
Block a user