16 lines
328 B
Go
16 lines
328 B
Go
|
package models
|
||
|
|
||
|
type GraphElement struct {
|
||
|
Id int `json:"id"`
|
||
|
Name string `json:"name"`
|
||
|
Type string `json:"type"`
|
||
|
}
|
||
|
|
||
|
type GraphLink struct {
|
||
|
Id int `json:"id"`
|
||
|
Name string `json:"name"`
|
||
|
Type string `json:"type"`
|
||
|
Source int `json:"source"`
|
||
|
Destination int `json:"destination"`
|
||
|
}
|