Refactor CreateOutResCommand properties
Removed unused System.Text.Json dependency and the `EmptyJson` field. Updated `ActionId` to be required during initialization. Changed `Header` and `Body` properties to nullable strings without default values.
This commit is contained in:
parent
e62dfbcc7a
commit
a7cb237fb6
@ -6,16 +6,11 @@ namespace ReC.Application.OutResults.Commands;
|
||||
|
||||
public class CreateOutResCommand : IRequest
|
||||
{
|
||||
public static readonly string EmptyJson = JsonSerializer.Serialize(new object(), options: new()
|
||||
{
|
||||
WriteIndented = false
|
||||
});
|
||||
public required long ActionId { get; set; }
|
||||
|
||||
public long ActionId { get; set; }
|
||||
public string? Header { get; set; }
|
||||
|
||||
public string Header { get; set; } = EmptyJson;
|
||||
|
||||
public string Body { get; set; } = EmptyJson;
|
||||
public string? Body { get; set; }
|
||||
|
||||
public string? AddedWho { get; set; }
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user