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 {