Skip to content

Commit

Permalink
fix: 유효성 검증 상수화 했던 것 Wrapper 타입으로 인해 build 에러 -> 원시 타입으로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jo0oy committed Dec 15, 2023
1 parent 8fcc93a commit e6b5c82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class ReservationProductValidationConstants {
// validation constraint value
public static final String DATE_REGEX = "^\\d{4}-\\d{2}-\\d{2}$";
public static final String PHONE_NUMBER_REGEX = "^01(?:0|1|[6-9])-\\d{4}-\\d{4}$";
public static final Integer PRICE_MIN_VALUE = 0;
public static final int PRICE_MIN_VALUE = 0;

// validation message
public static final String DATE_PATTERN_MESSAGE = "올바른 날짜 형식이 아닙니다.(yyyy-MM-dd 형식으로 입력하세요.)";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
public class RoomValidationConstants {

// validation constraint value
public static final Integer ROOM_REQ_MIN_SIZE = 1;
public static final Integer ROOM_REQ_MAX_SIZE = 3;
public static final Long ROOMID_MIN_VALUE = 1L;
public static final int ROOM_REQ_MIN_SIZE = 1;
public static final int ROOM_REQ_MAX_SIZE = 3;
public static final long ROOMID_MIN_VALUE = 1;

// validation message
public static final String ROOM_REQ_SIZE_MESSAGE = "최소 1개, 최대 3개의 객실 식별자 정보가 필요합니다.";
Expand Down

0 comments on commit e6b5c82

Please sign in to comment.