Skip to content

Commit

Permalink
feat: 선착순 이벤트 전체 조회 메서드 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
k000927 committed Aug 13, 2024
1 parent 994dd3b commit dde40bc
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -147,4 +148,9 @@ public RushEventResponseDto createRushEvent(RushEventRequestDto rushEventRequest

return RushEventResponseDto.of(rushEvent);
}

public List<AdminRushEventResponseDto> getRushEvents(){
List<RushEvent> rushEvents = rushEventRepository.findAll();
return AdminRushEventResponseDto.of(rushEvents);
}
}

0 comments on commit dde40bc

Please sign in to comment.