86 lines
2.9 KiB
C#
86 lines
2.9 KiB
C#
using Sozsoft.Platform.Entities;
|
|
using Riok.Mapperly.Abstractions;
|
|
using Volo.Abp.Mapperly;
|
|
|
|
namespace Sozsoft.Platform.DeveloperKit;
|
|
|
|
[Mapper(RequiredMappingStrategy = RequiredMappingStrategy.Target)]
|
|
public partial class CustomComponentToCustomComponentDtoMapper : MapperBase<CustomComponent, CustomComponentDto>
|
|
{
|
|
public override partial CustomComponentDto Map(CustomComponent source);
|
|
|
|
public override partial void Map(CustomComponent source, CustomComponentDto destination);
|
|
|
|
public override void BeforeMap(CustomComponent source)
|
|
{
|
|
}
|
|
|
|
public override void AfterMap(CustomComponent source, CustomComponentDto destination)
|
|
{
|
|
}
|
|
}
|
|
|
|
[Mapper(RequiredMappingStrategy = RequiredMappingStrategy.Target)]
|
|
public partial class CreateUpdateCustomComponentDtoToCustomComponentMapper : MapperBase<CreateUpdateCustomComponentDto, CustomComponent>
|
|
{
|
|
public override partial CustomComponent Map(CreateUpdateCustomComponentDto source);
|
|
|
|
public override partial void Map(CreateUpdateCustomComponentDto source, CustomComponent destination);
|
|
|
|
public override void BeforeMap(CreateUpdateCustomComponentDto source)
|
|
{
|
|
}
|
|
|
|
public override void AfterMap(CreateUpdateCustomComponentDto source, CustomComponent destination)
|
|
{
|
|
}
|
|
}
|
|
|
|
[Mapper(RequiredMappingStrategy = RequiredMappingStrategy.Target)]
|
|
public partial class CrudEndpointToCrudEndpointDtoMapper : MapperBase<CrudEndpoint, CrudEndpointDto>
|
|
{
|
|
public override partial CrudEndpointDto Map(CrudEndpoint source);
|
|
|
|
public override partial void Map(CrudEndpoint source, CrudEndpointDto destination);
|
|
|
|
public override void BeforeMap(CrudEndpoint source)
|
|
{
|
|
}
|
|
|
|
public override void AfterMap(CrudEndpoint source, CrudEndpointDto destination)
|
|
{
|
|
}
|
|
}
|
|
|
|
[Mapper(RequiredMappingStrategy = RequiredMappingStrategy.Target)]
|
|
public partial class CreateUpdateCrudEndpointDtoToCrudEndpointMapper : MapperBase<CreateUpdateCrudEndpointDto, CrudEndpoint>
|
|
{
|
|
public override partial CrudEndpoint Map(CreateUpdateCrudEndpointDto source);
|
|
|
|
public override partial void Map(CreateUpdateCrudEndpointDto source, CrudEndpoint destination);
|
|
|
|
public override void BeforeMap(CreateUpdateCrudEndpointDto source)
|
|
{
|
|
}
|
|
|
|
public override void AfterMap(CreateUpdateCrudEndpointDto source, CrudEndpoint destination)
|
|
{
|
|
}
|
|
}
|
|
|
|
[Mapper(RequiredMappingStrategy = RequiredMappingStrategy.Target)]
|
|
public partial class DynamicServiceToDynamicServiceDtoMapper : MapperBase<DynamicService, DynamicServiceDto>
|
|
{
|
|
public override partial DynamicServiceDto Map(DynamicService source);
|
|
|
|
public override partial void Map(DynamicService source, DynamicServiceDto destination);
|
|
|
|
public override void BeforeMap(DynamicService source)
|
|
{
|
|
}
|
|
|
|
public override void AfterMap(DynamicService source, DynamicServiceDto destination)
|
|
{
|
|
destination.CompilationStatus = source.CompilationStatus.ToString();
|
|
}
|
|
}
|