Move EndpointAuth procedures to dedicated namespace

Refactored Delete/Insert/UpdateEndpointAuthProcedure records into the new ReC.Application.EndpointAuth.Commands namespace for better organization. Updated using statements in related files to ensure compatibility. No functional changes to the procedure records themselves.
This commit is contained in:
2026-01-16 09:38:59 +01:00
parent f6b95331e1
commit 6f4ab073df
5 changed files with 11 additions and 3 deletions

View File

@@ -1,30 +0,0 @@
namespace ReC.Application.Common.Procedures.DeleteProcedure;
public record DeleteEndpointAuthProcedure : IDeleteProcedure
{
/// <summary>
/// Start GUID/ID (inclusive)
/// </summary>
public long Start { get; set; }
/// <summary>
/// End GUID/ID (inclusive). If 0, will be set to Start value.
/// </summary>
public long End { get; set; }
/// <summary>
/// If true, delete even if dependent ACTION data exists
/// </summary>
public bool Force { get; set; }
public DeleteObjectProcedure ToObjectProcedure()
{
return new DeleteObjectProcedure
{
Entity = "ENDPOINT_AUTH",
Start = Start,
End = End,
Force = Force
};
}
}

View File

@@ -1,25 +0,0 @@
namespace ReC.Application.Common.Procedures.InsertProcedure;
public record InsertEndpointAuthProcedure : IInsertProcedure
{
public bool? Active { get; set; }
public string? Description { get; set; }
public byte? TypeId { get; set; }
public string? ApiKey { get; set; }
public string? ApiValue { get; set; }
public bool? ApiKeyAddToId { get; set; }
public string? Token { get; set; }
public string? Username { get; set; }
public string? Password { get; set; }
public string? Domain { get; set; }
public string? Workstation { get; set; }
public InsertObjectProcedure ToObjectProcedure(string? addedWho = null)
{
return new InsertObjectProcedure
{
Entity = "ENDPOINT_AUTH",
EndpointAuth = this
}.AddedBy(addedWho);
}
}

View File

@@ -2,6 +2,7 @@
using MediatR;
using Microsoft.Data.SqlClient;
using ReC.Application.Common.Exceptions;
using ReC.Application.EndpointAuth.Commands;
using ReC.Application.OutResults.Commands;
using ReC.Application.Profile.Commands;

View File

@@ -1,26 +0,0 @@
namespace ReC.Application.Common.Procedures.UpdateProcedure;
public record UpdateEndpointAuthProcedure : IUpdateProcedure
{
public bool? Active { get; set; }
public string? Description { get; set; }
public byte? TypeId { get; set; }
public string? ApiKey { get; set; }
public string? ApiValue { get; set; }
public bool? ApiKeyAddToId { get; set; }
public string? Token { get; set; }
public string? Username { get; set; }
public string? Password { get; set; }
public string? Domain { get; set; }
public string? Workstation { get; set; }
public UpdateObjectProcedure ToObjectProcedure(long guid, string? changedWho = null)
{
return new UpdateObjectProcedure
{
Entity = "ENDPOINT_AUTH",
Guid = guid,
EndpointAuth = this
}.ChangedBy(changedWho);
}
}

View File

@@ -2,6 +2,7 @@ using DigitalData.Core.Abstraction.Application.Repository;
using MediatR;
using Microsoft.Data.SqlClient;
using ReC.Application.Common.Exceptions;
using ReC.Application.EndpointAuth.Commands;
using ReC.Application.OutResults.Commands;
using ReC.Application.Profile.Commands;
using ReC.Application.RecActions.Commands;