2025-05-06 06:45:49 +00:00
|
|
|
|
using AutoMapper;
|
|
|
|
|
|
using Kurs.Platform.Identity.Dto;
|
2025-08-11 06:34:44 +00:00
|
|
|
|
using Kurs.Platform.OrganizationUnits;
|
|
|
|
|
|
using Kurs.Platform.Tenants;
|
2025-05-06 06:45:49 +00:00
|
|
|
|
using Volo.Abp.Identity;
|
2025-08-11 06:34:44 +00:00
|
|
|
|
using Volo.Abp.TenantManagement;
|
2025-05-06 06:45:49 +00:00
|
|
|
|
|
|
|
|
|
|
namespace Kurs.Platform.Identity;
|
|
|
|
|
|
|
|
|
|
|
|
public class IdentityAutoMapperProfile : Profile
|
|
|
|
|
|
{
|
|
|
|
|
|
public IdentityAutoMapperProfile()
|
|
|
|
|
|
{
|
|
|
|
|
|
CreateMap<IdentityUser, UserInfoViewModel>();
|
2025-08-11 06:34:44 +00:00
|
|
|
|
CreateMap<OrganizationUnit, OrganizationUnitDto>();
|
|
|
|
|
|
CreateMap<CreateUpdateOrganizationUnitDto, OrganizationUnit>();
|
|
|
|
|
|
CreateMap<Tenant, CustomTenantDto>();
|
2025-05-06 06:45:49 +00:00
|
|
|
|
CreateMap<IdentityRoleDto, AssignedRoleViewModel>().ForMember(dest => dest.IsAssigned, opt => opt.Ignore());
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|