mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-26 04:39:26 +08:00
常量优化
This commit is contained in:
@@ -7,7 +7,10 @@ import java.util.List;
|
||||
public class BackendConstant {
|
||||
public final static String SUPER_ADMIN_ROLE = "super-role";
|
||||
|
||||
public final static String[] UN_AUTH_URI_WHITELIST = {"/backend/v1/system/image-captcha", "/backend/v1/auth/login",};
|
||||
public final static List<String> UN_AUTH_URI_WHITELIST = new ArrayList<>() {{
|
||||
add("/backend/v1/system/image-captcha");
|
||||
add("/backend/v1/auth/login");
|
||||
}};
|
||||
|
||||
public final static String RESOURCE_TYPE_VIDEO = "VIDEO";
|
||||
public final static String RESOURCE_TYPE_IMAGE = "IMAGE";
|
||||
|
||||
@@ -1,14 +1,17 @@
|
||||
package xyz.playedu.api.constant;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author 杭州白书科技有限公司
|
||||
* @create 2023/3/13 14:07
|
||||
*/
|
||||
public class FrontendConstant {
|
||||
|
||||
public final static String[] UN_AUTH_URI_WHITELIST = {
|
||||
"/api/v1/system/config",
|
||||
"/api/v1/system/image-captcha",
|
||||
};
|
||||
public final static List<String> UN_AUTH_URI_WHITELIST = new ArrayList<>() {{
|
||||
add("/api/v1/system/config");
|
||||
add("/api/v1/system/image-captcha");
|
||||
}};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user