Skip to content

Commit

Permalink
Merge pull request #82 from Tea-Bliss/dev
Browse files Browse the repository at this point in the history
[fix] 리뷰 등록 별점 추가
  • Loading branch information
mun9659 authored Jun 22, 2024
2 parents 2011e5e + 40e7dfa commit f66f5df
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/store/teabliss/review/dto/ReviewCreateDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,17 @@ public class ReviewCreateDto {
@Schema(description = "리뷰 내용", example = "리뷰 내용1")
private String contents;

@Schema(description = "별점", example = "5")
private Long likes;

@Schema(description = "완제품 차 고유 번호", example = "1")
private Long teaId;

public Review toEntity(Long memId) {
return Review.builder()
.title(title)
.contents(contents)
.likes(0L)
.likes(likes)
.teaId(teaId)
.memId(memId)
.build();
Expand Down

0 comments on commit f66f5df

Please sign in to comment.