namespace DMSDAL.DTO.ESSDocument { /// /// Safe response DTO — no internal storage paths. /// public class ESSDocumentItemDTO { public int AttachmentId { get; set; } public string CategoryCode { get; set; } = string.Empty; public string CategoryName { get; set; } = string.Empty; public int? PeriodYear { get; set; } public int? PeriodMonth { get; set; } public string? PeriodLabel { get; set; } public string FileName { get; set; } = string.Empty; public string? MimeType { get; set; } public long FileSizeBytes { get; set; } public bool IsSystemGenerated { get; set; } public bool AllowPreview { get; set; } public bool AllowDelete { get; set; } public DateTime CreatedOn { get; set; } } public class ESSDocumentPeriodGroupDTO { public string PeriodLabel { get; set; } = string.Empty; public int? Year { get; set; } public int? Month { get; set; } public List Documents { get; set; } = new(); } public class ESSDocumentGroupDTO { public string CategoryCode { get; set; } = string.Empty; public string CategoryName { get; set; } = string.Empty; public int DocumentCount { get; set; } public List Periods { get; set; } = new(); } }