16 lines
386 B
Go
16 lines
386 B
Go
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)
|
|
}
|