Forráskód Böngészése

Merge branch 'feature/snapshot' into dev

qinchaoyue 4 hónapja
szülő
commit
21b9570cc7

+ 4 - 0
src/Hotline.Application/Mappers/SnapshotMapperConfigs.cs

@@ -16,6 +16,10 @@ public class SnapshotMapperConfigs : IRegister
 {
     public void Register(TypeAdapterConfig config)
     {
+        config.ForType< SnapshotBulletin, SnapshotBulletinDetailOutDto>()
+         .Map(m => m.BulletinTypeId, n => n.SnapshotBulletinTypeId)
+         .Map(m => m.BulletinTypeName, n => n.SnapshotBulletinTypeName);
+
         config.ForType<UpdateSnapshotBulletinInDto, SnapshotBulletin>()
             .Map(m => m.SnapshotBulletinTypeId, n => n.BulletinTypeId)
             .Map(m => m.SnapshotBulletinTypeName, n => n.BulletinTypeName);