26 lines
1003 B
Go
26 lines
1003 B
Go
package consts
|
|
|
|
// DeviceExceptionEnum 设备例外枚举定义
|
|
type DeviceExceptionEnum int8
|
|
|
|
const (
|
|
DeviceExceptionNon DeviceExceptionEnum = iota
|
|
DeviceCommunicationInterrupt //通信中断
|
|
DeviceAbnormal //异常
|
|
DeviceFault //故障 有预告信号产生
|
|
DeviceAlarm //报警 有事故信号产生
|
|
DeviceStartTimeout //启动超时
|
|
DeviceModuleFault //模块故障
|
|
)
|
|
|
|
// DevicePlacingEnum 设备置牌枚举定义
|
|
type DevicePlacingEnum int8
|
|
|
|
const (
|
|
DevicePlacingNon DevicePlacingEnum = iota
|
|
DevicePlacingOverhaulCard //设备置牌:检修
|
|
DevicePlacingLandingCard //设备置牌:接地
|
|
DevicePlacingHand //设备置牌:就地(手型牌)
|
|
DevicePlacingOtherCard //设备置牌:其他
|
|
)
|