Skip to content

Commit

Permalink
feat/#331 : OnBoardingMemberRequest 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
LJH098 committed Jun 30, 2024
1 parent 832d71c commit 86bfd9d
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
package com.gaebaljip.exceed.dto.request;

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;

import lombok.Builder;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

public record OnBoardingMemberRequest(
Double height,
@NotNull(message = "키를 " + ValidationMessage.NOT_NULL) @Min(value = 0, message = "키는 " + ValidationMessage.MIN_0) Double height,
@Enum(enumClass = Gender.class) String gender,
Double weight,
Double targetWeight,
Integer age,
@NotNull(message = "몸무게를 " + ValidationMessage.NOT_NULL) @Min(value = 0, message = "몸무게는 " + ValidationMessage.MIN_0)Double weight,
@NotNull(message = "목표 몸무게를 " + ValidationMessage.NOT_NULL) @Min(value = 0, message = "목표 몸무게는 " + ValidationMessage.MIN_0)Double targetWeight,
@NotNull(message = "나이를 " + ValidationMessage.NOT_NULL) @Min(value = 0, message = "나이는 " + ValidationMessage.MIN_0)Integer age,
@Enum(enumClass = Activity.class) String activity,
String etc) {

Expand Down

0 comments on commit 86bfd9d

Please sign in to comment.