|
@@ -177,6 +177,7 @@ func (repository *ArticleBackupRepository) ModelToDomainModel(from *models.Artic |
|
@@ -177,6 +177,7 @@ func (repository *ArticleBackupRepository) ModelToDomainModel(from *models.Artic |
177
|
MatchUrl: from.MatchUrl,
|
177
|
MatchUrl: from.MatchUrl,
|
178
|
ChangeField: from.ChangeField,
|
178
|
ChangeField: from.ChangeField,
|
179
|
Videos: from.Videos,
|
179
|
Videos: from.Videos,
|
|
|
180
|
+ Show: domain.ArticleShow(from.Show),
|
180
|
}
|
181
|
}
|
181
|
// err := copier.Copy(to, from)
|
182
|
// err := copier.Copy(to, from)
|
182
|
return to, nil
|
183
|
return to, nil
|
|
@@ -205,6 +206,7 @@ func (repository *ArticleBackupRepository) DomainModelToModel(from *domain.Artic |
|
@@ -205,6 +206,7 @@ func (repository *ArticleBackupRepository) DomainModelToModel(from *domain.Artic |
205
|
MatchUrl: from.MatchUrl,
|
206
|
MatchUrl: from.MatchUrl,
|
206
|
Videos: from.Videos,
|
207
|
Videos: from.Videos,
|
207
|
ChangeField: from.ChangeField,
|
208
|
ChangeField: from.ChangeField,
|
|
|
209
|
+ Show: int(from.Show),
|
208
|
}
|
210
|
}
|
209
|
// err := copier.Copy(to, from)
|
211
|
// err := copier.Copy(to, from)
|
210
|
return to, nil
|
212
|
return to, nil
|