Skip to content

Commit 297fd8e

Browse files
authored
Merge pull request #34 from Block-Guard/feat/#29/url-fraud-api
[Fix] Fix Merge Conflict
2 parents a6c0aee + 1ae85e9 commit 297fd8e

File tree

1 file changed

+6
-10
lines changed
  • src/main/java/com/blockguard/server/domain/analysis/domain/enums

1 file changed

+6
-10
lines changed

src/main/java/com/blockguard/server/domain/analysis/domain/enums/RiskLevel.java

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,22 @@
22

33
import lombok.Getter;
44
import com.fasterxml.jackson.annotation.JsonValue;
5-
6-
import lombok.AllArgsConstructor;
7-
8-
@AllArgsConstructor
5+
96
@Getter
107
public 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+
}

0 commit comments

Comments
 (0)