数据 输入输出 处理
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
848 B

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
Time time.Time
AlarmLevel int
}