This commit is contained in:
77
2024-03-26 21:54:18 +08:00
parent ac473b733f
commit 9a5db539bf
9 changed files with 242 additions and 0 deletions

View File

@@ -25,4 +25,20 @@ public enum YxImTypeEnum {
this.code = code;
this.text = text;
}
public boolean isFileType(){
if(this.getCode().equals(1) || this.getCode().equals(2) || this.getCode().equals(3)){
return true;
}
return false;
}
public static YxImTypeEnum getByCode(Integer code) {
for (YxImTypeEnum value : values()) {
if (value.code.equals(code)) {
return value;
}
}
return null;
}
}