rts-sim-module/examples/test1/tmodel/device_model.go
2023-09-22 10:53:51 +08:00

21 lines
321 B
Go

package tmodel
import (
"joylink.club/rtsssimulation/system"
)
// 设备模型基础信息
type DeviceModel struct {
// 设备id
DevId string
// 设备类型
DevType system.DeviceType
}
func (me *DeviceModel) Id() string {
return me.DevId
}
func (me *DeviceModel) Type() system.DeviceType {
return me.DevType
}