From 000ee2a09d9767d00fa8ed95ed027935ca5d2146 Mon Sep 17 00:00:00 2001 From: Kang Dong Hyeon Date: Sat, 29 Jun 2024 10:47:32 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20dto=20mapping=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dto/PropensityAnalysis/PropensityAnalysisDto.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/api/src/main/java/org/meotppo/webti/dto/PropensityAnalysis/PropensityAnalysisDto.java b/api/src/main/java/org/meotppo/webti/dto/PropensityAnalysis/PropensityAnalysisDto.java index 5ad7270..2cdeb19 100644 --- a/api/src/main/java/org/meotppo/webti/dto/PropensityAnalysis/PropensityAnalysisDto.java +++ b/api/src/main/java/org/meotppo/webti/dto/PropensityAnalysis/PropensityAnalysisDto.java @@ -1,24 +1,34 @@ package org.meotppo.webti.dto.PropensityAnalysis; +import com.fasterxml.jackson.annotation.JsonProperty; + import jakarta.validation.constraints.NotNull; import lombok.Getter; @Getter public class PropensityAnalysisDto { @NotNull(message = "E cannot be null") + @JsonProperty("E") private int E; @NotNull(message = "I cannot be null") + @JsonProperty("I") private int I; @NotNull(message = "N cannot be null") + @JsonProperty("N") private int N; @NotNull(message = "S cannot be null") + @JsonProperty("S") private int S; @NotNull(message = "T cannot be null") + @JsonProperty("T") private int T; @NotNull(message = "F cannot be null") + @JsonProperty("F") private int F; @NotNull(message = "P cannot be null") + @JsonProperty("P") private int P; @NotNull(message = "j cannot be null") + @JsonProperty("j") private int j; }