Skip to content

Commit

Permalink
#73 [feat] : 성공 메세지를 변경한다
Browse files Browse the repository at this point in the history
  • Loading branch information
bbbang105 committed Oct 23, 2024
1 parent 8e2def4 commit 22682e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
public class FixedEventController {
private final FixedEventService fixedEventService;

// 고정 이벤트 생성 API
// 고정 이벤트 생성 및 고정 스케줄 등록 API
@PostMapping
public ResponseEntity<ApiResponse<Object>> createFixedEvent(
@RequestHeader("Authorization") String authorizationHeader,
@Valid @RequestBody CreateFixedEventRequest createFixedEventRequest) {

fixedEventService.createFixedEvent(authorizationHeader, createFixedEventRequest);

return ApiResponse.onSuccess(SuccessStatus._CREATED_FIXED_EVENT);
return ApiResponse.onSuccess(SuccessStatus._CREATED_FIXED_SCHEDULE);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public enum SuccessStatus implements BaseCode {
_UPDATE_USER_PROFILE(HttpStatus.OK, "200", "유저 정보 수정에 성공했습니다."),
_WITHDRAW_SERVICE(HttpStatus.OK, "200", "유저 서비스 탈퇴에 성공했습니다."),
// FixedEvent
_CREATED_FIXED_EVENT(HttpStatus.CREATED, "201", "고정 이벤트 생성에 성공했습니다."),
_CREATED_FIXED_SCHEDULE(HttpStatus.CREATED, "201", "고정 스케줄 등록에 성공했습니다."),
;

private final HttpStatus httpStatus;
Expand Down

0 comments on commit 22682e9

Please sign in to comment.