Skip to content

Commit

Permalink
#61 [fix] : 이벤트 카테고리도 함께 반환한다
Browse files Browse the repository at this point in the history
  • Loading branch information
bbbang105 committed Oct 2, 2024
1 parent a1d2f25 commit 9498fe9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/side/onetime/dto/EventDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ public void updateEndTime(String endTime) {
@JsonInclude(JsonInclude.Include.NON_NULL)
public static class GetUserParticipatedEventsResponse {
private UUID eventId;
private Category category;
private String title;
private String createdDate;
private int participantCount;
Expand All @@ -168,6 +169,7 @@ public static class GetUserParticipatedEventsResponse {
public static GetUserParticipatedEventsResponse of(Event event, EventParticipation eventParticipation, int participantCount, List<GetMostPossibleTime> mostPossibleTimes) {
return GetUserParticipatedEventsResponse.builder()
.eventId(event.getEventId())
.category(event.getCategory())
.title(event.getTitle())
.createdDate(String.valueOf(event.getCreatedDate()))
.participantCount(participantCount)
Expand Down

0 comments on commit 9498fe9

Please sign in to comment.