end of tp2

This commit is contained in:
2026-03-17 11:12:34 +01:00
parent d202d1541d
commit 90fcaca356
7 changed files with 76 additions and 40 deletions

View File

@@ -12,8 +12,11 @@ public class GetBookDetailsDto
public int PageCount { get; set; }
public DateOnly PublishedDate { get; set; }
public string? Genre { get; set; }
public decimal? AverageRating { get; set; }
public int? ReviewCount { get; set; }
public int AuthorId { get; set; }
public string? AuthorNationality { get; set; }
public GetAuthorDto? Author { get; set; }
public List<GetReviewDto>? Reviews { get; set; }

View File

@@ -8,12 +8,11 @@ public class GetLoanDto
public int Id { get; set; }
public int BookId { get; set; }
public string? BookTitle { get; set; }
public int MemberId { get; set; }
public string? MemberFullName { get; set; }
public DateOnly LoanDate { get; set; }
public DateOnly DueDate { get; set; }
public DateOnly? ReturnDate { get; set; }
public GetBookDto? Book { get; set; }
public GetMemberDto? Member { get; set; }
}

View File

@@ -8,12 +8,12 @@ public class GetReviewDto
public int Id { get; set; }
public int BookId { get; set; }
public string? BookTitle { get; set; }
public int MemberId { get; set; }
public string? MemberFullName { get; set; }
public int Rating { get; set; }
public string? Comment { get; set; }
public DateTime CreatedAt { get; set; }
public GetBookDto? Book { get; set; }
public GetMemberDto? Member { get; set; }
}