Browse Source

add:打开视频、大模型打开视频指令同步

zhongwei
haungxing 7 months ago
parent
commit
a187a5c7e0
  1. 3
      hzims-service-api/big-model-api/src/main/java/com/hnac/hzims/bigmodel/interactive/constants/FunctionConstants.java
  2. 20
      hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/interactive/constants/ExtraTypeEnum.java
  3. 4
      hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/interactive/service/impl/ExtraResolveStrategyService.java

3
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 { enum TypeEnum {
/**跳转页面**/ /**跳转页面**/
JUMP("1"), JUMP("1"),
PARAMS("2") LINK("2"),
PARAMS("3")
; ;
@Getter @Getter
private String type; private String type;

20
hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/interactive/constants/ExtraTypeEnum.java

@ -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;
}

4
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.JSON;
import com.alibaba.fastjson.JSONObject; 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.FuncRouteEnum;
import com.hnac.hzims.bigmodel.interactive.constants.FunctionConstants;
import com.hnac.hzims.bigmodel.interactive.vo.ExtraVO; import com.hnac.hzims.bigmodel.interactive.vo.ExtraVO;
import org.springblade.core.tool.utils.StringUtil; import org.springblade.core.tool.utils.StringUtil;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -45,7 +45,7 @@ public class ExtraResolveStrategyService {
String faultName = data.getString("fault_name"); String faultName = data.getString("fault_name");
result.setLabel(faultName); result.setLabel(faultName);
// TODO 拼接诊断链接 // TODO 拼接诊断链接
result.setType(ExtraTypeEnum.LINK.getType()); result.setType(FunctionConstants.TypeEnum.LINK.getType());
return result; return result;
} }
} }

Loading…
Cancel
Save