From 4a09cb80adf28787e82d4b3c88efcd375bd00206 Mon Sep 17 00:00:00 2001 From: chyun Date: Sun, 19 Jan 2025 04:11:04 +0900 Subject: [PATCH] =?UTF-8?q?feat=20[#111]=20=EC=9A=94=EC=B2=AD=EA=B0=92=20?= =?UTF-8?q?=EC=A0=84=EB=8B=AC=20DTO=20=EC=9E=91=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../request/AddTimetableFestivalArtiestDTO.java | 13 +++++++++++++ .../dto/request/AddTimetableFestivalDTO.java | 16 ++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 src/main/java/org/sopt/confeti/api/user/facade/dto/request/AddTimetableFestivalArtiestDTO.java create mode 100644 src/main/java/org/sopt/confeti/api/user/facade/dto/request/AddTimetableFestivalDTO.java 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() + ); + } +}