mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-05-06 20:11:27 +08:00
【添加】规则消息通知
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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{},
|
||||
),
|
||||
"初始化表失败")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user