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.
16 lines
395 B
C#
16 lines
395 B
C#
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;";
|
|
} |