feat: 迁移预警处理审核与备注附件流程

This commit is contained in:
Yvan
2026-11-03 20:40:16 +08:00
parent 7203c34409
commit 838c2c496f
36 changed files with 2312 additions and 13 deletions
+81
View File
@@ -0,0 +1,81 @@
package dto
import "encoding/json"
type AlertRecordQuery struct {
Page int `form:"pageNum"`
PageSize int `form:"pageSize"`
PlatformCodes string `form:"platformCodes"`
TargetPromoteID *uint64 `form:"targetPromoteId"`
BusinessID *uint `form:"businessId"`
TargetPromoteName string `form:"targetPromoteName"`
RuleName string `form:"ruleName"`
RuleType string `form:"ruleType"`
BusinessName string `form:"businessName"`
MonitorMetric *int `form:"monitorMetric"`
Status *int `form:"status"`
}
type AlertProcessRequest struct {
AlertID json.Number `json:"alertId"`
Note string `json:"note"`
}
type AlertNoteRequest struct {
AlertID json.Number `json:"alertId"`
NoteContent string `json:"noteContent"`
AttachmentIDs []json.RawMessage `json:"attachmentIds"`
}
type AlertRecordResponse struct {
ID uint64 `json:"id,string"`
PlatformCode string `json:"platformCode"`
PlatformName string `json:"platformName"`
RuleID uint64 `json:"ruleId,string"`
RuleName string `json:"ruleName"`
RuleType string `json:"ruleType"`
RuleTypeLabel string `json:"ruleTypeLabel"`
MonitorMetric *int `json:"monitorMetric"`
MonitorMetricLabel string `json:"monitorMetricLabel"`
// 旧视图声明了颜色,但记录没有对应快照字段,保留空值。
WarningColor *string `json:"warningColor"`
TargetPromoteID uint64 `json:"targetPromoteId"`
TargetPromoteName string `json:"targetPromoteName"`
BusinessID uint `json:"businessId"`
BusinessName string `json:"businessName"`
AlertContent string `json:"alertContent"`
Status int `json:"status"`
StatusLabel string `json:"statusLabel"`
CreatedAt *string `json:"createdAt"`
UpdatedAt *string `json:"updatedAt"`
}
type AlertLogResponse struct {
ID uint64 `json:"id,string"`
AlertID uint64 `json:"alertId,string"`
OperatorID uint `json:"operatorId"`
OperatorName string `json:"operatorName"`
LogType int `json:"logType"`
LogTypeLabel string `json:"logTypeLabel"`
ActionDetail string `json:"actionDetail"`
NoteContent string `json:"noteContent"`
Attachments []string `json:"attachments"`
CreatedAt *string `json:"createdAt"`
}
type AlertRecordRows struct {
Rows []*AlertRecordResponse `json:"rows"`
Total int64 `json:"total"`
}
type AlertRecordPage struct {
PageData AlertRecordRows `json:"pageData"`
StatusCount map[int]int64 `json:"statusCount"`
Available bool `json:"available"`
}
type AlertRecordDetail struct {
AlertRecord *AlertRecordResponse `json:"alertRecord"`
OperationLogs []*AlertLogResponse `json:"operationLogs"`
CanAudit bool `json:"canAudit"`
}