23 lines
765 B
Go
23 lines
765 B
Go
|
|
// Package network define struct of network operation
|
||
|
|
package network
|
||
|
|
|
||
|
|
// TopologicChangeInfo defines circuit diagram topologic change info
|
||
|
|
type TopologicChangeInfo struct {
|
||
|
|
FromUUID string `json:"from_uuid"`
|
||
|
|
ToUUID string `json:"to_uuid"`
|
||
|
|
}
|
||
|
|
|
||
|
|
// ComponentInfo defines circuit diagram component params info
|
||
|
|
type ComponentInfo struct {
|
||
|
|
UUID string `json:"uuid"`
|
||
|
|
ComponentType int `json:"component_type"`
|
||
|
|
Params string `json:"params"`
|
||
|
|
}
|
||
|
|
|
||
|
|
// CircuitDiagramUpdateRequest defines request params of circuit diagram update api
|
||
|
|
type CircuitDiagramUpdateRequest struct {
|
||
|
|
PageID int64 `json:"page_id"`
|
||
|
|
TopologicLinks []TopologicChangeInfo `json:"topologics"`
|
||
|
|
ComponentInfos []ComponentInfo `json:"component_infos"`
|
||
|
|
}
|