From dde40bcc3d9f2d96591db61aa1ba9a158d1d1683 Mon Sep 17 00:00:00 2001 From: nnijgnus Date: Tue, 13 Aug 2024 11:01:23 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=84=A0=EC=B0=A9=EC=88=9C=20=EC=9D=B4?= =?UTF-8?q?=EB=B2=A4=ED=8A=B8=20=EC=A0=84=EC=B2=B4=20=EC=A1=B0=ED=9A=8C=20?= =?UTF-8?q?=EB=A9=94=EC=84=9C=EB=93=9C=20=EC=9E=91=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/event/service/adminService/AdminService.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Server/src/main/java/JGS/CasperEvent/domain/event/service/adminService/AdminService.java b/Server/src/main/java/JGS/CasperEvent/domain/event/service/adminService/AdminService.java index ddc5de46..f7643022 100644 --- a/Server/src/main/java/JGS/CasperEvent/domain/event/service/adminService/AdminService.java +++ b/Server/src/main/java/JGS/CasperEvent/domain/event/service/adminService/AdminService.java @@ -8,6 +8,7 @@ import JGS.CasperEvent.domain.event.dto.ResponseDto.lotteryEventResponseDto.LotteryEventParticipantsListResponseDto; import JGS.CasperEvent.domain.event.dto.ResponseDto.lotteryEventResponseDto.LotteryEventParticipantsResponseDto; import JGS.CasperEvent.domain.event.dto.ResponseDto.lotteryEventResponseDto.LotteryEventResponseDto; +import JGS.CasperEvent.domain.event.dto.ResponseDto.rushEventResponseDto.AdminRushEventResponseDto; import JGS.CasperEvent.domain.event.dto.ResponseDto.rushEventResponseDto.RushEventResponseDto; import JGS.CasperEvent.domain.event.entity.admin.Admin; import JGS.CasperEvent.domain.event.entity.event.LotteryEvent; @@ -147,4 +148,9 @@ public RushEventResponseDto createRushEvent(RushEventRequestDto rushEventRequest return RushEventResponseDto.of(rushEvent); } + + public List getRushEvents(){ + List rushEvents = rushEventRepository.findAll(); + return AdminRushEventResponseDto.of(rushEvents); + } }