Commit 73c6c1b6 authored by 李科's avatar 李科

fix: 兼容工单预警列表

parent 0bf8ccfd
......@@ -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'"` // 更新人
......
......@@ -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",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment