refactor: remove agent ID references from AI workflow handling and related components

This commit is contained in:
mlogclub
2026-07-25 15:32:55 +08:00
parent 7b86fd1f09
commit 1663db7f24
14 changed files with 13 additions and 302 deletions
@@ -5,12 +5,9 @@ import "agent-desk/internal/ai/workflow/dsl"
type CreateAIWorkflowRequest struct {
Name string `json:"name"`
Description string `json:"description"`
AgentID int64 `json:"agentId"`
Definition dsl.Definition `json:"definition"`
}
type SaveAIWorkflowRequest = CreateAIWorkflowRequest
type UpdateAIWorkflowRequest struct {
ID int64 `json:"id"`
CreateAIWorkflowRequest
@@ -26,7 +23,6 @@ type ValidateAIWorkflowRequest struct {
type PublishAIWorkflowRequest struct {
WorkflowID int64 `json:"workflowId"`
AgentID int64 `json:"agentId"`
Definition dsl.Definition `json:"definition"`
}
@@ -11,7 +11,6 @@ type AIWorkflowResponse struct {
ID int64 `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
AgentID int64 `json:"agentId"`
Status enums.Status `json:"status"`
DraftDefinition dsl.Definition `json:"draftDefinition"`
PublishedVersionID int64 `json:"publishedVersionId"`