From 6c09377b4a82d527b71d4f2c34db06d6fb59dd39 Mon Sep 17 00:00:00 2001 From: weizhihong Date: Thu, 9 Nov 2023 14:18:02 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=A2=9E=E5=8A=A0=E6=A0=B9=E6=8D=AEID?= =?UTF-8?q?=E6=9F=A5=E6=89=BE=E8=AE=BE=E5=A4=87=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- repository/repository.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/repository/repository.go b/repository/repository.go index 1c98cda..fec6674 100644 --- a/repository/repository.go +++ b/repository/repository.go @@ -71,6 +71,21 @@ func (repo *Repository) FindById(id string) Identity { if md, ok := repo.relayMap[id]; ok { return md } + if md, ok := repo.physicalSectionMap[id]; ok { + return md + } + if md, ok := repo.checkPointMap[id]; ok { + return md + } + if md, ok := repo.responderMap[id]; ok { + return md + } + if md, ok := repo.stationMap[id]; ok { + return md + } + if md, ok := repo.platformMap[id]; ok { + return md + } return nil }