mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-07-27 21:00:59 +08:00
新增播放器配置
This commit is contained in:
parent
85f7afa6e8
commit
0cfac84092
@ -18,43 +18,68 @@ import java.util.*;
|
|||||||
public class AppConfigCheck implements ApplicationRunner {
|
public class AppConfigCheck implements ApplicationRunner {
|
||||||
|
|
||||||
private static final HashMap<String, AppConfig[]> configs = new HashMap<>() {{
|
private static final HashMap<String, AppConfig[]> configs = new HashMap<>() {{
|
||||||
put("系统", new AppConfig[]{
|
put("系统", new AppConfig[]{new AppConfig() {{
|
||||||
new AppConfig() {{
|
|
||||||
setName("网站名");
|
setName("网站名");
|
||||||
setSort(10);
|
setSort(10);
|
||||||
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_INPUT);
|
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_INPUT);
|
||||||
setKeyName("system.name");
|
setKeyName("system.name");
|
||||||
setKeyValue("");
|
setKeyValue("");
|
||||||
}},
|
}}, new AppConfig() {{
|
||||||
new AppConfig() {{
|
|
||||||
setName("Logo");
|
setName("Logo");
|
||||||
setSort(20);
|
setSort(20);
|
||||||
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_IMAGE);
|
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_IMAGE);
|
||||||
setKeyName("system.logo");
|
setKeyName("system.logo");
|
||||||
setKeyValue("");
|
setKeyValue("");
|
||||||
}},
|
}}, new AppConfig() {{
|
||||||
new AppConfig() {{
|
|
||||||
setName("API访问地址");
|
setName("API访问地址");
|
||||||
setSort(30);
|
setSort(30);
|
||||||
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_INPUT);
|
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_INPUT);
|
||||||
setKeyName("system.api_url");
|
setKeyName("system.api_url");
|
||||||
setKeyValue("");
|
setKeyValue("");
|
||||||
}},
|
}}, new AppConfig() {{
|
||||||
new AppConfig() {{
|
|
||||||
setName("PC端口访问地址");
|
setName("PC端口访问地址");
|
||||||
setSort(40);
|
setSort(40);
|
||||||
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_INPUT);
|
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_INPUT);
|
||||||
setKeyName("system.pc_url");
|
setKeyName("system.pc_url");
|
||||||
setKeyValue("");
|
setKeyValue("");
|
||||||
}},
|
}}, new AppConfig() {{
|
||||||
new AppConfig() {{
|
|
||||||
setName("H5端口访问地址");
|
setName("H5端口访问地址");
|
||||||
setSort(50);
|
setSort(50);
|
||||||
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_INPUT);
|
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_INPUT);
|
||||||
setKeyName("system.h5_url");
|
setKeyName("system.h5_url");
|
||||||
setKeyValue("");
|
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
|
@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_INPUT = "input";
|
||||||
public final static String APP_CONFIG_FIELD_TYPE_TEXT = "text";
|
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_SELECT = "select";
|
||||||
|
public final static String APP_CONFIG_FIELD_TYPE_SWITCH = "switch";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user