Rename Status enum to RecStatus across the codebase

Refactored all usages of the Status enum to RecStatus to improve clarity and prevent naming conflicts with other status enums (e.g., HTTP status codes). Updated command handlers, behaviors, data models, and extension methods to use RecStatus, and adjusted related serialization logic accordingly. This makes the domain-specific status handling more explicit and maintainable.
This commit is contained in:
2026-03-30 11:35:22 +02:00
parent ce0e53baf6
commit acff0aca89
7 changed files with 13 additions and 13 deletions

View File

@@ -20,7 +20,7 @@ public class PreprocessingBehavior(IRecDbContext context, ISender sender) : IPip
await sender.Send(new InsertResultCommand()
{
Status = Status.QuerySuccess,
Status = RecStatus.QuerySuccess,
ActionId = request.Action.Id,
Info = JsonSerializer.Serialize(result),
Type = ResultType.Pre
@@ -31,7 +31,7 @@ public class PreprocessingBehavior(IRecDbContext context, ISender sender) : IPip
{
await sender.Send(new InsertResultCommand()
{
Status = Status.QueryFailed,
Status = RecStatus.QueryFailed,
ActionId = request.Action.Id,
Error = ex.ToString(),
Type = ResultType.Pre