From 73c6c1b6547dcf9913a9ba0be4101cc91f27c29f Mon Sep 17 00:00:00 2001 From: like Date: Thu, 6 Jul 2023 13:51:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=85=BC=E5=AE=B9=E5=B7=A5=E5=8D=95?= =?UTF-8?q?=E9=A2=84=E8=AD=A6=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/bean/entity/alert_list.go | 2 ++ src/service/alert_list.go | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/bean/entity/alert_list.go b/src/bean/entity/alert_list.go index 6f49d71..9b84d9a 100644 --- a/src/bean/entity/alert_list.go +++ b/src/bean/entity/alert_list.go @@ -18,6 +18,8 @@ type AlertList struct { PushCount int `json:"push_count"` // 推送次数 LastPushTime jsontime.Time `json:"last_push_time"` // 最近推送时间 Status int `json:"status"` // 状态,1:已恢复 2:未恢复 3:已关闭 + IsDisposed int `json:"is_disposed"` // 是否处置(工单管理),1:已处置,2:未处置 + DisposalContent string `json:"disposal_content"` // 处置内容(工单管理,结果反馈) CreatedBy string `json:"created_by" xorm:"'created_by'"` // 创建人 CreatedAt jsontime.Time `json:"created_at" xorm:"'created_at'"` // 创建时间 UpdatedBy string `json:"updated_by" xorm:"'updated_by'"` // 更新人 diff --git a/src/service/alert_list.go b/src/service/alert_list.go index 7f3b2d7..a357600 100644 --- a/src/service/alert_list.go +++ b/src/service/alert_list.go @@ -42,7 +42,9 @@ func (a *AlertListSvc) GetDataById(req request.DetailAlertList) (resp response.A NotificationCount: 3, PushCount: 3, LastPushTime: now, - Status: 0, + Status: 2, + IsDisposed: 1, + DisposalContent: "已处置完毕,已做恢复操作", CreatedBy: "admin", CreatedAt: now, UpdatedBy: "admin", @@ -74,6 +76,8 @@ func (a *AlertListSvc) List(req request.ListAlertList) (resp response.AlertListL PushCount: 3, LastPushTime: now, Status: 2, + IsDisposed: 1, + DisposalContent: "处置为未恢复", CreatedBy: "admin", CreatedAt: now, UpdatedBy: "admin", @@ -99,6 +103,8 @@ func (a *AlertListSvc) List(req request.ListAlertList) (resp response.AlertListL PushCount: 1, LastPushTime: now, Status: 1, + IsDisposed: 1, + DisposalContent: "处置内容为已恢复", CreatedBy: "admin", CreatedAt: now, UpdatedBy: "admin", -- 2.26.0