mirror of https://github.com/abpframework/abp.git
8 changed files with 61 additions and 46 deletions
@ -1,15 +0,0 @@ |
|||||
using AutoMapper; |
|
||||
using Volo.Abp.SettingManagement.Blazor.Pages.SettingManagement.EmailSettingGroup; |
|
||||
|
|
||||
namespace Volo.Abp.SettingManagement.Blazor; |
|
||||
|
|
||||
public class SettingManagementBlazorAutoMapperProfile : Profile |
|
||||
{ |
|
||||
public SettingManagementBlazorAutoMapperProfile() |
|
||||
{ |
|
||||
CreateMap<EmailSettingGroupViewComponent.UpdateEmailSettingsViewModel, UpdateEmailSettingsDto>(); |
|
||||
CreateMap<EmailSettingsDto, EmailSettingGroupViewComponent.UpdateEmailSettingsViewModel>(); |
|
||||
|
|
||||
CreateMap<EmailSettingGroupViewComponent.SendTestEmailViewModel, SendTestEmailInput>(); |
|
||||
} |
|
||||
} |
|
||||
@ -0,0 +1,31 @@ |
|||||
|
using Riok.Mapperly.Abstractions; |
||||
|
using Volo.Abp.Mapperly; |
||||
|
using static Volo.Abp.SettingManagement.Blazor.Pages.SettingManagement.EmailSettingGroup.EmailSettingGroupViewComponent; |
||||
|
|
||||
|
namespace Volo.Abp.SettingManagement.Blazor; |
||||
|
|
||||
|
[Mapper] |
||||
|
public partial class UpdateEmailSettingsViewModelToUpdateEmailSettingsDtoMapper : MapperBase<UpdateEmailSettingsViewModel, UpdateEmailSettingsDto> |
||||
|
{ |
||||
|
public override partial UpdateEmailSettingsDto Map(UpdateEmailSettingsViewModel source); |
||||
|
|
||||
|
public override partial void Map(UpdateEmailSettingsViewModel source, UpdateEmailSettingsDto destination); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
[Mapper] |
||||
|
public partial class EmailSettingsDtoToUpdateEmailSettingsViewModelMapper : MapperBase<EmailSettingsDto, UpdateEmailSettingsViewModel> |
||||
|
{ |
||||
|
public override partial UpdateEmailSettingsViewModel Map(EmailSettingsDto source); |
||||
|
|
||||
|
public override partial void Map(EmailSettingsDto source, UpdateEmailSettingsViewModel destination); |
||||
|
} |
||||
|
|
||||
|
[Mapper] |
||||
|
public partial class SendTestEmailViewModelToSendTestEmailInputMapper : MapperBase<SendTestEmailViewModel, SendTestEmailInput> |
||||
|
{ |
||||
|
public override partial SendTestEmailInput Map(SendTestEmailViewModel source); |
||||
|
|
||||
|
public override partial void Map(SendTestEmailViewModel source, SendTestEmailInput destination); |
||||
|
} |
||||
|
|
||||
@ -1,14 +0,0 @@ |
|||||
using AutoMapper; |
|
||||
using Volo.Abp.SettingManagement.Web.Pages.SettingManagement.Components.EmailSettingGroup; |
|
||||
|
|
||||
namespace Volo.Abp.SettingManagement.Web; |
|
||||
|
|
||||
public class SettingManagementWebAutoMapperProfile : Profile |
|
||||
{ |
|
||||
public SettingManagementWebAutoMapperProfile() |
|
||||
{ |
|
||||
CreateMap<EmailSettingsDto, EmailSettingGroupViewComponent.UpdateEmailSettingsViewModel>(); |
|
||||
|
|
||||
CreateMap<SendTestEmailModal.SendTestEmailViewModel, SendTestEmailInput>(); |
|
||||
} |
|
||||
} |
|
||||
@ -0,0 +1,22 @@ |
|||||
|
using Riok.Mapperly.Abstractions; |
||||
|
using Volo.Abp.Mapperly; |
||||
|
using static Volo.Abp.SettingManagement.Web.Pages.SettingManagement.Components.EmailSettingGroup.EmailSettingGroupViewComponent; |
||||
|
using static Volo.Abp.SettingManagement.Web.Pages.SettingManagement.Components.EmailSettingGroup.SendTestEmailModal; |
||||
|
|
||||
|
namespace Volo.Abp.SettingManagement.Web; |
||||
|
|
||||
|
[Mapper] |
||||
|
public partial class EmailSettingsDtoToUpdateEmailSettingsViewModelMapper : MapperBase<EmailSettingsDto, UpdateEmailSettingsViewModel> |
||||
|
{ |
||||
|
public override partial UpdateEmailSettingsViewModel Map(EmailSettingsDto source); |
||||
|
|
||||
|
public override partial void Map(EmailSettingsDto source, UpdateEmailSettingsViewModel destination); |
||||
|
} |
||||
|
|
||||
|
[Mapper] |
||||
|
public partial class SendTestEmailViewModelToSendTestEmailInputMapper : MapperBase<SendTestEmailViewModel, SendTestEmailInput> |
||||
|
{ |
||||
|
public override partial SendTestEmailInput Map(SendTestEmailViewModel source); |
||||
|
|
||||
|
public override partial void Map(SendTestEmailViewModel source, SendTestEmailInput destination); |
||||
|
} |
||||
Loading…
Reference in new issue