package AXY_SK import ( "github.com/lib/pq" _ "github.com/lib/pq" "goInOut/models" "time" ) type AlarmTrigger struct { Id int `json:"id" db:"id"` StructId int `json:"struct_id" db:"struct_id"` FactorId int `json:"factor_id" db:"factor_id"` AlarmLevel int `json:"alarm_level" db:"alarm_level"` ConditionRaw pq.Int32Array `json:"condition" db:"condition"` ConditionArray []int32 Rule int `json:"rule" db:"rule"` } type StationAlarmTrigger struct { AlarmTrigger StationName string `json:"station_name" db:"station_name"` StationId int `json:"station_id" db:"station_id"` } type StationAlarmGroup struct { Alarm3007 *models.EsAlarm Alarm3008 *models.EsAlarm } type HistoryAlarm struct { SourceId string Condition string Time time.Time AlarmLevel int }