2023-09-14 15:03:16 +08:00
|
|
|
package tmodel
|
|
|
|
|
2023-09-21 16:23:03 +08:00
|
|
|
import "joylink.club/rtsssimulation/repository/model/proto"
|
2023-09-15 10:13:25 +08:00
|
|
|
|
2023-09-14 15:03:16 +08:00
|
|
|
// 继电器模型
|
|
|
|
type RelayModel struct {
|
2023-09-15 10:13:25 +08:00
|
|
|
DeviceModel
|
|
|
|
}
|
|
|
|
|
2023-09-21 16:23:03 +08:00
|
|
|
func NewRelayModel(id string) *RelayModel {
|
|
|
|
return &RelayModel{DeviceModel: DeviceModel{DevId: id, DevType: proto.DeviceType_DeviceType_Relay}}
|
2023-09-14 15:03:16 +08:00
|
|
|
}
|