龚焕茏
2024-08-26 53696e317005ba4668fd1efc27cc49cbdfb8dbfb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package enumeration.general;
 
import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;
 
/**
 * @author gonghl
 * @since 2024/8/26 下午 3:47
 */
@Getter
public enum AlarmCategoryEnum {
 
    SSH("1", "SSH弱口令", 2),
    TELNET("2", "Telnet弱口令", 2),
    RDP("3", "RDP弱口令", 2),
    FTP("4", "FTP弱口令", 6),
    DATABASE("5", "数据库弱口令", 6);
 
    @EnumValue
    private final String value;
    @JsonValue
    private final String desc;
    private final Integer score;
 
    AlarmCategoryEnum(String value, String desc, Integer score) {
        this.value = value;
        this.desc = desc;
        this.score = score;
    }
 
}