88 lines
3.1 KiB
Go
88 lines
3.1 KiB
Go
package dto
|
|
|
|
import "encoding/json"
|
|
|
|
type AlertRecordQuery struct {
|
|
AlertContent string `form:"alertContent"`
|
|
Lost *bool `form:"lost"`
|
|
Page int `form:"pageNum"`
|
|
PageSize int `form:"pageSize"`
|
|
PlatformCodes string `form:"platformCodes"`
|
|
TargetPromoteID *uint64 `form:"targetPromoteId"`
|
|
PlatformBusierID *uint64 `form:"platformBusierId"`
|
|
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 {
|
|
TotalPlayers *int64 `json:"totalPlayers"`
|
|
TotalPay *string `json:"totalPay"`
|
|
Lost *bool `json:"lost"`
|
|
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"`
|
|
// 历史记录无快照时返回 null,不回填当前数值。
|
|
WarningColor *string `json:"warningColor"`
|
|
TargetPromoteID uint64 `json:"targetPromoteId,string"`
|
|
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"`
|
|
}
|