Refactor ResultViewDto status and add info/error fields
Replaced StatusCode with a RecStatus Status property in ResultViewDto. Added Info and Error string properties to provide additional result details. Imported ReC.Domain.Constants for RecStatus usage.
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
namespace ReC.Application.Common.Dto;
|
using ReC.Domain.Constants;
|
||||||
|
|
||||||
|
namespace ReC.Application.Common.Dto;
|
||||||
|
|
||||||
public record ResultViewDto
|
public record ResultViewDto
|
||||||
{
|
{
|
||||||
@@ -14,7 +16,7 @@ public record ResultViewDto
|
|||||||
|
|
||||||
public string? ProfileName { get; init; }
|
public string? ProfileName { get; init; }
|
||||||
|
|
||||||
public short? StatusCode { get; init; }
|
public RecStatus Status { get; set; }
|
||||||
|
|
||||||
public string? StatusName { get; init; }
|
public string? StatusName { get; init; }
|
||||||
|
|
||||||
@@ -22,6 +24,10 @@ public record ResultViewDto
|
|||||||
|
|
||||||
public string? Body { get; init; }
|
public string? Body { get; init; }
|
||||||
|
|
||||||
|
public string? Info { get; set; }
|
||||||
|
|
||||||
|
public string? Error { get; set; }
|
||||||
|
|
||||||
public string? AddedWho { get; init; }
|
public string? AddedWho { get; init; }
|
||||||
|
|
||||||
public DateTime? AddedWhen { get; init; }
|
public DateTime? AddedWhen { get; init; }
|
||||||
|
|||||||
Reference in New Issue
Block a user