|
|
|
@@ -13,8 +13,8 @@ type FlowData struct { |
|
|
|
type Node struct { |
|
|
|
ID string `json:"id"` |
|
|
|
Type string `json:"type"` |
|
|
|
X int `json:"x"` |
|
|
|
Y int `json:"y"` |
|
|
|
X float64 `json:"x"` |
|
|
|
Y float64 `json:"y"` |
|
|
|
Properties JobInfo `json:"properties"` |
|
|
|
Text *Text `json:"text,omitempty"` // 有些节点没有 text 字段 |
|
|
|
} |
|
|
|
@@ -34,14 +34,14 @@ type Edge struct { |
|
|
|
} |
|
|
|
|
|
|
|
type Point struct { |
|
|
|
X int `json:"x"` |
|
|
|
Y int `json:"y"` |
|
|
|
X float64 `json:"x"` |
|
|
|
Y float64 `json:"y"` |
|
|
|
} |
|
|
|
|
|
|
|
type Text struct { |
|
|
|
X int `json:"x"` |
|
|
|
Y int `json:"y"` |
|
|
|
Value string `json:"value"` |
|
|
|
X float64 `json:"x"` |
|
|
|
Y float64 `json:"y"` |
|
|
|
Value string `json:"value"` |
|
|
|
} |
|
|
|
|
|
|
|
type JobFlowDAO struct { |
|
|
|
|