Initial commit: HelpDesk ICHN - .NET 10 backend + Next.js 16 frontend

This commit is contained in:
Nurfog committed 2026-09-10 10:20:51 -03:00
commit 359f0caf85
90 files changed
+13395

No files matched your search

@@ -0,0 +1,49 @@
namespace HelpDesk.Models.DTOs;
public class ArticleDto
{
public Guid Id { get; set; }
public string Title { get; set; } = string.Empty;
public string Content { get; set; } = string.Empty;
public bool IsPublished { get; set; }
public Guid CategoryId { get; set; }
public string CategoryName { get; set; } = string.Empty;
public Guid AuthorId { get; set; }
public string AuthorName { get; set; } = string.Empty;
public int ViewCount { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime? UpdatedAt { get; set; }
}
public class CreateArticleRequest
{
public string Title { get; set; } = string.Empty;
public string Content { get; set; } = string.Empty;
public Guid CategoryId { get; set; }
public bool IsPublished { get; set; }
}
public class UpdateArticleRequest
{
public string? Title { get; set; }
public string? Content { get; set; }
public Guid? CategoryId { get; set; }
public bool? IsPublished { get; set; }
}
public class CategoryDto
{
public Guid Id { get; set; }
public string Name { get; set; } = string.Empty;
public string? Description { get; set; }
public int SortOrder { get; set; }
public int ArticleCount { get; set; }
public DateTime CreatedAt { get; set; }
}
public class CreateCategoryRequest
{
public string Name { get; set; } = string.Empty;
public string? Description { get; set; }
public int SortOrder { get; set; }
}