Files
ai-agent/workflow/model/entity/flow_template.go
2026-06-10 15:29:21 +08:00

42 lines
1.6 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package entity
import (
"ai-agent/workflow/consts/flow"
"gitea.redpowerfuture.com/red-future/common/beans"
)
type FlowTemplate struct {
beans.SQLBaseDO `orm:",inherit"` // 嵌入基础字段Id, TenantId, Creator, CreatedAt, Updater, UpdatedAt, DeletedAt
// 业务字段
FlowTemplateName string `orm:"flow_template_name" json:"flowTemplateName" description:"流程模板名称"`
Description string `orm:"description" json:"description" description:"流程描述"`
CategoryCode string `orm:"category_code" json:"categoryCode" description:"流程分类"`
CategoryName string `orm:"category_name" json:"categoryName" description:"流程分类名称"`
FlowContent *FlowInfo `orm:"flow_content" json:"flowContent" description:"流程内容"`
NodeInputParams []*FlowNode `orm:"node_input_params" json:"nodeInputParams" description:"节点输入参数"`
Status flow.FlowTemplateStatus `orm:"status" json:"status" description:"流程状态1启用/0停用"`
}
type flowTemplateCol struct {
beans.SQLBaseCol
FlowTemplateName string
Description string
CategoryCode string
CategoryName string
FlowContent string
NodeInputParams string
Status string
}
var FlowTemplateCol = flowTemplateCol{
SQLBaseCol: beans.DefSQLBaseCol,
FlowTemplateName: "flow_template_name",
Description: "description",
CategoryCode: "category_code",
CategoryName: "category_name",
FlowContent: "flow_content",
NodeInputParams: "node_input_params",
Status: "status",
}