-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into 929-feature-agenda-이미지-업로드-기능-추가
- Loading branch information
Showing
22 changed files
with
386 additions
and
190 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
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
44 changes: 44 additions & 0 deletions
44
...n/java/gg/agenda/api/user/agendaprofile/controller/response/AttendedAgendaListResDto.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,44 @@ | ||
package gg.agenda.api.user.agendaprofile.controller.response; | ||
|
||
import java.time.LocalDateTime; | ||
import java.util.List; | ||
import java.util.UUID; | ||
import java.util.stream.Collectors; | ||
|
||
import gg.agenda.api.user.agendateam.controller.response.TeamMateDto; | ||
import gg.data.agenda.AgendaTeamProfile; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Getter | ||
@NoArgsConstructor(access = lombok.AccessLevel.PROTECTED) | ||
public class AttendedAgendaListResDto { | ||
private String agendaId; | ||
private String agendaTitle; | ||
private LocalDateTime agendaStartTime; | ||
private LocalDateTime agendaEndTime; | ||
private int agendaCurrentTeam; | ||
private String agendaLocation; | ||
private UUID teamKey; | ||
private Boolean isOfficial; | ||
private int agendaMaxPeople; | ||
private String teamName; | ||
private List<TeamMateDto> teamMates; | ||
|
||
public AttendedAgendaListResDto(AgendaTeamProfile agendaTeamProfile, | ||
List<AgendaTeamProfile> agendaTeamProfileList) { | ||
this.agendaId = agendaTeamProfile.getAgenda().getId().toString(); | ||
this.agendaTitle = agendaTeamProfile.getAgenda().getTitle(); | ||
this.agendaStartTime = agendaTeamProfile.getAgenda().getStartTime(); | ||
this.agendaEndTime = agendaTeamProfile.getAgenda().getEndTime(); | ||
this.agendaCurrentTeam = agendaTeamProfile.getAgenda().getCurrentTeam(); | ||
this.agendaLocation = agendaTeamProfile.getAgenda().getLocation().toString(); | ||
this.teamKey = agendaTeamProfile.getAgendaTeam().getTeamKey(); | ||
this.isOfficial = agendaTeamProfile.getAgenda().getIsOfficial(); | ||
this.agendaMaxPeople = agendaTeamProfile.getAgenda().getMaxPeople(); | ||
this.teamName = agendaTeamProfile.getAgendaTeam().getName(); | ||
this.teamMates = agendaTeamProfileList.stream() | ||
.map(TeamMateDto::new) | ||
.collect(Collectors.toList()); | ||
} | ||
} |
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.