zeroframework/Services/DeviceCenter/ZeroFramework.DeviceCenter.Application/AutoMapper/ResourceGroupsProfile.cs
2023-12-05 17:22:48 +08:00

16 lines
565 B
C#

using AutoMapper;
using ZeroFramework.DeviceCenter.Application.Models.ResourceGroups;
using ZeroFramework.DeviceCenter.Domain.Aggregates.ResourceGroupAggregate;
namespace ZeroFramework.DeviceCenter.Application.AutoMapper
{
public class ResourceGroupsProfile : Profile
{
public ResourceGroupsProfile()
{
CreateMap<ResourceGroup, ResourceGroupGetResponseModel>();
CreateMap<ResourceGroupCreateRequestModel, ResourceGroup>();
CreateMap<ResourceGroupUpdateRequestModel, ResourceGroup>();
}
}
}