package repository import "joylink.club/rtsssimulation/repository/model/proto" type Ckm struct { Identity componentGroups []*ElectronicComponentGroup } func NewCkm(id string) *Ckm { return &Ckm{ Identity: identity{id, proto.DeviceType_DeviceType_Ckm}, } } func (p *Ckm) ComponentGroups() []*ElectronicComponentGroup { return p.componentGroups }