feat(api,core,domain): Изменен контроллер RobotTaskRobotStatusController, метод изменения статуса задания вынесен в сервисы. Добавлена логика успрешного переименования шаблона.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
using AutoMapper;
|
||||
using PARR.Domain.DTOs.Shared;
|
||||
using PARR.Domain.Entities.RobotEntities;
|
||||
|
||||
namespace PARR.Core.Infrastructure.Mapping.Shared
|
||||
{
|
||||
public class RobotDtoMappingProfile : Profile
|
||||
{
|
||||
public RobotDtoMappingProfile()
|
||||
{
|
||||
CreateMap<Robot, RobotDto>();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using AutoMapper;
|
||||
using PARR.Domain.DTOs.Shared;
|
||||
using PARR.Domain.Entities.RobotEntities;
|
||||
|
||||
namespace PARR.Core.Infrastructure.Mapping.Shared
|
||||
{
|
||||
public class RobotStatusDtoMappingProfile : Profile
|
||||
{
|
||||
public RobotStatusDtoMappingProfile()
|
||||
{
|
||||
CreateMap<RobotStatus, RobotStatusDto>();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using AutoMapper;
|
||||
using PARR.Domain.DTOs.Shared;
|
||||
|
||||
namespace PARR.Core.Infrastructure.Mapping.Shared
|
||||
{
|
||||
public class RobotTaskStatusDtoMappingProfile : Profile
|
||||
{
|
||||
public RobotTaskStatusDtoMappingProfile()
|
||||
{
|
||||
CreateMap<PARR.Domain.Entities.RobotEntities.TaskStatus, RobotTaskStatusDto>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user