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.
28 lines
753 B
28 lines
753 B
package AXY_SK
|
|
|
|
import (
|
|
"github.com/lib/pq"
|
|
_ "github.com/lib/pq"
|
|
"goInOut/models"
|
|
)
|
|
|
|
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
|
|
}
|
|
|