Skip to content

Commit

Permalink
Merge pull request #155 from JNU-econovation/BE
Browse files Browse the repository at this point in the history
feat: 일정 조회 dto 필드 추가
  • Loading branch information
capDoYeonLee authored Jul 24, 2024
2 parents 5b9c459 + e1cc271 commit 7bf16d1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public class AllPrivateCalendarResponse {
private String eventInfo;
private String eventScope;
private String scheduleType;
private Long filterId;
private String filterName;
private String filterColor;
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public class AllPublicCalendarResponse {
private String eventPlace;
private String eventInfo;
private String scheduleType;
private Long filterId;
private String filterName;
private String filterColor;
}
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ private AllPublicCalendarResponse toPublicCalendarResponse(ScheduleModel model)
.eventPlace(model.getEventPlace())
.eventInfo(model.getEventInfo())
.scheduleType(model.getScheduleType())
.filterId(model.getFilter() != null ? model.getFilter().getFilterId() : null)
.filterName(model.getFilter() != null ? model.getFilter().getFilterName() : null)
.filterColor(model.getFilter() != null ? model.getFilter().getFilterColor() : null)
.build();
Expand All @@ -114,14 +115,13 @@ private AllPrivateCalendarResponse toPrivateCalendarResponse(ScheduleModel model
.eventPlace(model.getEventPlace())
.eventInfo(model.getEventInfo())
.scheduleType(model.getScheduleType())
.filterId(model.getFilter() != null ? model.getFilter().getFilterId() : null)
.filterName(model.getFilter() != null ? model.getFilter().getFilterName() : null)
.filterColor(model.getFilter() != null ? model.getFilter().getFilterColor() : null)
.build();
}




public List<MonthCalendarResponse> toMonthModel(List<ScheduleModel> models) {

List<MonthCalendarResponse> response = new ArrayList<>();
Expand Down

0 comments on commit 7bf16d1

Please sign in to comment.