Expand and refactor OutResDto for richer data support
Refactored OutResDto to include additional properties such as Action, Profile, Status, and Type, and made several fields nullable. This enhances flexibility and allows for more comprehensive and optional data representation in API responses.
This commit is contained in:
@@ -1,10 +1,26 @@
|
||||
namespace ReC.Application.Common.Dto;
|
||||
using ReC.Domain.Constants;
|
||||
|
||||
namespace ReC.Application.Common.Dto;
|
||||
|
||||
public record OutResDto
|
||||
{
|
||||
public long Id { get; set; }
|
||||
|
||||
public long ActionId { get; set; }
|
||||
public long? ActionId { get; set; }
|
||||
|
||||
public RecActionDto? Action { get; set; }
|
||||
|
||||
public long? ProfileId { get; set; }
|
||||
|
||||
public ProfileDto? Profile { get; set; }
|
||||
|
||||
public string? ProfileName { get; set; }
|
||||
|
||||
public short? StatusCode { get; set; }
|
||||
|
||||
public string? StatusName { get; set; }
|
||||
|
||||
public ResultType? Type { get; set; }
|
||||
|
||||
public string? Header { get; set; }
|
||||
|
||||
@@ -14,9 +30,9 @@ public record OutResDto
|
||||
|
||||
public string? Error { get; set; }
|
||||
|
||||
public string AddedWho { get; set; } = null!;
|
||||
public string? AddedWho { get; set; }
|
||||
|
||||
public DateTime AddedWhen { get; set; }
|
||||
public DateTime? AddedWhen { get; set; }
|
||||
|
||||
public string? ChangedWho { get; set; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user