diff --git a/src/main/java/org/sopt/confeti/api/user/facade/dto/request/AddTimetableFestivalArtiestDTO.java b/src/main/java/org/sopt/confeti/api/user/facade/dto/request/AddTimetableFestivalArtiestDTO.java new file mode 100644 index 0000000..7c80256 --- /dev/null +++ b/src/main/java/org/sopt/confeti/api/user/facade/dto/request/AddTimetableFestivalArtiestDTO.java @@ -0,0 +1,13 @@ +package org.sopt.confeti.api.user.facade.dto.request; + +import org.sopt.confeti.api.user.dto.request.AddTimetableFestivalArtistRequest; + +public record AddTimetableFestivalArtiestDTO( + long festivalId +) { + public static AddTimetableFestivalArtiestDTO from(final AddTimetableFestivalArtistRequest addTimetableFestivalArtistRequest) { + return new AddTimetableFestivalArtiestDTO( + addTimetableFestivalArtistRequest.festivalId() + ); + } +} diff --git a/src/main/java/org/sopt/confeti/api/user/facade/dto/request/AddTimetableFestivalDTO.java b/src/main/java/org/sopt/confeti/api/user/facade/dto/request/AddTimetableFestivalDTO.java new file mode 100644 index 0000000..35144ed --- /dev/null +++ b/src/main/java/org/sopt/confeti/api/user/facade/dto/request/AddTimetableFestivalDTO.java @@ -0,0 +1,16 @@ +package org.sopt.confeti.api.user.facade.dto.request; + +import java.util.List; +import org.sopt.confeti.api.user.dto.request.AddTimetableFestivalRequest; + +public record AddTimetableFestivalDTO( + List festivals +) { + public static AddTimetableFestivalDTO from(final AddTimetableFestivalRequest addTimetableFestivalRequest) { + return new AddTimetableFestivalDTO( + addTimetableFestivalRequest.festivals().stream() + .map(AddTimetableFestivalArtiestDTO::from) + .toList() + ); + } +}