Add CreateRecActionCommand record for RecActions

Introduced a new namespace `ReC.Application.RecActions.Commands`
and added the `CreateRecActionCommand` record. This record
includes properties such as `ProfileId`, `Active`, `EndpointId`,
`Type`, `HeaderQuery`, and `BodyQuery` to encapsulate the
necessary data for creating RecActions. Default values were
provided for `Active`, `Type`, and `BodyQuery` to streamline
initialization.
This commit is contained in:
tekh 2025-12-01 15:14:56 +01:00
parent 86e599a102
commit 9b22987397

View File

@ -0,0 +1,16 @@
namespace ReC.Application.RecActions.Commands;
public record CreateRecActionCommand
{
public long ProfileId { get; init; }
public bool Active { get; init; } = true;
public long EndpointId { get; init; }
public string Type { get; init; } = "GET";
public string? HeaderQuery { get; init; }
public string BodyQuery { get; init; } = "SELECT NULL AS REQUEST_BODY;";
}