Skip to content

Commit 8a45d7b

Browse files
committed
feat: 지원자 생성 요청 DTO 수정
- 누락되었던 name 필드 추가 - 덮어쓰기 확인 여부 필드 추가 (기본값 false, nullable)
1 parent 6c2e47a commit 8a45d7b

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/main/java/dmu/dasom/api/domain/applicant/dto/ApplicantCreateRequestDto.java

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
package dmu.dasom.api.domain.applicant.dto;
22

3+
import com.fasterxml.jackson.annotation.JsonProperty;
4+
import com.fasterxml.jackson.annotation.JsonSetter;
5+
import com.fasterxml.jackson.annotation.Nulls;
36
import dmu.dasom.api.domain.applicant.entity.Applicant;
47
import io.swagger.v3.oas.annotations.media.Schema;
58
import jakarta.validation.constraints.*;
@@ -9,6 +12,11 @@
912
@Schema(name = "ApplicantCreateRequestDto", description = "지원자 생성 요청 DTO")
1013
public class ApplicantCreateRequestDto {
1114

15+
@NotNull
16+
@Size(max = 16)
17+
@Schema(description = "이름", example = "홍길동")
18+
private String name;
19+
1220
@NotNull
1321
@Pattern(regexp = "^[0-9]{8}$")
1422
@Size(min = 8, max = 8)
@@ -39,13 +47,18 @@ public class ApplicantCreateRequestDto {
3947
private String reasonForApply;
4048

4149
@Size(max = 200)
42-
@Schema(description = "활동 희망사항", example = "동아리 활동 참여")
50+
@Schema(description = "활동 희망사항", example = "동아리 활동 참여", nullable = true)
4351
private String activityWish;
4452

4553
@NotNull
4654
@Schema(description = "개인정보 처리방침 동의 여부", example = "true")
4755
private Boolean isPrivacyPolicyAgreed;
4856

57+
@JsonProperty(defaultValue = "false")
58+
@JsonSetter(nulls = Nulls.SKIP)
59+
@Schema(description = "지원서 덮어쓰기 확인 여부", example = "false", defaultValue = "false", nullable = true)
60+
private Boolean isOverwriteConfirmed = false;
61+
4962
public Applicant toEntity() {
5063
return Applicant.builder()
5164
.studentNo(this.studentNo)

0 commit comments

Comments
 (0)