Skip to content

Commit

Permalink
refactor: event-id eventId로 통일
Browse files Browse the repository at this point in the history
  • Loading branch information
hong-sile committed Aug 2, 2023
1 parent a99fb4f commit 5ca1ad6
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,22 +88,22 @@ public EventDetailResponse addEvent(
return eventService.addEvent(request, LocalDate.now());
}

@PutMapping("/{event-id}")
@PutMapping("/{eventId}")
@ResponseStatus(HttpStatus.OK)
public EventDetailResponse updateEvent(@PathVariable(name = "event-id") final Long eventId,
public EventDetailResponse updateEvent(@PathVariable final Long eventId,
@RequestBody @Valid final EventDetailRequest request) {
return eventService.updateEvent(eventId, request, LocalDate.now());
}

@DeleteMapping("/{event-id}")
@DeleteMapping("/{eventId}")
@ResponseStatus(HttpStatus.NO_CONTENT)
public void deleteEvent(@PathVariable(name = "event-id") final Long eventId) {
public void deleteEvent(@PathVariable final Long eventId) {
eventService.deleteEvent(eventId);
}

@GetMapping("/{event-id}/participants/already-participate")
@GetMapping("/{eventId}/participants/already-participate")
public ResponseEntity<Boolean> isAlreadyParticipate(
@PathVariable(name = "event-id") final Long eventId,
@PathVariable final Long eventId,
@RequestParam(name = "member-id") final Long memberId
) {
return ResponseEntity.ok(eventService.isAlreadyParticipate(eventId, memberId));
Expand Down

0 comments on commit 5ca1ad6

Please sign in to comment.