modelRT/network/circuit_diagram_delete_requ...

31 lines
1002 B
Go

// Package network define struct of network operation
package network
import "github.com/gofrs/uuid"
// TopologicDelInfo defines circuit diagram topologic delete info
type TopologicDelInfo struct {
UUIDFrom string `json:"uuid_from"`
UUIDTo string `json:"uuid_to"`
}
// TopologicUUIDDelInfo defines circuit diagram topologic uuid delete info
type TopologicUUIDDelInfo struct {
UUIDFrom uuid.UUID `json:"uuid_from"`
UUIDTo uuid.UUID `json:"uuid_to"`
}
// ComponentDelInfo defines circuit diagram component delete index info
type ComponentDelInfo struct {
UUID string `json:"uuid"`
ComponentType int `json:"component_type"`
}
// CircuitDiagramDeleteRequest defines request params of circuit diagram delete api
type CircuitDiagramDeleteRequest struct {
PageID int64 `json:"page_id"`
FreeVertexs []string `json:"free_vertexs"`
TopologicLinks []TopologicDelInfo `json:"topologics"`
ComponentInfos []ComponentDelInfo `json:"component_infos"`
}