first commit

This commit is contained in:
2026-03-09 22:09:10 +01:00
commit 7b6b294b0f
269 changed files with 10338 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
namespace BookHive.DTO.Book;
public class CreateBookDto
{
public string? Title { get; set; }
public string? Isbn { get; set; }
public string? Summary { get; set; }
public int PageCount { get; set; }
public DateOnly PublishedDate { get; set; }
public string? Genre { get; set; }
public int AuthorId { get; set; }
}

View File

@@ -0,0 +1,20 @@
using BookHive.DTO.Author;
using BookHive.DTO.Review;
namespace BookHive.DTO.Book;
public class GetBookDetailsDto
{
public int Id { get; set; }
public string? Title { get; set; }
public string? Isbn { get; set; }
public string? Summary { get; set; }
public int PageCount { get; set; }
public DateOnly PublishedDate { get; set; }
public string? Genre { get; set; }
public int AuthorId { get; set; }
public GetAuthorDto? Author { get; set; }
public List<GetReviewDto>? Reviews { get; set; }
}

View File

@@ -0,0 +1,9 @@
namespace BookHive.DTO.Book;
public class GetBookDto
{
public int Id { get; set; }
public string? Title { get; set; }
public DateOnly PublishedDate { get; set; }
public string? Genre { get; set; }
}

View File

@@ -0,0 +1,14 @@
namespace BookHive.DTO.Book;
public class UpdateBookDto
{
public int Id { get; set; }
public string? Title { get; set; }
public string? Isbn { get; set; }
public string? Summary { get; set; }
public int PageCount { get; set; }
public DateOnly PublishedDate { get; set; }
public string? Genre { get; set; }
public int AuthorId { get; set; }
}