feat: 添加流程执行查询接口及模型类型与节点名称优化

This commit is contained in:
2026-05-12 14:31:51 +08:00
parent 7c26914353
commit 68576b2132
5 changed files with 25 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ const (
NodeNameAudioModel = "音频"
NodeNameModel = "模型"
NodeNameMerge = "结果合并"
NodeNameJudge = "判断节点"
NodeNameJudge = "条件判断"
NodeNameForm = "表单"
NodeNameCustomNode = "自定义节点"
)
@@ -58,6 +58,11 @@ const (
NodeTypeCustomNode NodeType = "custom_node"
)
const (
ModelTypeText = 1
ModelTypeImage = 2
)
// ======================== 结构定义 ========================
type NodeFormField struct {
Value string `json:"value"`
@@ -85,6 +90,7 @@ type ModelItem struct {
type NodeItem struct {
NodeId string `json:"nodeId"`
NodeCode NodeType `json:"nodeCode"`
ModelType int `json:"modelType"`
NodeName string `json:"nodeName"` // 从常量来
SkillOption bool `json:"skillOption"`
FormConfig []NodeFormField `json:"formConfig"`