Skip to content

Commit

Permalink
Merge pull request #235 from GSM-MSG/234-update/same-period-reservati…
Browse files Browse the repository at this point in the history
…on-exception

# 234 같은 교시 예약 예외 상태 코드 변경
  • Loading branch information
JuuuuHong committed Mar 26, 2024
2 parents cade9ba + 454cbc8 commit dda5e53
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,13 @@ package team.msg.hiv2.domain.homebase.application.usecase
import team.msg.hiv2.domain.homebase.application.service.HomeBaseService
import team.msg.hiv2.domain.homebase.exception.AlreadyExistReservationException
import team.msg.hiv2.domain.homebase.exception.AlreadyReservedAtSamePeriodException
import team.msg.hiv2.domain.homebase.exception.NotReserveHomeBaseHourException
import team.msg.hiv2.domain.homebase.exception.TooManyUsersException
import team.msg.hiv2.domain.homebase.presentation.data.request.ReservationHomeBaseRequest
import team.msg.hiv2.domain.reservation.application.service.ReservationService
import team.msg.hiv2.domain.reservation.domain.Reservation
import team.msg.hiv2.domain.user.application.service.UserService
import team.msg.hiv2.domain.user.exception.UserNotFoundException
import team.msg.hiv2.global.annotation.usecase.UseCase
import java.time.DayOfWeek
import java.time.LocalDateTime
import java.util.*

@UseCase
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/team/msg/hiv2/global/error/ErrorCode.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ enum class ErrorCode(
FORBIDDEN_COMMAND_RESERVATION("예약 테이블을 제어할 권한이 없습니다.", 403),
FORBIDDEN_EXIT_RESERVATION("사용자 수가 2명 이하일 경우 나갈 수 없습니다.", 403),
ALREADY_EXIST_RESERVATION("이미 예약 되어진 자리입니다.", 403),
ALREADY_RESERVED_AT_SAME_PERIOD("이미 같은 교시에 예약된 홈베이스가 존재합니다.", 403),
ALREADY_RESERVED_AT_SAME_PERIOD("이미 같은 교시에 예약된 홈베이스가 존재합니다.", 409),
TOO_MANY_USERS_EXCEPTION("인원 수가 홈베이스 최대 인원보다 많습니다.", 403),
NOT_RESERVE_HOME_BASE_EXCEPTION("홈베이스 예약 가능한 시간이 아닙니다.", 403),

Expand Down

0 comments on commit dda5e53

Please sign in to comment.