package com.qianwen.smartman.modules.tpm.enums;
|
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/tpm/enums/FileTypeEnum.class */
|
public enum FileTypeEnum {
|
PICTURE(1, "图片"),
|
FILE(2, "附件");
|
|
private final Integer type;
|
private final String desc;
|
|
FileTypeEnum(final Integer type, final String desc) {
|
this.type = type;
|
this.desc = desc;
|
}
|
|
public Integer getType() {
|
return this.type;
|
}
|
|
public String getDesc() {
|
return this.desc;
|
}
|
|
public static FileTypeEnum of(Integer type) {
|
if (type == null) {
|
return null;
|
}
|
FileTypeEnum[] values = values();
|
for (FileTypeEnum actionEnum : values) {
|
if (actionEnum.type.equals(type)) {
|
return actionEnum;
|
}
|
}
|
return null;
|
}
|
}
|