...
|
...
|
@@ -177,6 +177,7 @@ func (repository *ArticleBackupRepository) ModelToDomainModel(from *models.Artic |
|
|
MatchUrl: from.MatchUrl,
|
|
|
ChangeField: from.ChangeField,
|
|
|
Videos: from.Videos,
|
|
|
Show: domain.ArticleShow(from.Show),
|
|
|
}
|
|
|
// err := copier.Copy(to, from)
|
|
|
return to, nil
|
...
|
...
|
@@ -205,6 +206,7 @@ func (repository *ArticleBackupRepository) DomainModelToModel(from *domain.Artic |
|
|
MatchUrl: from.MatchUrl,
|
|
|
Videos: from.Videos,
|
|
|
ChangeField: from.ChangeField,
|
|
|
Show: int(from.Show),
|
|
|
}
|
|
|
// err := copier.Copy(to, from)
|
|
|
return to, nil
|
...
|
...
|
|