Skip to content
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
Expand Up @@ -2,26 +2,22 @@

import lombok.Getter;
import com.fasterxml.jackson.annotation.JsonValue;

import lombok.AllArgsConstructor;

@AllArgsConstructor

@Getter
public enum RiskLevel {
Dangers("위험"),
Caution("주의"),
Safety("안전");

private final String name;
private final String value;

@JsonValue
public String getValue(){
return value;
return value;
}

RiskLevel(String name) {
this.name = name;
RiskLevel(String value) {
this.value = value;
}

public static RiskLevel fromScore(double score) {
Expand All @@ -33,4 +29,4 @@ public static RiskLevel fromScore(double score) {
return Dangers;
}
}
}
}