Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: dto mapping 추가 #30

Merged
merged 1 commit into from
Jun 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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")
Comment on lines +11 to +32
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

어떤 오류였나요??

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

입력으로 들어오는 Json과 변수가 일치하지 않아서 그랬던 것 같습니다.

private int j;
}
Loading