Refactor code structure for improved readability and maintainability
This commit is contained in:
19
Dto/Service/Add/AddServiceDto.cs
Normal file
19
Dto/Service/Add/AddServiceDto.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Service.Add
|
||||
{
|
||||
public class AddServiceDto
|
||||
{
|
||||
[Column(Order = 1)]
|
||||
public string Name { get; set; }
|
||||
|
||||
[Column(Order = 2)]
|
||||
public string Description { get; set; }
|
||||
|
||||
[Column(Order = 3)]
|
||||
public bool IsCloudService { get; set; }
|
||||
|
||||
[Column(Order = 4)]
|
||||
public string? IconKey { get; set; }
|
||||
}
|
||||
}
|
||||
19
Dto/Service/Edit/EditServiceDto.cs
Normal file
19
Dto/Service/Edit/EditServiceDto.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Service.Edit
|
||||
{
|
||||
public class EditServiceDto
|
||||
{
|
||||
[Column(Order = 1)]
|
||||
public string Name { get; set; }
|
||||
|
||||
[Column(Order = 2)]
|
||||
public string Description { get; set; }
|
||||
|
||||
[Column(Order = 3)]
|
||||
public bool IsCloudService { get; set; }
|
||||
|
||||
[Column(Order = 4)]
|
||||
public string? IconKey { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -7,6 +7,10 @@ namespace Microsoft.SelfService.Portal.Core.API.Dto.Service.Get
|
||||
[Column(Order = 1)]
|
||||
public string Name { get; set; }
|
||||
[Column(Order = 2)]
|
||||
public string Type { get; set; }
|
||||
public string Description { get; set; }
|
||||
[Column(Order = 3)]
|
||||
public bool IsCloudService { get; set; }
|
||||
[Column(Order = 4)]
|
||||
public string? IconKey { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,5 +6,14 @@ namespace Microsoft.SelfService.Portal.Core.API.Dto.Service.Get
|
||||
{
|
||||
[Column(Order = 1)]
|
||||
public string Name { get; set; }
|
||||
|
||||
[Column(Order = 2)]
|
||||
public string Description { get; set; }
|
||||
|
||||
[Column(Order = 3)]
|
||||
public bool IsCloudService { get; set; }
|
||||
|
||||
[Column(Order = 4)]
|
||||
public string? IconKey { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Service.RoleDefinition
|
||||
{
|
||||
public class AddServiceRoleDefinitionDto
|
||||
{
|
||||
public string Key { get; set; } = string.Empty;
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string? Description { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Service.RoleDefinition
|
||||
{
|
||||
public class EditServiceRoleDefinitionDto
|
||||
{
|
||||
public string Key { get; set; } = string.Empty;
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string? Description { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user