Skip to content

Commit b1ecf3f

Browse files
committed
[REFACTOR] 옷 수치 정보 1개 이상 검증 로직 제거
1 parent 7e79462 commit b1ecf3f

2 files changed

Lines changed: 1 addition & 9 deletions

File tree

src/main/java/fitfit/domain/clothes/service/ClothesCommandServiceImpl.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,6 @@ private void validateCreateClothesRequest(ClothesRequestDTO.CreateClothesRequest
8484
}
8585
}
8686

87-
if (!StringUtils.hasText(requestDto.getTotalLength()) &&
88-
!StringUtils.hasText(requestDto.getChestWidth()) &&
89-
!StringUtils.hasText(requestDto.getShoulderWidth()) &&
90-
!StringUtils.hasText(requestDto.getFootSize()) &&
91-
!StringUtils.hasText(requestDto.getWaistMeasurement()) &&
92-
!StringUtils.hasText(requestDto.getThighMeasurement())) {
93-
throw new ClothesHandler(ErrorStatus.CLOTHES_SIZE_NOT_FOUND);
94-
}
9587
}
9688

9789
@Override

src/main/java/fitfit/global/apiPayload/code/status/ErrorStatus.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public enum ErrorStatus implements BaseErrorCode {
4747
CATEGORY_NOT_FOUND(HttpStatus.NOT_FOUND, "CATEGORY4001", "존재하지 않는 카테고리입니다."),
4848

4949
// 옷 관련
50-
CLOTHES_SIZE_NOT_FOUND(HttpStatus.BAD_REQUEST, "CLOTHES4001", "사이즈 정보가 하나 이상 존재해야 합니다."),
50+
5151
ADDRESS_NOT_FOUND_FOR_MEETUP(HttpStatus.BAD_REQUEST, "CLOTHES4002", "직거래 시 주소 정보는 필수입니다."),
5252
FORBIDDEN_ACCESS(HttpStatus.FORBIDDEN, "CLOTHES4003", "삭제 권한이 없는 사용자입니다."),
5353
CLOTHES_NOT_FOUND(HttpStatus.NOT_FOUND, "CLOTHES4004", "존재하지 않는 옷입니다."),

0 commit comments

Comments
 (0)