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, } }