2023-08-24 10:27:50 +08:00
|
|
|
package tmodel
|
|
|
|
|
|
|
|
import (
|
|
|
|
"joylink.club/rtsssimulation/umi"
|
|
|
|
)
|
|
|
|
|
|
|
|
// 设备模型基础信息
|
|
|
|
type DeviceModel struct {
|
|
|
|
// 设备id
|
2023-09-21 16:23:03 +08:00
|
|
|
DevId string
|
2023-08-24 10:27:50 +08:00
|
|
|
// 设备类型
|
2023-09-21 16:23:03 +08:00
|
|
|
DevType umi.DeviceType
|
2023-08-24 10:27:50 +08:00
|
|
|
}
|
|
|
|
|
2023-09-21 16:23:03 +08:00
|
|
|
func (me *DeviceModel) Id() string {
|
|
|
|
return me.DevId
|
2023-08-24 10:27:50 +08:00
|
|
|
}
|
2023-09-21 16:23:03 +08:00
|
|
|
func (me *DeviceModel) Type() umi.DeviceType {
|
|
|
|
return me.DevType
|
2023-08-24 10:27:50 +08:00
|
|
|
}
|