From ee7d42612ba95aa729c7618c3d87207493a85e3f Mon Sep 17 00:00:00 2001 From: Bob Sin Date: Wed, 7 Feb 2024 00:23:44 +0900 Subject: [PATCH] =?UTF-8?q?[FO-897]=20=EB=8C=80=ED=91=9C=EC=82=AC=EC=A7=84?= =?UTF-8?q?=EC=9D=80=20=ED=95=84=EC=88=98=20=EC=95=84=EB=8B=8C=20=EA=B0=92?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C=20=EB=B3=80=EA=B2=BD=20(#401)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fone/jobOpening/domain/entity/JobOpening.kt | 2 +- .../presentation/dto/ValidateJobOpeningDto.kt | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/server/src/main/kotlin/com/fone/jobOpening/domain/entity/JobOpening.kt b/server/src/main/kotlin/com/fone/jobOpening/domain/entity/JobOpening.kt index 777cf19f..cb8e1531 100644 --- a/server/src/main/kotlin/com/fone/jobOpening/domain/entity/JobOpening.kt +++ b/server/src/main/kotlin/com/fone/jobOpening/domain/entity/JobOpening.kt @@ -40,7 +40,7 @@ data class JobOpening( @Column var recruitmentEndDate: LocalDate?, @OneToMany(mappedBy = "jobOpening", cascade = [CascadeType.PERSIST, CascadeType.MERGE], orphanRemoval = true) var imageUrls: MutableList = mutableListOf(), - @Column(length = 300) var representativeImageUrl: String, + @Column(length = 300) var representativeImageUrl: String?, // page3 @Column(length = 50) var casting: String?, diff --git a/server/src/main/kotlin/com/fone/jobOpening/presentation/dto/ValidateJobOpeningDto.kt b/server/src/main/kotlin/com/fone/jobOpening/presentation/dto/ValidateJobOpeningDto.kt index db07a2dd..8e3028d3 100644 --- a/server/src/main/kotlin/com/fone/jobOpening/presentation/dto/ValidateJobOpeningDto.kt +++ b/server/src/main/kotlin/com/fone/jobOpening/presentation/dto/ValidateJobOpeningDto.kt @@ -37,7 +37,7 @@ class ValidateJobOpeningDto { value = "작품의 성격", example = "[\"WEB_DRAMA\",\"FEATURE_FILM\"]" ) - val categories: List, + val categories: List = emptyList(), @Schema( description = "모집 기간 시작일 (시작일, 종료일 둘다 null이면 상시모집)", @@ -60,14 +60,14 @@ class ValidateJobOpeningDto { example = "[\"https://www.naver.com\",\"https://www.naver.com\"]" ) @ApiModelProperty(value = "이미지", example = "[\"https://www.naver.com\",\"https://www.naver.com\"]") - val imageUrls: List, + val imageUrls: List = emptyList(), @Schema( description = "대표이미지", example = "https://www.naver.com" ) - @ApiModelProperty(value = "대표이미지", example = "https://www.naver.com") - val representativeImageUrl: String, + @ApiModelProperty(value = "대표이미지 (이미지 첨부 안할시 null로 전달)", example = "https://www.naver.com") + val representativeImageUrl: String? = null, ) data class ThirdPage( @@ -97,7 +97,7 @@ class ValidateJobOpeningDto { @Schema(description = "경력", example = "[\"NEWCOMER\"]") @ApiModelProperty(value = "경력", example = "[\"NEWCOMER\"]") - val careers: List, + val careers: List = emptyList(), ) data class FourthPage( @@ -115,7 +115,7 @@ class ValidateJobOpeningDto { @Schema(description = "장르", example = "[\"ACTION\",\"DRAMA\"]") @ApiModelProperty(value = "장르", example = "[\"ACTION\",\"DRAMA\"]") - val genres: Set, + val genres: Set = emptySet(), @Schema(description = "로그라인 (null 이면 비공개)", example = "자폐 스펙트럼 장애를 가진 변호사의 이야기") @ApiModelProperty(value = "로그라인 (null 이면 비공개)", example = "자폐 스펙트럼 장애를 가진 변호사의 이야기") @@ -149,7 +149,7 @@ class ValidateJobOpeningDto { @Schema(description = "근무요일 (추후협의 값 enum에 있음)", example = "[\"MON\",\"TUE\"]") @ApiModelProperty(value = "근무요일 (추후협의 값 enum에 있음)", example = "[\"MON\",\"TUE\"]") - val selectedDays: Set, + val selectedDays: Set = emptySet(), @Schema( description = "근무시간 시작 (시작, 종료 둘다 null이면 미정)",