topology-map/internal/models/cytoscape.go

15 lines
332 B
Go
Raw Normal View History

2024-09-22 08:27:05 +00:00
package models
type ElementData struct {
ID string `json:"id"`
Label string `json:"label"`
Source string `json:"source,omitempty"`
Target string `json:"target,omitempty"`
Parent string `json:"parent,omitempty"`
}
type Element struct {
Data ElementData `json:"data"`
Classes []string `json:"classes,omitempty"`
}