17 lines
333 B
Go
17 lines
333 B
Go
|
package repository
|
||
|
|
||
|
import "joylink.club/rtsssimulation/repository/model/proto"
|
||
|
|
||
|
type Station struct {
|
||
|
Identity
|
||
|
code string
|
||
|
componentGroups []*ElectronicComponentGroup
|
||
|
}
|
||
|
|
||
|
func NewStation(id, code string) *Station {
|
||
|
return &Station{
|
||
|
Identity: identity{id, proto.DeviceType_DeviceType_Station},
|
||
|
code: code,
|
||
|
}
|
||
|
}
|