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
| package enumeration.general;
|
| import com.fasterxml.jackson.annotation.JsonValue;
| import lombok.Getter;
|
| /**
| * 快速下发方式
| *
| * @author:xp
| * @date:2024/3/4 15:15
| */
| @Getter
| public enum FastDistributeTypeEnum {
|
| LAST_HOUR("LAST_HOUR", "最近一小时"),
| LAST_TWO_HOUR("LAST_TWO_HOUR", "最近两小时"),
| LAST_DAY("LAST_DAY", "最近一天"),
| CUSTOM("CUSTOM", "自定义")
| ;
|
| @JsonValue
| private final String value;
|
| private final String desc;
|
| FastDistributeTypeEnum(String value, String desc) {
| this.value = value;
| this.desc = desc;
| }
|
| }
|
|