-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
4 deletions.
There are no files selected for viewing
10 changes: 6 additions & 4 deletions
10
BE/exceed/src/main/java/com/gaebaljip/exceed/dto/request/UpdateMemberRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
package com.gaebaljip.exceed.dto.request; | ||
|
||
import javax.validation.constraints.Min; | ||
import javax.validation.constraints.NotBlank; | ||
import javax.validation.constraints.NotNull; | ||
|
||
import com.gaebaljip.exceed.common.ValidationMessage; | ||
import com.gaebaljip.exceed.common.annotation.Enum; | ||
import com.gaebaljip.exceed.member.domain.Activity; | ||
import com.gaebaljip.exceed.member.domain.Gender; | ||
|
||
public record UpdateMemberRequest( | ||
@NotBlank(message = "memberId must not be null") Long memberId, | ||
@NotBlank(message = "memberId must not be null") Double height, | ||
@NotNull(message = "키를 " + ValidationMessage.NOT_NULL) @Min(value = 0, message = "키는 " + ValidationMessage.MIN_0) Double height, | ||
@Enum(enumClass = Gender.class) String gender, | ||
@NotBlank(message = "memberId must not be null") Integer age, | ||
@NotNull(message = "나이를 " + ValidationMessage.NOT_NULL) @Min(value = 0, message = "나이는 " + ValidationMessage.MIN_0) Integer age, | ||
@Enum(enumClass = Activity.class) String activity, | ||
@NotBlank(message = "memberId must not be null") String etc) {} | ||
@NotBlank(message = "기타사항을 " + ValidationMessage.NOT_BLANK) String etc) {} |