Explorar el Código

Merge branch 'feature/snapshot' into dev

qinchaoyue hace 4 meses
padre
commit
21b9570cc7
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      src/Hotline.Application/Mappers/SnapshotMapperConfigs.cs

+ 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);