Skip to content

Commit

Permalink
Merge pull request #326 from catchroom/develop
Browse files Browse the repository at this point in the history
Refact : 반환 타입 수정
  • Loading branch information
Parkgeonmoo authored Jan 26, 2024
2 parents 104acbd + 60002bc commit 93f4667
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
# 파이널 프로젝트 : 무료 예약 취소 불가한 숙소의 양도/거래 서비스

<div align="center">
<img width="500" alt="image" src="https://github.com/catchroom/BE_CatchRoom/assets/114489245/94228459-9aef-4069-975d-bee133b5c7c2">

![logo](https://img.shields.io/badge/CatchRoom-F0047F.svg?style=for-the-badge)
</div>


## 🎢 서비스 실행 링크

- [CatchRoom 서비스 실행 링크](https://dev.dhlbrqe2v28e4.amplifyapp.com/home)
- [백엔드 채팅 Repo](https://github.com/catchroom/BE_Chat)
- [백엔드 채팅 서버 Repo](https://github.com/catchroom/BE_Chat)

## 📹 서비스 데모 영상
- 추후 업데이트 예정
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public class ProfileResponse {
String name;
String phoneNumber;
String nickName;
Long userId;


public static ProfileResponse fromEntity(User user) {
Expand All @@ -19,6 +20,7 @@ public static ProfileResponse fromEntity(User user) {
.name(user.getName())
.phoneNumber(user.getPhonenumber())
.nickName(user.getNickName())
.userId(user.getId())
.build();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@ public class ReviewResponse {
String accommodationName;
String content;
boolean isModify;
Long productId;


public void fromEntity(String accommodationName,String content,boolean isModify) {
public void fromEntity(String accommodationName,String content,boolean isModify,
Long productId) {
this.accommodationName = accommodationName;
this.content = content;
this.isModify = isModify;
this.productId = productId;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public ReviewResponse reviewFindService(ReviewType type, Long id) {
String accommodationName = accommodation.getName();
String content = e.getContent();
Boolean isModify = false;
Long reviewId = e.getProduct().getId();

LocalDateTime createdAt = e.getCreatedAt();
if (createdAt != null) {
Expand All @@ -66,7 +67,7 @@ public ReviewResponse reviewFindService(ReviewType type, Long id) {
}

ReviewResponse reviewResponse = new ReviewResponse();
reviewResponse.fromEntity(accommodationName, content, isModify);
reviewResponse.fromEntity(accommodationName, content, isModify,reviewId);

return reviewResponse;
}
Expand Down

0 comments on commit 93f4667

Please sign in to comment.