package node import ( "ai-agent/workflow/consts/node" "github.com/gogf/gf/v2/frame/g" ) type WorkflowNodeTreeReq struct { g.Meta `path:"/list" method:"get" tags:"节点组件库管理" summary:"节点组件库列表" dc:"节点组件库列表"` Creator string `json:"creator"` } type WorkflowNodeTreeRes struct { Groups []node.NodeGroupItem `json:"groups"` } type TypeGroup struct { TypeId int `json:"typeId"` Type string `json:"type"` Items []ModelItem `json:"items"` } type ModelItem struct { ID int64 `json:"id"` Name string `json:"name"` Form []node.NodeFormField `json:"form"` } type ModelTypeResponse struct { Type map[int]string `json:"type"` // key 自动解析为整数 100/200/300... }