2023-10-12 17:55:40 +08:00
|
|
|
package repository
|
|
|
|
|
|
|
|
import "joylink.club/rtsssimulation/repository/model/proto"
|
|
|
|
|
|
|
|
type Psd struct {
|
|
|
|
Identity
|
2023-10-19 17:09:47 +08:00
|
|
|
platformId string
|
2023-10-12 17:55:40 +08:00
|
|
|
componentGroups []*ElectronicComponentGroup
|
|
|
|
}
|
|
|
|
|
|
|
|
func newPsd(id string) *Psd {
|
|
|
|
return &Psd{
|
|
|
|
Identity: identity{id, proto.DeviceType_DeviceType_Psd},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-10-19 17:09:47 +08:00
|
|
|
func (p *Psd) PlatformId() string {
|
|
|
|
return p.platformId
|
|
|
|
}
|
|
|
|
|
2023-10-12 17:55:40 +08:00
|
|
|
func (p *Psd) ComponentGroups() []*ElectronicComponentGroup {
|
|
|
|
return p.componentGroups
|
|
|
|
}
|