From 155bed23b4dc802df65492385fc172911cc701ee Mon Sep 17 00:00:00 2001 From: like Date: Tue, 11 Jul 2023 18:14:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=A2=84=E8=AD=A6=E5=B7=A5=E5=8D=95?= =?UTF-8?q?=E6=98=AF=E5=90=A6=E5=A4=84=E7=BD=AE=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/service/alert_list.go | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/src/service/alert_list.go b/src/service/alert_list.go index d98223a..b9ba3de 100644 --- a/src/service/alert_list.go +++ b/src/service/alert_list.go @@ -75,6 +75,7 @@ func (a *AlertListSvc) GetDataById(req request.DetailAlertList) (resp response.A DisposalTime: now, }, }, + IsDisposed: 2, CloseRemark: "", CloseUser: "", DeferPush: 0, @@ -165,6 +166,7 @@ func (a *AlertListSvc) List(req request.ListAlertList) (resp response.AlertListL DisposalTime: now, }, }, + IsDisposed: 2, CloseRemark: "", CloseUser: "", DeferPush: 0, @@ -235,14 +237,23 @@ func (a *AlertListSvc) List(req request.ListAlertList) (resp response.AlertListL PushCount: 1, LastPushTime: now, Status: 3, - CloseRemark: "关闭备注", - CloseUser: "xiaowang", - CloseTime: now, - DeferPush: 1, - CreatedBy: "admin", - CreatedAt: now, - UpdatedBy: "admin", - UpdatedAt: now, + DisposedList: []entity.DisposedList{ + { + IsDisposed: 1, + DisposalContent: "已做处置", + DisposalUser: "xiaowang", + DisposalTime: now, + }, + }, + IsDisposed: 1, + CloseRemark: "关闭备注", + CloseUser: "xiaowang", + CloseTime: now, + DeferPush: 1, + CreatedBy: "admin", + CreatedAt: now, + UpdatedBy: "admin", + UpdatedAt: now, }, AlertCondition: entity.AlertCondition{ ThresholdsMax: 80, -- 2.26.0