mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-08-23 20:27:04 +00:00
perf[storage]: ResourceEnum增加获取所有类型的资源文件方法
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
package com.zfoo.storage.model.resource;
|
||||
|
||||
import com.zfoo.protocol.util.AssertionUtils;
|
||||
import com.zfoo.protocol.util.StringUtils;
|
||||
import org.springframework.lang.Nullable;
|
||||
|
||||
import java.util.HashMap;
|
||||
@@ -58,6 +59,10 @@ public enum ResourceEnum {
|
||||
return typeMap.containsKey(type);
|
||||
}
|
||||
|
||||
public static String typesToString() {
|
||||
return StringUtils.joinWith(StringUtils.SPACE, typeMap.values().toArray());
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user