同步闭源版本代码:自动执行升级SQL、历史记录改为数据库存储、去掉git操作,优化代码结构,去掉不需要的文件

This commit is contained in:
暮光:城中城
2023-01-05 20:13:16 +08:00
parent fe1da585ac
commit b8dcdf93a1
109 changed files with 2469 additions and 8158 deletions

View File

@@ -0,0 +1,39 @@
package com.zyplayer.doc.core.enums;
import java.util.Map;
import java.util.stream.Collectors;
import java.util.stream.Stream;
/**
* 系统配置枚举
*
* @author 暮光:城中城
* @since 2022-10-20
*/
public enum SystemConfigEnum {
// 系统相关
SYSTEM_VERSION("system_version", "系统当前的版本号"),
;
private String key;
private String desc;
SystemConfigEnum(String key, String desc) {
this.key = key;
this.desc = desc;
}
private static final Map<String, SystemConfigEnum> VALUE_MAP = Stream.of(values()).collect(Collectors.toMap(SystemConfigEnum::getKey, (treeType) -> treeType));
public static SystemConfigEnum get(String code) {
return VALUE_MAP.get(code);
}
public String getKey() {
return key;
}
public String getDesc() {
return desc;
}
}

View File

@@ -1,5 +1,8 @@
package com.zyplayer.doc.core.util;
import java.util.LinkedList;
import java.util.List;
/**
* zyplayer-doc版本号
*
@@ -7,5 +10,12 @@ package com.zyplayer.doc.core.util;
* @since 2021-06-06
*/
public class ZyplayerDocVersion {
public static final String version = "1.1.1";
public static final String version = "1.1.2";
/**
* 每次升级必须添加一条记录用于执行它的升级SQL
*/
public static final List<String> versionUpgrade = new LinkedList<String>() {{
add("1.1.2");
}};
}