Skip to content

Commit

Permalink
refactor: MenuResponse NonNull 처리 (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
gahyuun committed Jan 16, 2025
1 parent f57e190 commit 3752fe2
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
package com.acon.server.spot.api.response;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import lombok.Builder;
import lombok.NonNull;

@Builder
@JsonInclude(Include.NON_NULL)
public record MenuResponse(
@NonNull
Long id,
@NonNull
String name,
int price,
@NonNull
Integer price,
String image
) {

Expand Down

0 comments on commit 3752fe2

Please sign in to comment.