add girIgnore
This commit is contained in:
+53
@@ -0,0 +1,53 @@
|
||||
namespace audit_logs.Models.DTO;
|
||||
|
||||
/// <summary>
|
||||
/// DTO que encapsula los parámetros de búsqueda por texto para los registros de auditoría, incluyendo detalles de paginación.
|
||||
/// </summary>
|
||||
public class AuditLogTextOrDateSearchDTO
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the page number for pagination.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The number of the page to retrieve. Defaults to 1.
|
||||
/// </value>
|
||||
public int pageNumber { get; set; } = 1;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the size of the page for pagination.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The number of records per page. Defaults to 10.
|
||||
/// </value>
|
||||
public int pageSize { get; set; } = 10;
|
||||
|
||||
/// <summary>
|
||||
/// Optional text to search for in any text field in the audit logs.
|
||||
/// </summary>
|
||||
public string? searchText { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the date and time at which the audit action is performed..
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The specific timestamp of the audit action. Optional.
|
||||
/// </value>
|
||||
public DateTime? actionTime { get; set; } = null;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the start date for filtering audit logs by date range.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The earliest date to include in the results. Optional.
|
||||
/// </value>
|
||||
public DateTime? startDate { get; set; } = null;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the end date for filtering audit logs by date range.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The latest date to include in the results. Optional.
|
||||
/// </value>
|
||||
public DateTime? endDate { get; set; } = null;
|
||||
|
||||
|
||||
}
|
||||
Executable
+23
@@ -0,0 +1,23 @@
|
||||
namespace audit_logs.Models;
|
||||
|
||||
|
||||
public class AuditRecordDto
|
||||
{
|
||||
public string Id { get; set; }
|
||||
public string EntityType { get; set; }
|
||||
public string RecordId { get; set; }
|
||||
public string UserId { get; set; }
|
||||
public string ActionType { get; set; }
|
||||
public DateTime ActionTime { get; set; }
|
||||
public List<ChangeDto> Changes { get; set; }
|
||||
public string Reason { get; set; }
|
||||
public string UserIpAddress { get; set; }
|
||||
}
|
||||
|
||||
public class ChangeDto
|
||||
{
|
||||
public string Field { get; set; }
|
||||
public object OldValue { get; set; }
|
||||
public object NewValue { get; set; }
|
||||
public string ValueType { get; set; }
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
namespace audit_logs.Models;
|
||||
|
||||
public class PaginatedLogsResultDto<T>
|
||||
{
|
||||
public int CurrentPage { get; set; }
|
||||
public int PageSize { get; set; }
|
||||
public long TotalRecords { get; set; }
|
||||
public int TotalPages { get; set; }
|
||||
public IEnumerable<T> Records { get; set; }
|
||||
}
|
||||
+72
@@ -0,0 +1,72 @@
|
||||
namespace audit_logs.Models.DTO
|
||||
{
|
||||
/// <summary>
|
||||
/// Data Transfer Object (DTO) for filtering and paginating audit log records.
|
||||
/// </summary>
|
||||
public class SpecificAuditLogFilterDto
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the page number for pagination.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The number of the page to retrieve. Defaults to 1.
|
||||
/// </value>
|
||||
public int pageNumber { get; set; } = 1;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the size of the page for pagination.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The number of records per page. Defaults to 10.
|
||||
/// </value>
|
||||
public int pageSize { get; set; } = 10;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the user ID associated with the author of updates to audit records
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The ID of the user who performed the action. Optional.
|
||||
/// </value>
|
||||
public string? userId { get; set; } = null;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the record ID within the EntityType collection to search for audit records.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The ID of the record affected by the audit action, for example, patien_id Optional.
|
||||
/// </value>
|
||||
public string? recordId { get; set; } = null;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the type of entity (collection) associated with the audit records.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The type of the audited entity (collection) (e.g., "Patient", "Order"). Optional.
|
||||
/// </value>
|
||||
public string? entityType { get; set; } = null;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the date and time at which the audit action is performed..
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The specific timestamp of the audit action. Optional.
|
||||
/// </value>
|
||||
public DateTime? actionTime { get; set; } = null;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the start date for filtering audit logs by date range.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The earliest date to include in the results. Optional.
|
||||
/// </value>
|
||||
public DateTime? startDate { get; set; } = null;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the end date for filtering audit logs by date range.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The latest date to include in the results. Optional.
|
||||
/// </value>
|
||||
public DateTime? endDate { get; set; } = null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user