zeroframework/Services/Identity/ZeroFramework.IdentityServer.API/AutoMapper/TenantsProfile.cs
2023-12-05 17:22:48 +08:00

20 lines
624 B
C#

using AutoMapper;
using ZeroFramework.IdentityServer.API.IdentityStores;
using ZeroFramework.IdentityServer.API.Models.Tenants;
namespace ZeroFramework.IdentityServer.API.AutoMapper
{
public class TenantsProfile : Profile
{
public TenantsProfile()
{
CreateMap<IdentityTenant, TenantGetResponseModel>();
CreateMap<TenantCreateRequestModel, IdentityTenant>();
CreateMap<TenantUpdateRequestModel, IdentityTenant>();
CreateMap<TenantClaimModel, IdentityTenantClaim>();
CreateMap<IdentityTenantClaim, TenantClaimModel>();
}
}
}