FileTypeEnums.java
679 Bytes
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
package cn.fw.rp.common.enums;
/**
* @author suchu
* @since 2018/5/9 13:24
*/
public enum FileTypeEnums {
/**
* 图片
*/
IMAGE(1, "图片"),
/**
* 视频
*/
VIDEO(2, "视频"),
/**
* 文档
*/
FILE(3, "附件");
private int type;
private String desc;
FileTypeEnums(int type, String desc) {
this.type = type;
this.desc = desc;
}
public int getType() {
return type;
}
public void setType(int type) {
this.type = type;
}
public String getDesc() {
return desc;
}
public void setDesc(String desc) {
this.desc = desc;
}
}