Skip to content

Commit

Permalink
feat: 추첨 이벤트 당첨자 추첨 api 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
k000927 committed Aug 14, 2024
1 parent cdfee84 commit 5faacd5
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public ResponseEntity<AdminRushEventOptionResponseDto> getRushEventOptions(@Path
.status(HttpStatus.OK)
.body(adminService.getRushEventOptions(rushEventId));
}

// 추첨 이벤트 삭제
@DeleteMapping("/event/lottery")
public ResponseEntity<Void> deleteLotteryEvent() {
Expand Down Expand Up @@ -176,4 +176,12 @@ public ResponseEntity<Void> deleteLotteryEventExpectation(@PathVariable("casperI

return ResponseEntity.noContent().build();
}

// 추첨 이벤트 당첨자 추첨
@PostMapping("/event/lottery/winner")
public ResponseEntity<ResponseDto> pickWinners(){
return ResponseEntity
.status(HttpStatus.CREATED)
.body(adminService.pickWinners());
}
}

0 comments on commit 5faacd5

Please sign in to comment.