File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed
src/main/java/com/blockguard/server/domain/analysis/domain/enums Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change 22
33import lombok .Getter ;
44import com .fasterxml .jackson .annotation .JsonValue ;
5-
6- import lombok .AllArgsConstructor ;
7-
8- @ AllArgsConstructor
5+
96@ Getter
107public enum RiskLevel {
118 Dangers ("위험" ),
129 Caution ("주의" ),
1310 Safety ("안전" );
1411
15- private final String name ;
1612 private final String value ;
17-
13+
1814 @ JsonValue
1915 public String getValue (){
20- return value ;
16+ return value ;
2117 }
2218
23- RiskLevel (String name ) {
24- this .name = name ;
19+ RiskLevel (String value ) {
20+ this .value = value ;
2521 }
2622
2723 public static RiskLevel fromScore (double score ) {
@@ -33,4 +29,4 @@ public static RiskLevel fromScore(double score) {
3329 return Dangers ;
3430 }
3531 }
36- }
32+ }
You can’t perform that action at this time.
0 commit comments