frontend 연동을 위해 임시 커밋

This commit is contained in:
jhbkjh 2025-10-30 16:49:31 +09:00
parent ac7fcbd2fe
commit 52b63fb0f0

View File

@ -62,13 +62,14 @@ public class ParticipationController {
/**
* 참여자 목록 조회
* GET /participations/{eventId}/participants
* GET /events/{eventId}/participants (프론트엔드 호환)
*/
@Operation(
summary = "참여자 목록 조회",
description = "이벤트의 참여자 목록을 페이징하여 조회합니다. " +
"정렬 가능한 필드: createdAt(기본값), participantId, name, phoneNumber, bonusEntries, isWinner, wonAt"
)
@GetMapping("/participations/{eventId}/participants")
@GetMapping({"/participations/{eventId}/participants", "/events/{eventId}/participants"})
public ResponseEntity<ApiResponse<PageResponse<ParticipationResponse>>> getParticipants(
@Parameter(description = "이벤트 ID", example = "evt_20250124_001")
@PathVariable String eventId,
@ -90,8 +91,9 @@ public class ParticipationController {
/**
* 참여자 상세 조회
* GET /participations/{eventId}/participants/{participantId}
* GET /events/{eventId}/participants/{participantId} (프론트엔드 호환)
*/
@GetMapping("/participations/{eventId}/participants/{participantId}")
@GetMapping({"/participations/{eventId}/participants/{participantId}", "/events/{eventId}/participants/{participantId}"})
public ResponseEntity<ApiResponse<ParticipationResponse>> getParticipant(
@PathVariable String eventId,
@PathVariable String participantId) {