package com.ruoyi.common.enums;
|
|
|
public enum AttachmentType {
|
/*
|
* 报告编制
|
*/
|
INS_REPORT(1, "ins_report"),
|
USER(2, "user"),
|
|
|
;
|
|
|
private Integer type;
|
|
private String value;
|
|
|
private AttachmentType(Integer type, String value) {
|
this.type = type;
|
this.value = value;
|
}
|
|
public Integer getType() {
|
return type;
|
}
|
|
public void setType(Integer type) {
|
this.type = type;
|
}
|
|
public String getValue() {
|
return value;
|
}
|
|
public void setValue(String value) {
|
this.value = value;
|
}
|
|
|
public static String getAttachmentValue(Integer type) {
|
for (AttachmentType attachmentType : AttachmentType.values()) {
|
if (attachmentType.getType().equals(type)) {
|
return attachmentType.getValue();
|
}
|
}
|
return null;
|
}
|
|
|
|
}
|