rts-sim-module/examples/test1/tmodel/relay_model.go
2023-09-21 16:23:03 +08:00

13 lines
284 B
Go

package tmodel
import "joylink.club/rtsssimulation/repository/model/proto"
// 继电器模型
type RelayModel struct {
DeviceModel
}
func NewRelayModel(id string) *RelayModel {
return &RelayModel{DeviceModel: DeviceModel{DevId: id, DevType: proto.DeviceType_DeviceType_Relay}}
}