Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.DeploymentRule.Add
|
||||
{
|
||||
public class AddDeploymentRuleDto
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public bool IsActive { get; set; } = true;
|
||||
public ICollection<AddDeploymentRuleStepDto> Steps { get; set; } = new List<AddDeploymentRuleStepDto>();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.DeploymentRule.Add
|
||||
{
|
||||
public class AddDeploymentRuleStepDto
|
||||
{
|
||||
public int SortOrder { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string StepType { get; set; }
|
||||
public bool RequiresApproval { get; set; }
|
||||
public string? MetadataJson { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.DeploymentRule.Get
|
||||
{
|
||||
public class GetDeploymentRuleDto : BaseDetailsDto
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public bool IsActive { get; set; }
|
||||
public ICollection<GetDeploymentRuleStepDto> Steps { get; set; } = new List<GetDeploymentRuleStepDto>();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.DeploymentRule.Get
|
||||
{
|
||||
public class GetDeploymentRuleStepDto : BaseDetailsDto
|
||||
{
|
||||
public int SortOrder { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string StepType { get; set; }
|
||||
public bool RequiresApproval { get; set; }
|
||||
public string? MetadataJson { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user