Skip to content

Commit

Permalink
Feature: 세션 목록 반환 시 세션 날짜 필드 추가 (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
Youthhing authored Aug 20, 2024
1 parent bc609e8 commit 2eb0d5c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.cotato.csquiz.api.session.dto;

import java.time.LocalDate;
import java.util.List;
import org.cotato.csquiz.domain.generation.embedded.SessionContents;
import org.cotato.csquiz.domain.generation.entity.Session;
Expand All @@ -13,6 +14,7 @@ public record SessionListResponse(
String description,
Long generationId,
String placeName,
LocalDate sessionDate,
SessionContents sessionContents
) {
public static SessionListResponse of(Session session, List<SessionImage> sessionImages) {
Expand All @@ -26,6 +28,7 @@ public static SessionListResponse of(Session session, List<SessionImage> session
session.getDescription(),
session.getGeneration().getId(),
session.getPlaceName(),
session.getSessionDate(),
session.getSessionContents()
);
}
Expand Down

0 comments on commit 2eb0d5c

Please sign in to comment.