feat: 新增工作流执行模块
新增流程执行记录的实体、DTO、DAO、控制器和服务层,支持工作流的执行、回调及结果树状列表查询;同时更新服务名称为 ai-agent。
This commit is contained in:
15
workflow/controller/node/node_library_controller.go
Normal file
15
workflow/controller/node/node_library_controller.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package node
|
||||
|
||||
import (
|
||||
nodeDto "ai-agent/workflow/model/dto/node"
|
||||
nodeService "ai-agent/workflow/service/node"
|
||||
"context"
|
||||
)
|
||||
|
||||
type nodeLibrary struct{}
|
||||
|
||||
var NodeLibrary = new(nodeLibrary)
|
||||
|
||||
func (c *nodeLibrary) List(ctx context.Context, req *nodeDto.WorkflowNodeTreeReq) (res *nodeDto.WorkflowNodeTreeRes, err error) {
|
||||
return nodeService.NodeLibraryService.GetNodeLibrary(ctx, req)
|
||||
}
|
||||
Reference in New Issue
Block a user