2026-06-10 14:23:55 +08:00
|
|
|
|
package entity
|
|
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
|
"ai-agent/workflow/consts/node"
|
|
|
|
|
|
|
2026-06-11 09:16:53 +08:00
|
|
|
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
2026-06-10 14:23:55 +08:00
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
type NodePrompt struct {
|
|
|
|
|
|
beans.SQLBaseDO `orm:",inherit"` // 嵌入基础字段:Id, TenantId, Creator, CreatedAt, Updater, UpdatedAt, DeletedAt
|
|
|
|
|
|
|
|
|
|
|
|
NodeType node.NodeType `orm:"node_type" json:"nodeType"`
|
|
|
|
|
|
Prompt string `orm:"prompt" json:"prompt"`
|
|
|
|
|
|
SourceType node.SourceType `orm:"source_type" json:"sourceType"`
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type nodePromptCol struct {
|
|
|
|
|
|
beans.SQLBaseCol
|
|
|
|
|
|
NodeType string
|
|
|
|
|
|
Prompt string
|
|
|
|
|
|
SourceType string
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var NodePromptCol = nodePromptCol{
|
|
|
|
|
|
SQLBaseCol: beans.DefSQLBaseCol,
|
|
|
|
|
|
NodeType: "node_type",
|
|
|
|
|
|
Prompt: "prompt",
|
|
|
|
|
|
SourceType: "source_type",
|
|
|
|
|
|
}
|