lijian 2 年之前
父节点
当前提交
b86be4070e
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      pkg/models/rulechain.go

+ 5 - 5
pkg/models/rulechain.go

@@ -43,11 +43,11 @@ type CreatChainReq struct {
 type Cells []*Cell
 
 type Cell struct {
-	Id     string   `json:"id"` // id
-	Shape  string   `json:"shape"`
-	Data   CellData `json:"data"`   // 数据
-	Source Branch   `json:"source"` // 上级节点
-	Target Branch   `json:"target"` // 下级节点
+	Id     string                 `json:"id"` // id
+	Shape  string                 `json:"shape"`
+	Data   map[string]interface{} `json:"data"`   // 数据
+	Source Branch                 `json:"source"` // 上级节点
+	Target Branch                 `json:"target"` // 下级节点
 }
 
 type CellData struct {