mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-23 11:09:29 +08:00
minio-token返回resource_type
This commit is contained in:
@@ -7,7 +7,7 @@ public class BackendConstant {
|
||||
|
||||
public final static String[] UN_AUTH_URI_WHITELIST = {"/backend/v1/system/image-captcha", "/backend/v1/auth/login",};
|
||||
|
||||
public final static String[] RESOURCE_EXT_WHITELIST = {"IMAGE", "PDF", "VIDEO", "WORD", "PPT"};
|
||||
public final static String[] RESOURCE_TYPE_WHITELIST = {"IMAGE", "PDF", "VIDEO", "WORD", "PPT"};
|
||||
public final static HashMap<String, String> RESOURCE_EXT_2_CONTENT_TYPE = new HashMap<>() {{
|
||||
put("png", "image/png");
|
||||
put("jpg", "image/jpg");
|
||||
@@ -20,6 +20,18 @@ public class BackendConstant {
|
||||
put("ppt", "application/vnd.ms-powerpoint");
|
||||
put("pptx", "application/vnd.openxmlformats-officedocument.presentationml.presentation");
|
||||
}};
|
||||
public final static HashMap<String, String> RESOURCE_EXT_2_TYPE = new HashMap<>() {{
|
||||
put("png", "IMAGE");
|
||||
put("jpg", "IMAGE");
|
||||
put("jpeg", "IMAGE");
|
||||
put("gif", "IMAGE");
|
||||
put("pdf", "PDF");
|
||||
put("mp4", "VIDEO");
|
||||
put("doc", "WORD");
|
||||
put("docx", "WORD");
|
||||
put("ppt", "PPT");
|
||||
put("pptx", "PPT");
|
||||
}};
|
||||
|
||||
public final static String[] RESOURCE_DISK_WHITELIST = {"MINIO"};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user