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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
| package com.vci.ubcs.resource.life;
| import com.vci.ubcs.starter.web.enumpck.BaseEnum;
|
| /**
| * 文件的状态集合
| * @author weidy
| * @date 2023/6/11
| */
| public enum FileLife implements BaseEnum {
| /**
| * 初始化
| */
| INIT("fileInit","初始化"),
|
| /**
| * 上传中
| */
| TRANSITING("fileTransiting","上传中"),
|
| /**
| * 上传完成
| */
| TRANS_FINISH("fileTransitFinish","上传完成"),
|
| /**
| * 已生效
| */
| FILE_RELEASE("fileRelease","已生效");
|
| /**
| * 枚举值
| */
| private String value;
|
| /**
| * 枚举显示值
| */
| private String text;
| /**
| * 获取枚举值
| * @return 枚举值
| */
| @Override
| public String getValue() {
| return value;
| }
|
| /**
| * 设置枚举值
| * @param value 枚举值
| */
| public void setValue(String value) {
| this.value = value;
| }
|
| /**
| * 获取显示文本
| * @return 显示文本
| */
| @Override
| public String getText() {
| return text;
| }
|
| /**
| * 设置显示文本
| * @param text 显示文本
| */
| public void setText(String text) {
| this.text = text;
| }
|
| /**
| * 枚举内部构造方法
| * @param value 枚举值
| * @param text 显示文本
| */
| private FileLife(String value, String text){
| this.value = value;
| this.text = text;
| }
|
|
| }
|
|