-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from Kusitms-29th-Meetup-TeamE/feat/42/review
Feat: 후기 관련 api
- Loading branch information
Showing
13 changed files
with
160 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
src/main/java/com/meetup/teame/backend/domain/activity/dto/response/ActivityPageRes.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
src/main/java/com/meetup/teame/backend/domain/activity/dto/response/ReadMainActivityRes.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
src/main/java/com/meetup/teame/backend/domain/review/dto/response/MyReviewRes.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
package com.meetup.teame.backend.domain.review.dto.response; | ||
|
||
import com.meetup.teame.backend.domain.review.entity.Review; | ||
import com.meetup.teame.backend.domain.user.entity.User; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Getter | ||
@Builder | ||
public class MyReviewRes { | ||
private Long id; | ||
|
||
private Long menteeId; | ||
|
||
private String menteeName; | ||
|
||
private Long age; | ||
|
||
private String gender; | ||
|
||
private String location; | ||
|
||
private String time; | ||
|
||
private String imageUrl; | ||
|
||
private String experienceType; | ||
|
||
private String title; | ||
|
||
private String description; | ||
|
||
public static MyReviewRes of(Review review) { | ||
User mentee = review.getMentee().getMentee(); | ||
|
||
return MyReviewRes.builder() | ||
.id(review.getId()) | ||
.menteeId(mentee.getId()) | ||
.menteeName(mentee.getName()) | ||
.age(mentee.getAge()) | ||
.gender(mentee.getGender().getDescription()) | ||
.location(mentee.getLocation()) | ||
.imageUrl(mentee.getImageUrl()) | ||
.experienceType(review.getMentor().getType().getDescription()) | ||
.title(review.getMentor().getDescription()) | ||
.description(review.getDescription()) | ||
.build(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.