rule_chain.go 648 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package ruleEngine
  2. type EntityType int
  3. const (
  4. ruleChan EntityType = iota
  5. )
  6. type RuleChain struct {
  7. TenantId string
  8. Name string
  9. FirstNodeId string
  10. IsRoot bool
  11. IsDebug bool
  12. Config string
  13. ChainId string
  14. }
  15. type RuleNode struct {
  16. RuleChainId string
  17. Type string
  18. Name string
  19. IsDebug bool
  20. Config string
  21. RuleNodeId string
  22. }
  23. type Relation struct {
  24. From string
  25. To string
  26. Type string
  27. AdditionalInfo string
  28. RelationTypeGroup RelationTypeGroup
  29. }
  30. type RelationTypeGroup int
  31. const (
  32. COMMON RelationTypeGroup = iota
  33. RULE_CHAIN
  34. RULE_NODE
  35. )