package domain type FwhPageResponse[T any] struct { Code int `json:"code"` Message string `json:"message"` Result []T `json:"result"` Success bool `json:"success"` Total uint64 `json:"total"` } type AlarmSnapshotInfo struct { Id int64 `json:"id"` CodeType int32 `json:"codeType"` // 作用未知 FileName string `json:"fileName"` FileUrl string `json:"fileUrl"` LinkId string `json:"linkId"` // site SN LogTime string `json:"logTime"` // format YYYY-MM-DD SerialNumber string `json:"serialNumber"` StartTime string `json:"startTime"` // format YYYY-MM-DD HH:mm:SS EndTime string `json:"endTime"` // format YYYY-MM-DD HH:mm:SS Status int `json:"status"` // 1-完成 CompleteTime string `json:"completeTime"` // format YYYY-MM-DD HH:mm:SS } type EventAlarmItem struct { ID *string `json:"id"` // UUID or null CmdType string `json:"cmdType"` // 命令说明 CmdName string `json:"cmdName"` // 命令类型 exp:201... GatewayId string `json:"gatewayId"` // SN GatewayType *string `json:"gatewayType"` GatewayStatus *string `json:"gatewayStatus"` ActiveStatus *string `json:"activeStatus"` // 激活状态 ActiveTime *string `json:"activeTime"` // 激活时间 AlarmCode string `json:"alarmCode"` // 告警码,事件则为0 LogName string `json:"logName"` LogType string `json:"logType"` // 日志类型 0-事件 1-告警 LogData string `json:"logData"` // JSON数据 LogTime string `json:"logTime"` // 设备时间(日志上传时间,告警未结束为开始时间,结束为结束时间) Time string `json:"time"` // UTC时间 StartTime string `json:"startTime"` // 事件或告警的开始时间 EndTime *string `json:"endTime"` // 告警结束时间,事件没有结束时间为null,告警枚举结束时间则未结束 } type ShutdownRecord struct { GatewayId string `json:"gatewayId"` // SN ShutdownType int `json:"shutdownType"` // 1-系统停机 2-aPower停机 Country string `json:"country"` // 国家 Province string `json:"province"` // 州/省 ActiveTime string `json:"activeTime"` // 激活时间 DeviceTime string `json:"deviceTime"` // 告警时的设备时间 (Shutdown开始时间) }