更改规则链缓存

This commit is contained in:
XM-GO
2023-09-13 17:45:08 +08:00
parent ed8613b6fd
commit 70fb34b90f
11 changed files with 302 additions and 29 deletions

View File

@@ -8,7 +8,6 @@ package services
import (
"github.com/PandaXGO/PandaKit/biz"
"log"
"pandax/apps/rule/entity"
"pandax/pkg/events"
"pandax/pkg/global"
@@ -38,7 +37,6 @@ var RuleChainModelDao RuleChainModel = &ruleChainModelImpl{
func (m *ruleChainModelImpl) Insert(data entity.RuleChain) *entity.RuleChain {
err := global.Db.Table(m.table).Create(&data).Error
log.Println(err)
biz.ErrIsNil(err, "添加规则链失败")
return &data
}