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