Refactor InsertObjectProcedure into entity-based regions
Organized properties into regions by target entity for clarity. No functional changes; update improves code readability and maintainability.
This commit is contained in:
@@ -6,6 +6,8 @@ namespace ReC.Application.Common.Procedures;
|
||||
|
||||
public record InsertObjectProcedure : IRequest<long>
|
||||
{
|
||||
#region Common
|
||||
|
||||
/// <summary>
|
||||
/// Target entity: ACTION, ENDPOINT, ENDPOINT_AUTH, ENDPOINT_PARAMS, PROFILE, RESULT
|
||||
/// </summary>
|
||||
@@ -14,7 +16,10 @@ public record InsertObjectProcedure : IRequest<long>
|
||||
public string? AddedWho { get; set; }
|
||||
public DateTime? AddedWhen { get; set; }
|
||||
|
||||
// ACTION
|
||||
#endregion
|
||||
|
||||
#region ACTION
|
||||
|
||||
public long? ActionProfileId { get; set; }
|
||||
public bool? ActionActive { get; set; }
|
||||
public byte? ActionSequence { get; set; }
|
||||
@@ -29,12 +34,18 @@ public record InsertObjectProcedure : IRequest<long>
|
||||
public string? ActionPostSql { get; set; }
|
||||
public byte? ActionErrorActionId { get; set; }
|
||||
|
||||
// ENDPOINT
|
||||
#endregion
|
||||
|
||||
#region ENDPOINT
|
||||
|
||||
public bool? EndpointActive { get; set; }
|
||||
public string? EndpointDescription { get; set; }
|
||||
public string? EndpointUri { get; set; }
|
||||
|
||||
// ENDPOINT_AUTH
|
||||
#endregion
|
||||
|
||||
#region ENDPOINT_AUTH
|
||||
|
||||
public bool? EndpointAuthActive { get; set; }
|
||||
public string? EndpointAuthDescription { get; set; }
|
||||
public byte? EndpointAuthTypeId { get; set; }
|
||||
@@ -47,7 +58,10 @@ public record InsertObjectProcedure : IRequest<long>
|
||||
public string? EndpointAuthDomain { get; set; }
|
||||
public string? EndpointAuthWorkstation { get; set; }
|
||||
|
||||
// PROFILE
|
||||
#endregion
|
||||
|
||||
#region PROFILE
|
||||
|
||||
public bool? ProfileActive { get; set; }
|
||||
public byte? ProfileTypeId { get; set; }
|
||||
public string? ProfileMandantor { get; set; }
|
||||
@@ -56,19 +70,27 @@ public record InsertObjectProcedure : IRequest<long>
|
||||
public byte? ProfileLogLevelId { get; set; }
|
||||
public short? ProfileLanguageId { get; set; }
|
||||
|
||||
// RESULT
|
||||
#endregion
|
||||
|
||||
#region RESULT
|
||||
|
||||
public long? ResultActionId { get; set; }
|
||||
public short? ResultStatusId { get; set; }
|
||||
public string? ResultHeader { get; set; }
|
||||
public string? ResultBody { get; set; }
|
||||
|
||||
// ENDPOINT_PARAMS
|
||||
#endregion
|
||||
|
||||
#region ENDPOINT_PARAMS
|
||||
|
||||
public bool? EndpointParamsActive { get; set; }
|
||||
public string? EndpointParamsDescription { get; set; }
|
||||
public short? EndpointParamsGroupId { get; set; }
|
||||
public byte? EndpointParamsSequence { get; set; }
|
||||
public string? EndpointParamsKey { get; set; }
|
||||
public string? EndpointParamsValue { get; set; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
public class InsertObjectProcedureHandler(IRepository repo) : IRequestHandler<InsertObjectProcedure, long>
|
||||
|
||||
Reference in New Issue
Block a user