first commit
This commit is contained in:
11
BookHive/DTO/Review/CreateReviewDto.cs
Normal file
11
BookHive/DTO/Review/CreateReviewDto.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace BookHive.DTO.Review;
|
||||
|
||||
public class CreateReviewDto
|
||||
{
|
||||
|
||||
public int BookId { get; set; }
|
||||
public int MemberId { get; set; }
|
||||
|
||||
public int Rating { get; set; }
|
||||
public string? Comment { get; set; }
|
||||
}
|
||||
19
BookHive/DTO/Review/GetReviewDto.cs
Normal file
19
BookHive/DTO/Review/GetReviewDto.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using BookHive.DTO.Book;
|
||||
using BookHive.DTO.Member;
|
||||
|
||||
namespace BookHive.DTO.Review;
|
||||
|
||||
public class GetReviewDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public int BookId { get; set; }
|
||||
public int MemberId { 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; }
|
||||
}
|
||||
12
BookHive/DTO/Review/UpdateReviewDto.cs
Normal file
12
BookHive/DTO/Review/UpdateReviewDto.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace BookHive.DTO.Review;
|
||||
|
||||
public class UpdateReviewDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public int BookId { get; set; }
|
||||
public int MemberId { get; set; }
|
||||
|
||||
public int Rating { get; set; }
|
||||
public string? Comment { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user