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