【增加采集、驱动配置】
This commit is contained in:
parent
d45ee86aa4
commit
c5dae5bb22
@ -29,6 +29,7 @@ type Repository struct {
|
||||
mkxMap map[string]*Mkx
|
||||
keyMap map[string]*Key
|
||||
linkMap map[string]*Link
|
||||
centralizedMap map[string]*proto.CentralizedStationRef
|
||||
}
|
||||
|
||||
func newRepository(id string, version string) *Repository {
|
||||
|
@ -122,6 +122,9 @@ func buildModels(source *proto.Repository, repository *Repository) error {
|
||||
repository.keyMap[m.Id()] = m
|
||||
}
|
||||
err := repository.generateCoordinateInfo(source.MainCoordinateSystem)
|
||||
for _, protoData := range source.CentralizedStationRefs {
|
||||
repository.centralizedMap[protoData.StationId] = protoData
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user