25 lines
419 B
Go
25 lines
419 B
Go
package repository
|
|
|
|
import "joylink.club/rtsssimulation/repository/model/proto"
|
|
|
|
type Platform struct {
|
|
Identity
|
|
code string
|
|
station *Station
|
|
}
|
|
|
|
func NewPlatform(id string) *Platform {
|
|
return &Platform{Identity: identity{
|
|
id: id,
|
|
deviceType: proto.DeviceType_DeviceType_Platform,
|
|
}}
|
|
}
|
|
|
|
func (p *Platform) Code() string {
|
|
return p.code
|
|
}
|
|
|
|
func (p *Platform) Station() *Station {
|
|
return p.station
|
|
}
|