【添加】规则消息通知

This commit is contained in:
PandaGoAdmin
2022-09-02 17:16:45 +08:00
parent 6312617f49
commit 31fe267d0a
13 changed files with 353 additions and 101 deletions

View File

@@ -10,6 +10,8 @@ import (
resRouter "pandax/apps/resource/router"
sysRouter "pandax/apps/system/router"
ruleRouter "pandax/apps/rule/router"
"pandax/pkg/middleware"
)
@@ -61,6 +63,11 @@ func InitRouter() *transport.HttpServer {
resRouter.InitResOssRouter(container)
resRouter.InitResEmailsRouter(container)
}
// 规则
{
ruleRouter.InitRuleNoticeRouter(container)
}
// api接口
middleware.SwaggerConfig(container)
return server

View File

@@ -7,6 +7,7 @@ import (
jobEntity "pandax/apps/job/entity"
logEntity "pandax/apps/log/entity"
resSourceEntity "pandax/apps/resource/entity"
ruleEntity "pandax/apps/rule/entity"
"pandax/apps/system/entity"
"pandax/pkg/global"
)
@@ -48,6 +49,8 @@ func InitTable() {
flowEntity.FlowWorkStage{},
flowEntity.FlowWorkTask{},
flowEntity.FlowWorkTaskHistory{},
ruleEntity.RuleNotice{},
),
"初始化表失败")
}