Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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; }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user