From 9b229873970420cd36bedb98f6ab0e3f637c433d Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 1 Dec 2025 15:14:56 +0100 Subject: [PATCH] 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. --- .../Commands/CreateRecActionCommand.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/ReC.Application/RecActions/Commands/CreateRecActionCommand.cs diff --git a/src/ReC.Application/RecActions/Commands/CreateRecActionCommand.cs b/src/ReC.Application/RecActions/Commands/CreateRecActionCommand.cs new file mode 100644 index 0000000..b14a11c --- /dev/null +++ b/src/ReC.Application/RecActions/Commands/CreateRecActionCommand.cs @@ -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;"; +} \ No newline at end of file