规则引擎

This commit is contained in:
PandaX
2023-10-26 15:58:21 +08:00
parent cefc0edfa0
commit c2b16d5474
3 changed files with 4 additions and 0 deletions

2
.gitignore vendored
View File

@@ -8,6 +8,8 @@
# Test binary, built with `go test -c`
*.test
*.git
/fatal
# Output of the go coverage tool, specifically when used with LiteIDE
*.out

1
.idea/vcs.xml generated
View File

@@ -2,5 +2,6 @@
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
<mapping directory="$PROJECT_DIR$/pkg/rule_engine" vcs="Git" />
</component>
</project>

View File

@@ -114,6 +114,7 @@ func (m *ruleChainModelImpl) FindListBaseLabel(data entity.RuleChain) *[]entity.
}
func (m *ruleChainModelImpl) Update(data entity.RuleChain) *entity.RuleChain {
//更改本地规则链缓存
if data.RuleDataJson != "" {
go global.EventEmitter.Emit(events.ProductChainRuleEvent, data.Id, data.RuleDataJson)
}