Browse Source

修改工作流X,Y类型

pull/52/head
JeshuaRen 7 months ago
parent
commit
d250d681c2
1 changed files with 7 additions and 7 deletions
  1. +7
    -7
      sdks/scheduler/jobflow.go

+ 7
- 7
sdks/scheduler/jobflow.go View File

@@ -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 {


Loading…
Cancel
Save