【解决IBP获取车站UID出错问题】

This commit is contained in:
weizhihong 2023-10-20 11:19:39 +08:00
parent 0c9816a1ce
commit 211e405798

View File

@ -322,6 +322,8 @@ func getUidMapByType(uidData any, m interface{}) map[string]*elementIdStructure
return (uidData.(*relayUidStructure)).RelayIds
case *graphicData.EsbButton:
return (uidData.(*stationUidStructure)).ButtonIds
case *graphicData.Station:
return (uidData.(*stationUidStructure)).StationIds
default:
panic(&dto.ErrorDto{Code: dto.ArgumentParseError, Message: "类型未映射字段"})
}