Skip to content

Commit

Permalink
fix: add times to drop report for export
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvISsReimu committed Nov 11, 2023
1 parent c5cf7ec commit 3b5660d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/model/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
1 change: 1 addition & 0 deletions internal/service/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3b5660d

Please sign in to comment.