Files
data-engine/model/dto/copydata/sync_task_log_dto.go
2026-04-09 09:48:22 +08:00

59 lines
2.5 KiB
Go

package copydata
// CreateSyncTaskLogReq 创建同步任务日志请求
type CreateSyncTaskLogReq struct {
TaskID string `json:"taskId"`
TaskType string `json:"taskType"`
AdvertiserID int64 `json:"advertiserId"`
StartTime interface{} `json:"startTime"`
EndTime interface{} `json:"endTime"`
Status string `json:"status"`
MaxRetry int `json:"maxRetry"`
PageInfo interface{} `json:"pageInfo,omitempty"`
RequestParams interface{} `json:"requestParams,omitempty"`
}
// UpdateSyncTaskLogReq 更新同步任务日志请求
type UpdateSyncTaskLogReq struct {
ID int64 `json:"id"`
Status string `json:"status,omitempty"`
RetryCount *int `json:"retryCount,omitempty"`
ErrorMessage string `json:"errorMessage,omitempty"`
ErrorCode string `json:"errorCode,omitempty"`
ResultSummary interface{} `json:"resultSummary,omitempty"`
NextRetryTime interface{} `json:"nextRetryTime,omitempty"`
CompletedAt interface{} `json:"completedAt,omitempty"`
DurationMs *int64 `json:"durationMs,omitempty"`
}
// QueryFailedTasksReq 查询失败任务请求
type QueryFailedTasksReq struct {
Status []string `json:"status,omitempty"` // 查询的状态列表
TaskType string `json:"taskType,omitempty"` // 任务类型
MaxRetries *int `json:"maxRetries,omitempty"` // 最大重试次数过滤
Limit int `json:"limit,omitempty"` // 限制数量
}
// SyncTaskLogItem 同步任务日志项
type SyncTaskLogItem struct {
Id int64 `json:"id"`
TaskID string `json:"taskId"`
TaskType string `json:"taskType"`
AdvertiserID int64 `json:"advertiserId"`
StartTime interface{} `json:"startTime"`
EndTime interface{} `json:"endTime"`
Status string `json:"status"`
RetryCount int `json:"retryCount"`
MaxRetry int `json:"maxRetry"`
ErrorMessage string `json:"errorMessage,omitempty"`
ErrorCode string `json:"errorCode,omitempty"`
ResultSummary interface{} `json:"resultSummary,omitempty"`
PageInfo interface{} `json:"pageInfo,omitempty"`
RequestParams interface{} `json:"requestParams,omitempty"`
NextRetryTime interface{} `json:"nextRetryTime,omitempty"`
CompletedAt interface{} `json:"completedAt,omitempty"`
DurationMs int64 `json:"durationMs"`
CreatedAt interface{} `json:"createdAt"`
UpdatedAt interface{} `json:"updatedAt"`
}