rts-sim-module/repository/button.go
2023-10-10 16:15:56 +08:00

17 lines
336 B
Go

package repository
import "joylink.club/rtsssimulation/repository/model/proto"
type Button struct {
Identity
buttonType proto.Button_ButtonType
}
func NewButton(id string, buttonType proto.Button_ButtonType) *Button {
return &Button{
Identity: identity{id, proto.DeviceType_DeviceType_Button},
buttonType: buttonType,
}
}