mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-07-25 11:19:40 +08:00
新增播放器配置
This commit is contained in:
parent
85f7afa6e8
commit
0cfac84092
@ -18,43 +18,68 @@ import java.util.*;
|
||||
public class AppConfigCheck implements ApplicationRunner {
|
||||
|
||||
private static final HashMap<String, AppConfig[]> configs = new HashMap<>() {{
|
||||
put("系统", new AppConfig[]{
|
||||
new AppConfig() {{
|
||||
setName("网站名");
|
||||
setSort(10);
|
||||
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_INPUT);
|
||||
setKeyName("system.name");
|
||||
setKeyValue("");
|
||||
}},
|
||||
new AppConfig() {{
|
||||
setName("Logo");
|
||||
setSort(20);
|
||||
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_IMAGE);
|
||||
setKeyName("system.logo");
|
||||
setKeyValue("");
|
||||
}},
|
||||
new AppConfig() {{
|
||||
setName("API访问地址");
|
||||
setSort(30);
|
||||
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_INPUT);
|
||||
setKeyName("system.api_url");
|
||||
setKeyValue("");
|
||||
}},
|
||||
new AppConfig() {{
|
||||
setName("PC端口访问地址");
|
||||
setSort(40);
|
||||
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_INPUT);
|
||||
setKeyName("system.pc_url");
|
||||
setKeyValue("");
|
||||
}},
|
||||
new AppConfig() {{
|
||||
setName("H5端口访问地址");
|
||||
setSort(50);
|
||||
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_INPUT);
|
||||
setKeyName("system.h5_url");
|
||||
setKeyValue("");
|
||||
}},
|
||||
});
|
||||
put("系统", new AppConfig[]{new AppConfig() {{
|
||||
setName("网站名");
|
||||
setSort(10);
|
||||
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_INPUT);
|
||||
setKeyName("system.name");
|
||||
setKeyValue("");
|
||||
}}, new AppConfig() {{
|
||||
setName("Logo");
|
||||
setSort(20);
|
||||
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_IMAGE);
|
||||
setKeyName("system.logo");
|
||||
setKeyValue("");
|
||||
}}, new AppConfig() {{
|
||||
setName("API访问地址");
|
||||
setSort(30);
|
||||
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_INPUT);
|
||||
setKeyName("system.api_url");
|
||||
setKeyValue("");
|
||||
}}, new AppConfig() {{
|
||||
setName("PC端口访问地址");
|
||||
setSort(40);
|
||||
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_INPUT);
|
||||
setKeyName("system.pc_url");
|
||||
setKeyValue("");
|
||||
}}, new AppConfig() {{
|
||||
setName("H5端口访问地址");
|
||||
setSort(50);
|
||||
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_INPUT);
|
||||
setKeyName("system.h5_url");
|
||||
setKeyValue("");
|
||||
}},});
|
||||
put("播放器配置", new AppConfig[]{new AppConfig() {{
|
||||
setName("播放器封面");
|
||||
setSort(10);
|
||||
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_IMAGE);
|
||||
setKeyName("player.poster");
|
||||
setKeyValue("");
|
||||
}}, new AppConfig() {{
|
||||
setName("启用跑马灯");
|
||||
setSort(20);
|
||||
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_SWITCH);
|
||||
setKeyName("player.is_enabled_bullet_secret");
|
||||
setKeyValue("0");
|
||||
}}, new AppConfig() {{
|
||||
setName("跑马灯内容");
|
||||
setSort(30);
|
||||
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_TEXT);
|
||||
setKeyName("player.bullet_secret_text");
|
||||
setKeyValue("");
|
||||
}}, new AppConfig() {{
|
||||
setName("跑马灯颜色");
|
||||
setSort(40);
|
||||
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_TEXT);
|
||||
setKeyName("player.bullet_secret_color");
|
||||
setKeyValue("");
|
||||
}}, new AppConfig() {{
|
||||
setName("跑马灯透明度");
|
||||
setSort(50);
|
||||
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_TEXT);
|
||||
setKeyName("player.bullet_secret_opacity");
|
||||
setKeyValue("1");
|
||||
}},});
|
||||
}};
|
||||
|
||||
@Autowired
|
||||
|
@ -70,5 +70,6 @@ public class BackendConstant {
|
||||
public final static String APP_CONFIG_FIELD_TYPE_INPUT = "input";
|
||||
public final static String APP_CONFIG_FIELD_TYPE_TEXT = "text";
|
||||
public final static String APP_CONFIG_FIELD_TYPE_SELECT = "select";
|
||||
public final static String APP_CONFIG_FIELD_TYPE_SWITCH = "switch";
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user