zhuyanhuazhuyanhua commented on issue #1315:
URL: https://github.com/apache/dubbo-admin/issues/1315#issuecomment-3394322046
4.资源转换实现
```go
package converter
type DubboResourceConverter struct{}
func (c *DubboResourceConverter) ConvertAtomicToDubbo(atomics
[]*AtomicResource) (*DubboResourceBundle, error) {
bundle := &DubboResourceBundle{}
for _, atomic := range atomics {
switch atomic.Type {
case "zk_provider_node":
app, service, instance := c.parseProviderNode(atomic)
bundle.Applications = append(bundle.Applications, app)
bundle.Services = append(bundle.Services, service)
bundle.Instances = append(bundle.Instances, instance)
case "nacos_instance":
}
}
return bundle, nil
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]