Skip to content

Commit

Permalink
refactor: 요청 처리 완료 시 메시지 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
hyxklee committed Jul 8, 2024
1 parent 83f771d commit 9e45d04
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class EventController {
@PostMapping("/create")
public CommonResponse<String> createEvent(@RequestBody RequestEvent requestEvent) {
eventService.createEvent(requestEvent);
return CommonResponse.createSuccess();
return CommonResponse.createSuccess("일정 생성 성공.");
}

// 일정 상세 조회
Expand All @@ -45,14 +45,14 @@ public CommonResponse<List<ResponseEvent>> getEvents(
@PatchMapping("/update/{id}")
public CommonResponse<String> updateEvent(@PathVariable Long id, @RequestBody RequestEvent requestEvent) {
eventService.updateEvent(id, requestEvent);
return CommonResponse.createSuccess();
return CommonResponse.createSuccess("id: " + id + " 일정 수정 성공");
}

// 일정 삭제
@DeleteMapping("/{id}")
public CommonResponse<String> deleteEvent(@PathVariable Long id) {
eventService.deleteEvent(id);
return CommonResponse.createSuccess();
return CommonResponse.createSuccess("id: " + id + " 일정 삭제 성공");
}

}

0 comments on commit 9e45d04

Please sign in to comment.