From 468cc7896408951a5627777aa862a58716642317 Mon Sep 17 00:00:00 2001 From: thesai <1021828630@qq.com> Date: Fri, 17 May 2024 14:38:13 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E6=94=B9]=E5=8C=BA=E6=AE=B5=E3=80=81?= =?UTF-8?q?Link=E3=80=81=E8=BF=90=E8=90=A5=E6=96=B9=E5=90=91/=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E4=B9=8B=E9=97=B4=E4=BA=92=E7=9B=B8=E8=BD=AC=E6=8D=A2?= =?UTF-8?q?=E7=9A=84=E5=87=BD=E6=95=B0=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- repository/turnout.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/repository/turnout.go b/repository/turnout.go index 083730a..fcab0dc 100644 --- a/repository/turnout.go +++ b/repository/turnout.go @@ -44,6 +44,10 @@ type Turnout struct { componentGroups []*ElectronicComponentGroup } +func (t *Turnout) Km() *proto.Kilometer { + return t.km +} + func NewTurnout(id string, km *proto.Kilometer, switchMachineType proto.Turnout_SwitchMachineType) *Turnout { return &Turnout{ Identity: identity{id, proto.DeviceType_DeviceType_Turnout},