You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

151 lines
6.8 KiB

using AutoMapper;
using Znyc.Cloudcar.Admin.Security.Entitys;
namespace Znyc.Cloudcar.Admin.Security.Dtos
{
/// <summary>
/// </summary>
public class SecurityProfile : Profile
{
/// <summary>
/// /
/// </summary>
public SecurityProfile()
{
CreateMap<APPEntity, AppOutputDto>();
CreateMap<APPInputDto, APPEntity>();
CreateMap<AreaEntity, AreaOutputDto>();
CreateMap<AreaEntity, AreaPickerOutputDto>()
.ForMember(s => s.label, s => s.MapFrom(o => o.FullName))
.ForMember(s => s.value, s => s.MapFrom(o => o.Id));
CreateMap<AreaEntity, AreaSelect2OutDto>()
.ForMember(e => e.text, s => s.MapFrom(o => o.FullName))
.ForMember(e => e.Id, s => s.MapFrom(o => o.Id));
CreateMap<AreaInputDto, AreaEntity>();
CreateMap<UserEntity, UserOutputDto>();
CreateMap<UserOutputDto, UserEntity>();
CreateMap<DictionaryEntity, DictionaryOutputDto>();
CreateMap<DictionaryInputDto, DictionaryEntity>();
CreateMap<DictionaryEntity, DictionaryInputDto>();
CreateMap<DictionaryOutputDto, DictionaryEntity>();
CreateMap<DictionaryListOutput, DictionaryEntity>();
CreateMap<DictionaryEntity, DictionaryListOutput>();
CreateMap<MenuEntity, MenuOutputDto>();
CreateMap<MenuEntity, MenuTreeTableOutputDto>();
CreateMap<MenuEntity, ModuleFunctionOutputDto>()
.ForMember(s => s.Id, s => s.MapFrom(o => o.Id))
.ForMember(s => s.FullName, s => s.MapFrom(o => o.FullName));
CreateMap<MenuInputDto, MenuEntity>();
CreateMap<OrganizeEntity, OrganizeOutputDto>();
CreateMap<OrganizeInputDto, OrganizeEntity>();
CreateMap<RoleEntityEntity, RoleOutputDto>();
CreateMap<RoleInputDto, RoleEntityEntity>();
CreateMap<SystemTypeEntity, SystemTypeOutputDto>();
CreateMap<SystemTypeInputDto, SystemTypeEntity>();
CreateMap<UploadFileEntity, UploadFileOutputDto>();
CreateMap<UploadFileInputDto, UploadFileEntity>();
CreateMap<UploadFileEntity, UploadFileResultOuputDto>();
CreateMap<AdminUserEntity, AdminUserOutputDto>().ReverseMap();
CreateMap<AdminUserInputDto, AdminUserEntity>();
CreateMap<UserExtendEntity, UserExtendOutputDto>();
CreateMap<SysSettingEntity, SysSettingOutputDto>();
CreateMap<ApplyJobOutputDto, ApplyJobEntity>();
CreateMap<ApplyJobInputDto, ApplyJobEntity>();
CreateMap<ApplyJobEntity, ApplyJobOutputDto>();
CreateMap<ApplyJobEntity, ApplyJobInputDto>();
CreateMap<CloudcarOutputDto, CloudcarEntity>();
CreateMap<CloudcarInputDto, CloudcarEntity>();
CreateMap<CloudcarEntity, CloudcarOutputDto>();
CreateMap<CloudcarEntity, CloudcarInputDto>();
CreateMap<IndustryJobsEntity, IndustryJobsOutputDto>();
CreateMap<IndustryJobsOutputDto, IndustryJobsEntity>();
CreateMap<IndustryJobsEntity, IndustryJobsTreeTableDto>();
CreateMap<IndustryJobsTreeTableDto, IndustryJobsEntity>();
CreateMap<IndustryJobsEntity, IndustryJobsInputDto>();
CreateMap<IndustryJobsInputDto, IndustryJobsEntity>();
CreateMap<CertificationEntity, CertificationOutput>();
CreateMap<CertificationOutput, CertificationEntity>();
CreateMap<LoginLogsEntity, LoginLogsOutputDto>();
CreateMap<LoginLogsOutputDto, LoginLogsEntity>();
CreateMap<LoginLogsEntity, LoginLogsInPutDto>();
CreateMap<LoginLogsInPutDto, LoginLogsEntity>();
CreateMap<OperationLogsEntity, OperationLogsOutputDto>();
CreateMap<OperationLogsOutputDto, OperationLogsEntity>();
CreateMap<AuditEntity, AuditInputDto>();
CreateMap<AuditEntity, AuditOutputDto>();
CreateMap<AuditOutputDto, AuditEntity>();
CreateMap<AuditInputDto, AuditEntity>();
CreateMap<RegionEntity, RegionOutputDto>();
CreateMap<RegionOutputDto, RegionEntity>();
CreateMap<ExceptionsLogsEntity, ExceptionsLogsOutputDto>();
CreateMap<ExceptionsLogsOutputDto, ExceptionsLogsEntity>();
CreateMap<ExceptionsLogsEntity, ExceptionsLogsInPutDto>();
CreateMap<ExceptionsLogsInPutDto, ExceptionsLogsEntity>();
CreateMap<StatisticalEntity, StatisticalInputDto>();
CreateMap<StatisticalInputDto, StatisticalEntity>();
CreateMap<StatisticalEntity, StatisticalListOutputDto>();
CreateMap<StatisticalListOutputDto, StatisticalEntity>();
CreateMap<OrderDetailOutput, OrderDetailEntity>();
CreateMap<OrderDetailEntity, OrderDetailOutput>();
CreateMap<OrderOutput, OrderEntity>();
CreateMap<OrderEntity, OrderOutput>();
CreateMap<CurrencyRecordEntity, CurrencyRecordOutputDto>();
CreateMap<CurrencyRecordOutputDto, CurrencyRecordEntity>();
CreateMap<PaymentRecordEntity, PaymentRecordOutputDto>();
CreateMap<PaymentRecordOutputDto, PaymentRecordEntity>();
CreateMap<BannerEntity, BannerOutputDto>();
CreateMap<BannerOutputDto, BannerEntity>();
CreateMap<BannerInput, BannerEntity>();
CreateMap<BannerUpdateInput, BannerEntity>();
CreateMap<FeedbackEntity, FeedbackOutputDto>();
CreateMap<FeedbackOutputDto, FeedbackEntity>();
CreateMap<FeedbackInput, FeedbackEntity>();
CreateMap<ActivityEntity, EquipmentOutputDto>();
CreateMap<EquipmentOutputDto, ActivityEntity>();
CreateMap<EquipmentAddInput, ActivityEntity>();
CreateMap<EquipmentUpdateInput, ActivityEntity>();
CreateMap<WxUnifyUserEntity, WxUnifyUserOutputDto>();
CreateMap<WxUnifyUserOutputDto, WxUnifyUserEntity>();
CreateMap<WxUnifyUserAddInput, WxUnifyUserEntity>();
CreateMap<CallFeedbackEntity, CallFeedbackOutputDto>();
CreateMap<CallFeedbackOutputDto, CallFeedbackEntity>();
CreateMap<CallFeedbackInput, CallFeedbackEntity>();
CreateMap<RechargeEntity, RechargeOutputDto>();
CreateMap<RechargeOutputDto, RechargeEntity>();
CreateMap<RechargeAddInput, RechargeEntity>();
CreateMap<RechargeUpdateInput, RechargeEntity>();
CreateMap<RechargeIntroEntity, RechargeIntroOutputDto>();
CreateMap<RechargeIntroOutputDto, RechargeIntroEntity>();
CreateMap<RechargeIntroAddInput, RechargeIntroEntity>();
CreateMap<EquipmentEntity, EquipmentOutputDto>();
}
}
}