package dto type GetStatisticInfoRequest struct { AppId int `json:"app_id"` } type GetStatisticInfoResponse struct { StatisticInfo } type StatisticInfo struct { DeviceCount int64 `json:"device_count"` DeviceOnlineCount int64 `json:"device_online_count"` DeviceDownCount int64 `json:"device_down_count"` AlarmCount int64 `json:"alarm_count"` UntreatedAlarmCount int64 `json:"untreated_alarm_count"` LinkCount int64 `json:"link_count"` NowDateLinkCount int64 `json:"now_date_link_count"` } type GetDevStatusRequest struct { AppId int `json:"app_id"` LimitPage } type GetDevStatusResponse struct { List []DevStatusInfo `json:"list"` Total int64 `json:"total"` } type DevStatusInfo struct { DeviceId int `gorm:"column:deviceId"` DeviceName string `gorm:"column:deviceName"` StationName string `gorm:"column:station_name"` AppName string `gorm:"column:app_name"` Mpinfo []MpinfoList `json:"mpinfo" gorm:"-"` Online int `gorm:"column:online"` } type MpinfoList struct { MpName string `json:"mp_name"` MpZone string `json:"mp_zone"` MpPosition string `json:"mp_position"` }