refactor(core,domain): Переименованы shared dto
This commit is contained in:
@@ -265,9 +265,9 @@ namespace PARR.API.MappingProfiles
|
|||||||
// .ForMember(d => d.TaskStatus, o => o.MapFrom(s => s.TaskStatus))
|
// .ForMember(d => d.TaskStatus, o => o.MapFrom(s => s.TaskStatus))
|
||||||
// .ForMember(d => d.RobotStatus, o => o.MapFrom(s => s.RobotStatus));
|
// .ForMember(d => d.RobotStatus, o => o.MapFrom(s => s.RobotStatus));
|
||||||
|
|
||||||
CreateMap<RobotDto, RobotResponse>();
|
CreateMap<RobotResult, RobotResponse>();
|
||||||
CreateMap<RobotTaskStatusDto, TaskStatusResponse>();
|
CreateMap<RobotTaskStatusResult, TaskStatusResponse>();
|
||||||
CreateMap<RobotStatusDto, RobotStatusResponse>();
|
CreateMap<RobotStatusResult, RobotStatusResponse>();
|
||||||
|
|
||||||
CreateMap<RobotConfigurationResult, RobotConfigurationResponse>();
|
CreateMap<RobotConfigurationResult, RobotConfigurationResponse>();
|
||||||
|
|
||||||
|
|||||||
@@ -4,11 +4,11 @@ using PARR.Domain.Entities.RobotEntities;
|
|||||||
|
|
||||||
namespace PARR.Core.Infrastructure.Mapping.Shared
|
namespace PARR.Core.Infrastructure.Mapping.Shared
|
||||||
{
|
{
|
||||||
public class RobotDtoMappingProfile : Profile
|
public class RobotResultMappingProfile : Profile
|
||||||
{
|
{
|
||||||
public RobotDtoMappingProfile()
|
public RobotResultMappingProfile()
|
||||||
{
|
{
|
||||||
CreateMap<Robot, RobotDto>();
|
CreateMap<Robot, RobotResult>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -4,11 +4,11 @@ using PARR.Domain.Entities.RobotEntities;
|
|||||||
|
|
||||||
namespace PARR.Core.Infrastructure.Mapping.Shared
|
namespace PARR.Core.Infrastructure.Mapping.Shared
|
||||||
{
|
{
|
||||||
public class RobotStatusDtoMappingProfile : Profile
|
public class RobotStatusResultMappingProfile : Profile
|
||||||
{
|
{
|
||||||
public RobotStatusDtoMappingProfile()
|
public RobotStatusResultMappingProfile()
|
||||||
{
|
{
|
||||||
CreateMap<RobotStatus, RobotStatusDto>();
|
CreateMap<RobotStatus, RobotStatusResult>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3,11 +3,11 @@ using PARR.Domain.DTOs.Shared;
|
|||||||
|
|
||||||
namespace PARR.Core.Infrastructure.Mapping.Shared
|
namespace PARR.Core.Infrastructure.Mapping.Shared
|
||||||
{
|
{
|
||||||
public class RobotTaskStatusDtoMappingProfile : Profile
|
public class RobotTaskStatusResultMappingProfile : Profile
|
||||||
{
|
{
|
||||||
public RobotTaskStatusDtoMappingProfile()
|
public RobotTaskStatusResultMappingProfile()
|
||||||
{
|
{
|
||||||
CreateMap<PARR.Domain.Entities.RobotEntities.TaskStatus, RobotTaskStatusDto>();
|
CreateMap<PARR.Domain.Entities.RobotEntities.TaskStatus, RobotTaskStatusResult>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -10,11 +10,11 @@ namespace PARR.Domain.DTOs.RobotTaskRobotStatus
|
|||||||
|
|
||||||
public Guid TemplateId { get; init; }
|
public Guid TemplateId { get; init; }
|
||||||
|
|
||||||
public RobotDto? Robot { get; init; }
|
public RobotResult? Robot { get; init; }
|
||||||
|
|
||||||
public RobotTaskStatusDto? TaskStatus { get; init; }
|
public RobotTaskStatusResult? TaskStatus { get; init; }
|
||||||
|
|
||||||
public RobotStatusDto? RobotStatus { get; init; }
|
public RobotStatusResult? RobotStatus { get; init; }
|
||||||
|
|
||||||
public int AttemptsNumber { get; init; }
|
public int AttemptsNumber { get; init; }
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
namespace PARR.Domain.DTOs.Shared
|
namespace PARR.Domain.DTOs.Shared
|
||||||
{
|
{
|
||||||
public record RobotDto
|
public record RobotResult
|
||||||
{
|
{
|
||||||
public int Code { get; init; }
|
public int Code { get; init; }
|
||||||
public required string Name { get; init; }
|
public required string Name { get; init; }
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
namespace PARR.Domain.DTOs.Shared
|
namespace PARR.Domain.DTOs.Shared
|
||||||
{
|
{
|
||||||
public record RobotStatusDto
|
public record RobotStatusResult
|
||||||
{
|
{
|
||||||
public int Code { get; init; }
|
public int Code { get; init; }
|
||||||
public string? Name { get; init; }
|
public string? Name { get; init; }
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
namespace PARR.Domain.DTOs.Shared
|
namespace PARR.Domain.DTOs.Shared
|
||||||
{
|
{
|
||||||
public record RobotTaskStatusDto
|
public record RobotTaskStatusResult
|
||||||
{
|
{
|
||||||
public int Code { get; init; }
|
public int Code { get; init; }
|
||||||
public required string Name { get; init; }
|
public required string Name { get; init; }
|
||||||
Reference in New Issue
Block a user