15 lines
315 B
Go
15 lines
315 B
Go
package model
|
|
|
|
import "joylink.club/rtsssimulation/cstate"
|
|
|
|
//两档位按钮
|
|
type TowPosButtonModel struct {
|
|
DeviceModel
|
|
// 按钮名称
|
|
Name string
|
|
}
|
|
|
|
func NewTowPosButtonModel(id string) *TowPosButtonModel {
|
|
return &TowPosButtonModel{DeviceModel: DeviceModel{Id: id, Type: cstate.DeviceType_TowPosButton}}
|
|
}
|