From 70e5ac48988e6e9c13ecd086dd632f3a303ad545 Mon Sep 17 00:00:00 2001 From: Ulric Qin Date: Thu, 31 Mar 2022 10:24:42 +0800 Subject: [PATCH] add alert_aggr_view --- src/webapi/router/router_alert_aggr_view.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/webapi/router/router_alert_aggr_view.go b/src/webapi/router/router_alert_aggr_view.go index 165f566c..9883c2d0 100644 --- a/src/webapi/router/router_alert_aggr_view.go +++ b/src/webapi/router/router_alert_aggr_view.go @@ -21,8 +21,9 @@ func alertAggrViewAdd(c *gin.Context) { f.Id = 0 f.CreateBy = c.MustGet("userid").(int64) + ginx.Dangerous(f.Add()) - ginx.NewRender(c).Message(f.Add()) + ginx.NewRender(c).Data(f, nil) } // body: ids