Refactor code structure for improved readability and maintainability

This commit is contained in:
Torsten Brendgen
2026-07-07 23:27:57 +02:00
parent 96a3e98109
commit bbe521b38d
1632 changed files with 27313 additions and 54917 deletions
+13
View File
@@ -0,0 +1,13 @@
namespace Microsoft.SelfService.Portal.Core.API.Dto.Target.Add
{
public class AddTargetDto
{
public Guid? DomainID { get; set; }
public string Name { get; set; }
public string TargetType { get; set; } = "VirtualMachine";
public string ProviderType { get; set; } = "OnPrem";
public string? ExternalId { get; set; }
public string? MetadataJson { get; set; }
}
}
+12
View File
@@ -0,0 +1,12 @@
namespace Microsoft.SelfService.Portal.Core.API.Dto.Target.Edit
{
public class EditTargetDto
{
public string Name { get; set; }
public string TargetType { get; set; } = "VirtualMachine";
public string ProviderType { get; set; } = "OnPrem";
public string? ExternalId { get; set; }
public string? MetadataJson { get; set; }
}
}
+31
View File
@@ -0,0 +1,31 @@
using Microsoft.SelfService.Portal.Core.API.Dto.Domain.Get;
using Microsoft.SelfService.Portal.Core.API.Models;
using System.ComponentModel.DataAnnotations.Schema;
namespace Microsoft.SelfService.Portal.Core.API.Dto.Target.Get
{
public class GetTargetDetailsDto : BaseDetailsDto
{
[Column(Order = 1)]
public Guid? DomainID { get; set; }
[Column(Order = 2)]
public string Name { get; set; }
[Column(Order = 3)]
public string TargetType { get; set; }
[Column(Order = 4)]
public string ProviderType { get; set; }
[Column(Order = 5)]
public string? ExternalId { get; set; }
[Column(Order = 6)]
public string? MetadataJson { get; set; }
public GetDomainDto? Domain { get; set; }
}
}
+24
View File
@@ -0,0 +1,24 @@
using System.ComponentModel.DataAnnotations.Schema;
namespace Microsoft.SelfService.Portal.Core.API.Dto.Target.Get
{
public class GetTargetDto : BaseDto
{
[Column(Order = 1)]
public Guid? DomainID { get; set; }
[Column(Order = 2)]
public string Name { get; set; }
[Column(Order = 3)]
public string TargetType { get; set; }
[Column(Order = 4)]
public string ProviderType { get; set; }
[Column(Order = 5)]
public string? ExternalId { get; set; }
}
}