diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml
new file mode 100644
index 00000000..87eef70c
--- /dev/null
+++ b/.github/workflows/e2e.yaml
@@ -0,0 +1,21 @@
+name: E2E
+
+on:
+ pull_request:
+ branches:
+ - main
+
+concurrency:
+ group: ${{github.workflow}} - ${{github.ref}}
+ cancel-in-progress: true
+
+jobs:
+ testing:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - name: E2E Testing
+ run: |
+ sudo curl -L https://github.com/docker/compose/releases/download/v2.23.0/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
+ sudo chmod u+x /usr/local/bin/docker-compose
+ docker compose -f docker-compose-testing.yml up --build testing --exit-code-from testing --remove-orphans
diff --git a/NOTICE b/NOTICE
new file mode 100644
index 00000000..c78b4c20
--- /dev/null
+++ b/NOTICE
@@ -0,0 +1,7 @@
+ * 在使用本项目前,请您仔细阅读免责声明,确保您已充分理解其中的内容
+
+ * 本项目采用 APACHE LICENSE 2.0 开源协议,如您需要源码的开发方式,需要遵循以下几点
+
+ 1. 禁止修改或删除 LICENSE 文件。
+ 2. 不可二次开发或参与同类竞品的开发。
+ 3. 本项目可免费商业使用,商业使用请保留项目源码、出处、描述文件和作者声明等。
diff --git a/README.md b/README.md
index 6b75b081..a843f9bd 100644
--- a/README.md
+++ b/README.md
@@ -13,27 +13,27 @@
+ href="https://github.com/dromara/orion-visor/releases">
-
+ href="https://gitee.com/dromara/orion-visor/stargazers">
+
-
+ href="https://gitee.com/dromara/orion-visor/members">
+
+ href="https://github.com/dromara/orion-visor">
+ href="https://github.com/dromara/orion-visor">
- * preValid > updateFill > preValid
+ * preValid > updateFill > valid
*
* @param beforeModel beforeModel
* @param afterModel afterModel
*/
- default void doValidChain(Model beforeModel, Model afterModel) {
- // 预校验参数
- this.preValid(afterModel);
- // 更新填充
- this.updateFill(beforeModel, afterModel);
- // 校验参数
- this.valid(afterModel);
- }
+ void doValid(M beforeModel, M afterModel);
+
+ /**
+ * 解析数据
+ *
+ * @param serialModel serialModel
+ * @return model
+ */
+ M parse(String serialModel);
/**
* 转为视图配置
*
* @param model model
- * @return 视图配置
*/
- View toView(String model);
+ void toView(M model);
}
diff --git a/orion-visor-framework/orion-visor-framework-common/src/main/java/com/orion/visor/framework/common/handler/data/strategy/MapDataStrategy.java b/orion-visor-framework/orion-visor-framework-common/src/main/java/com/orion/visor/framework/common/handler/data/strategy/MapDataStrategy.java
deleted file mode 100644
index 4e92dbb4..00000000
--- a/orion-visor-framework/orion-visor-framework-common/src/main/java/com/orion/visor/framework/common/handler/data/strategy/MapDataStrategy.java
+++ /dev/null
@@ -1,22 +0,0 @@
-package com.orion.visor.framework.common.handler.data.strategy;
-
-import com.alibaba.fastjson.JSONObject;
-import com.orion.visor.framework.common.handler.data.model.GenericsDataModel;
-
-import java.util.Map;
-
-/**
- * map 数据处理策略
- *
- * @author Jiahang Li
- * @version 1.0.0
- * @since 2023/12/20 22:11
- */
-public interface MapDataStrategy
+ * 此方法不可修改
+ *
+ * @param str str
+ * @return str
+ */
+ public static String obfuscate(String str) {
+ char[] chars = str.toCharArray();
+ Arrays1.reverse(chars);
+ for (int i = 0; i < chars.length; i += 2) {
+ char temp = chars[i];
+ chars[i] = chars[i + 1];
+ chars[i + 1] = temp;
+ }
+ String res = new String(chars);
+ return new Caesars().encrypt(res);
+ }
+
+}
diff --git a/orion-visor-framework/orion-visor-framework-common/src/main/java/com/orion/visor/framework/common/utils/PathUtils.java b/orion-visor-framework/orion-visor-framework-common/src/main/java/com/orion/visor/framework/common/utils/PathUtils.java
index c7e1cfc4..61631269 100644
--- a/orion-visor-framework/orion-visor-framework-common/src/main/java/com/orion/visor/framework/common/utils/PathUtils.java
+++ b/orion-visor-framework/orion-visor-framework-common/src/main/java/com/orion/visor/framework/common/utils/PathUtils.java
@@ -47,7 +47,7 @@ public class PathUtils {
public static String getAppPath(boolean isWindows, String username) {
return getHomePath(isWindows, username)
+ "/" + AppConst.ORION
- + "/" + AppConst.ORION_VISOR;
+ + "/" + AppConst.APP_NAME;
}
/**
diff --git a/orion-visor-framework/orion-visor-framework-common/src/main/java/com/orion/visor/framework/common/utils/Requests.java b/orion-visor-framework/orion-visor-framework-common/src/main/java/com/orion/visor/framework/common/utils/Requests.java
index ce553ab7..6757dd38 100644
--- a/orion-visor-framework/orion-visor-framework-common/src/main/java/com/orion/visor/framework/common/utils/Requests.java
+++ b/orion-visor-framework/orion-visor-framework-common/src/main/java/com/orion/visor/framework/common/utils/Requests.java
@@ -41,7 +41,7 @@ public class Requests {
.map(s -> (ServletRequestAttributes) s)
.map(ServletRequestAttributes::getRequest)
.ifPresent(request -> {
- String address = Servlets.getRemoteAddr(request);
+ String address = IpUtils.getRemoteAddr(request);
identity.setAddress(address);
identity.setLocation(IpUtils.getLocation(address));
identity.setUserAgent(Servlets.getUserAgent(request));
diff --git a/orion-visor-framework/orion-visor-framework-common/src/main/resources/META-INF/spring-configuration-metadata.json b/orion-visor-framework/orion-visor-framework-common/src/main/resources/META-INF/additional-spring-configuration-metadata.json
similarity index 95%
rename from orion-visor-framework/orion-visor-framework-common/src/main/resources/META-INF/spring-configuration-metadata.json
rename to orion-visor-framework/orion-visor-framework-common/src/main/resources/META-INF/additional-spring-configuration-metadata.json
index 7b14cca3..e8e6d292 100644
--- a/orion-visor-framework/orion-visor-framework-common/src/main/resources/META-INF/spring-configuration-metadata.json
+++ b/orion-visor-framework/orion-visor-framework-common/src/main/resources/META-INF/additional-spring-configuration-metadata.json
@@ -10,7 +10,7 @@
{
"name": "orion.async.executor.core-pool-size",
"type": "java.lang.Integer",
- "description": "核心线程数量",
+ "description": "核心线程数量.",
"defaultValue": "8"
},
{
diff --git a/orion-visor-framework/orion-visor-spring-boot-starter-banner/pom.xml b/orion-visor-framework/orion-visor-spring-boot-starter-banner/pom.xml
index 0d62aa8f..a650c6d2 100644
--- a/orion-visor-framework/orion-visor-spring-boot-starter-banner/pom.xml
+++ b/orion-visor-framework/orion-visor-spring-boot-starter-banner/pom.xml
@@ -14,7 +14,7 @@