rts-sim-module/repository/slope.go

19 lines
347 B
Go

package repository
import "joylink.club/rtsssimulation/repository/model/proto"
type Slope struct {
Identity
kms []*proto.Kilometer
degree int32
}
func NewSlope(id string, kms []*proto.Kilometer, degree int32) *Slope {
return &Slope{
Identity: identity{id, proto.DeviceType_DeviceType_Slope},
kms: kms,
degree: degree,
}
}