Skip to content

Commit

Permalink
feat/#331 : UpdateMemberRequest 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
LJH098 committed Jun 30, 2024
1 parent 6dca4f4 commit 3b24fb1
Showing 1 changed file with 6 additions and 4 deletions.
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) {}

0 comments on commit 3b24fb1

Please sign in to comment.