Skip to content

Commit

Permalink
refactor(messages): 검증 메시지 프로퍼티 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
SongJaeHoonn committed Dec 30, 2024
1 parent 9be32fc commit 649310b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@Setter
public class ExecutiveRequestDto {

@NotNull(message = "{notNull.executive.id}")
@NotNull(message = "{notNull.executive.executiveId}")
@Schema(description = "학번", example = "202310000")
private String executiveId;

Expand All @@ -21,7 +21,7 @@ public class ExecutiveRequestDto {
@Schema(description = "이메일", example = "clab.coreteam@gamil.com")
private String email;

@NotNull(message = "{notNull.executive.field}")
@NotNull(message = "{notNull.executive.interests}")
@Schema(description = "분야", example = "Back-End")
private String interests;

Expand Down
5 changes: 2 additions & 3 deletions src/main/resources/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,8 @@ notNull.workExperience.companyName=회사명은 필수 입력 항목입니다.
notNull.workExperience.position=직책은 필수 입력 항목입니다.
notNull.workExperience.startDate=시작일은 필수 입력 항목입니다.
notNull.workExperience.endDate=종료일은 필수 입력 항목입니다.
notNull.executive.id=학번은 필수 입력 항목입니다.
notNull.executive.executiveId=학번은 필수 입력 항목입니다.
notNull.executive.name=이름은 필수 입력 항목입니다.
notNull.executive.email=이메일은 필수 입력 항목입니다.
notNull.executive.field=분야는 필수 입력 항목입니다.
notNull.executive.position=직급은 필수 입력 항목입니다.
notNull.executive.interests=분야는 필수 입력 항목입니다.
invalid.activityGroupBoard.dueDateTime=마감일자는 현재 시간 이후로 설정되어야 합니다.

0 comments on commit 649310b

Please sign in to comment.