diff --git a/internal/model/export.go b/internal/model/export.go index df59e170..57d73988 100644 --- a/internal/model/export.go +++ b/internal/model/export.go @@ -6,6 +6,7 @@ type ExportDropReportsAndPatternsResult struct { } type DropReportForExport struct { + Times int `json:"times"` PatternID int `json:"pattern_id"` CreatedAt int64 `json:"created_at"` AccountID int `json:"account_id"` diff --git a/internal/service/export.go b/internal/service/export.go index dd23de55..d0c10a97 100644 --- a/internal/service/export.go +++ b/internal/service/export.go @@ -50,6 +50,7 @@ func (s *Export) ExportDropReportsAndPatterns( dropReportForExportList := make([]*model.DropReportForExport, 0) for _, dropReport := range dropReports { dropReportForExportList = append(dropReportForExportList, &model.DropReportForExport{ + Times: dropReport.Times, PatternID: dropReport.PatternID, CreatedAt: dropReport.CreatedAt.UnixMilli(), AccountID: dropReport.AccountID,