package ruleEngine type EntityType int const ( ruleChan EntityType = iota ) // RuleChain 规则链对象 type RuleChain struct { TenantId string Name string FirstNodeId string IsRoot bool IsDebug bool Config string ChainId string } // RuleNode 规则节点对象,代表规则链中的一个组成节点 type RuleNode struct { RuleChainId string Type string Name string IsDebug bool Config string RuleNodeId string } // Relation 节点关系 // 用于描述节点之间的关系 type Relation struct { From string To string Type string AdditionalInfo string RelationTypeGroup RelationTypeGroup } type RelationTypeGroup int const ( COMMON RelationTypeGroup = iota RULE_CHAIN RULE_NODE )