【增加根据ID查找设备】
This commit is contained in:
parent
fa5ed10810
commit
6c09377b4a
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user