Skip to content

Commit

Permalink
feat/#331 : TodayMeal 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
LJH098 committed Jun 30, 2024
1 parent 86bfd9d commit 6dca4f4
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@

import java.time.LocalDateTime;

import com.gaebaljip.exceed.common.ValidationMessage;
import lombok.Builder;

public record TodayMeal(Long memberId, LocalDateTime date) {
import javax.validation.constraints.NotNull;

public record TodayMeal(@NotNull(message = "memberId을 " + ValidationMessage.NOT_NULL) Long memberId,
@NotNull(message = "날짜를 " + ValidationMessage.NOT_NULL) LocalDateTime date) {

@Builder
public TodayMeal {}
Expand Down

0 comments on commit 6dca4f4

Please sign in to comment.