From a187a5c7e070cb7519fe9a4d8344c6ce69900239 Mon Sep 17 00:00:00 2001 From: haungxing <1203316822@qq.com> Date: Thu, 9 May 2024 11:48:32 +0800 Subject: [PATCH] =?UTF-8?q?add:=E6=89=93=E5=BC=80=E8=A7=86=E9=A2=91?= =?UTF-8?q?=E3=80=81=E5=A4=A7=E6=A8=A1=E5=9E=8B=E6=89=93=E5=BC=80=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E6=8C=87=E4=BB=A4=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../interactive/constants/FunctionConstants.java | 3 ++- .../interactive/constants/ExtraTypeEnum.java | 20 -------------------- .../service/impl/ExtraResolveStrategyService.java | 4 ++-- 3 files changed, 4 insertions(+), 23 deletions(-) delete mode 100644 hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/interactive/constants/ExtraTypeEnum.java diff --git a/hzims-service-api/big-model-api/src/main/java/com/hnac/hzims/bigmodel/interactive/constants/FunctionConstants.java b/hzims-service-api/big-model-api/src/main/java/com/hnac/hzims/bigmodel/interactive/constants/FunctionConstants.java index abc1038..958e3ba 100644 --- a/hzims-service-api/big-model-api/src/main/java/com/hnac/hzims/bigmodel/interactive/constants/FunctionConstants.java +++ b/hzims-service-api/big-model-api/src/main/java/com/hnac/hzims/bigmodel/interactive/constants/FunctionConstants.java @@ -16,7 +16,8 @@ public interface FunctionConstants { enum TypeEnum { /**跳转页面**/ JUMP("1"), - PARAMS("2") + LINK("2"), + PARAMS("3") ; @Getter private String type; diff --git a/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/interactive/constants/ExtraTypeEnum.java b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/interactive/constants/ExtraTypeEnum.java deleted file mode 100644 index 96a4661..0000000 --- a/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/interactive/constants/ExtraTypeEnum.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.hnac.hzims.bigmodel.interactive.constants; - -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * @Author: huangxing - * @Date: 2024/05/08 16:49 - */ -@AllArgsConstructor -public enum ExtraTypeEnum { - /**打开页面**/ - OPEN_PAGE("1"), - /**链接**/ - LINK("2") - ; - @Getter - private final String type; - -} diff --git a/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/interactive/service/impl/ExtraResolveStrategyService.java b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/interactive/service/impl/ExtraResolveStrategyService.java index ddd33ea..9affdac 100644 --- a/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/interactive/service/impl/ExtraResolveStrategyService.java +++ b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/interactive/service/impl/ExtraResolveStrategyService.java @@ -2,8 +2,8 @@ package com.hnac.hzims.bigmodel.interactive.service.impl; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; -import com.hnac.hzims.bigmodel.interactive.constants.ExtraTypeEnum; import com.hnac.hzims.bigmodel.interactive.constants.FuncRouteEnum; +import com.hnac.hzims.bigmodel.interactive.constants.FunctionConstants; import com.hnac.hzims.bigmodel.interactive.vo.ExtraVO; import org.springblade.core.tool.utils.StringUtil; import org.springframework.stereotype.Service; @@ -45,7 +45,7 @@ public class ExtraResolveStrategyService { String faultName = data.getString("fault_name"); result.setLabel(faultName); // TODO 拼接诊断链接 - result.setType(ExtraTypeEnum.LINK.getType()); + result.setType(FunctionConstants.TypeEnum.LINK.getType()); return result; } }