This commit implements a complete rebranding of the project: - Updated all namespaces from `DocumentOperator` to `DocumentService`. - Renamed file paths, embedded resources, and test data references. - Updated configuration keys, logging paths, and Redis instance names. - Revised documentation to reflect the new project name. - Modified project and solution files to align with the new structure. - Updated class names, DTOs, commands, queries, and handlers. - Adjusted middleware, controllers, and API endpoints. - Updated Swagger metadata and API titles to `DocumentService API`. - Refactored test namespaces, resource paths, and embedded resources. - Updated build and deployment configurations for the new name. - Replaced all references to `DocumentOperator` in comments and literals. These changes ensure consistency across the codebase and documentation.
44 lines
1.1 KiB
C#
44 lines
1.1 KiB
C#
namespace DocumentService.Application.Common.DTOs;
|
|
|
|
/// <summary>
|
|
/// DTO for attachment check result returned to API layer
|
|
/// </summary>
|
|
public record AttachmentCheckResult
|
|
{
|
|
/// <summary>
|
|
/// Indicates whether the PDF contains any attachments
|
|
/// </summary>
|
|
public bool HasAttachments { get; init; }
|
|
|
|
/// <summary>
|
|
/// Total number of attachments in the PDF
|
|
/// </summary>
|
|
public int AttachmentCount { get; init; }
|
|
|
|
/// <summary>
|
|
/// List of attachment metadata (file details)
|
|
/// </summary>
|
|
public List<AttachmentDto> Attachments { get; init; } = new();
|
|
}
|
|
|
|
/// <summary>
|
|
/// DTO for individual attachment metadata
|
|
/// </summary>
|
|
public record AttachmentDto
|
|
{
|
|
/// <summary>
|
|
/// Attachment file name (e.g., "invoice.xml", "document.pdf")
|
|
/// </summary>
|
|
public string FileName { get; init; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// MIME type of the attachment (e.g., "text/xml", "application/pdf")
|
|
/// </summary>
|
|
public string MimeType { get; init; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Attachment file size in bytes
|
|
/// </summary>
|
|
public long Size { get; init; }
|
|
}
|