From d250d681c226bd709129d3d557e11afb8c1e60b0 Mon Sep 17 00:00:00 2001 From: JeshuaRen <270813223@qq.com> Date: Wed, 23 Apr 2025 17:06:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=B7=A5=E4=BD=9C=E6=B5=81X,?= =?UTF-8?q?Y=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sdks/scheduler/jobflow.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sdks/scheduler/jobflow.go b/sdks/scheduler/jobflow.go index d6cf5fb..5219b80 100644 --- a/sdks/scheduler/jobflow.go +++ b/sdks/scheduler/jobflow.go @@ -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 {