正在显示
1 个修改的文件
包含
2 行增加
和
0 行删除
@@ -451,6 +451,7 @@ func (repository *ArticleRepository) ModelToDomainModel(from *models.Article) (* | @@ -451,6 +451,7 @@ func (repository *ArticleRepository) ModelToDomainModel(from *models.Article) (* | ||
451 | Operator: from.Operator, | 451 | Operator: from.Operator, |
452 | DeletedType: from.DeletedType, | 452 | DeletedType: from.DeletedType, |
453 | IsDel: int(from.IsDel), | 453 | IsDel: int(from.IsDel), |
454 | + Cover: from.Cover, | ||
454 | } | 455 | } |
455 | return to, nil | 456 | return to, nil |
456 | } | 457 | } |
@@ -483,6 +484,7 @@ func (repository *ArticleRepository) DomainModelToModel(from *domain.Article) (* | @@ -483,6 +484,7 @@ func (repository *ArticleRepository) DomainModelToModel(from *domain.Article) (* | ||
483 | Source: from.Source, | 484 | Source: from.Source, |
484 | Operator: from.Operator, | 485 | Operator: from.Operator, |
485 | DeletedType: from.DeletedType, | 486 | DeletedType: from.DeletedType, |
487 | + Cover: from.Cover, | ||
486 | } | 488 | } |
487 | // err := copier.Copy(to, from) | 489 | // err := copier.Copy(to, from) |
488 | return to, nil | 490 | return to, nil |
-
请 注册 或 登录 后发表评论