From 19399378c1578aaf556b9685dfe890146cf2dccc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E5=AE=81?= <1772105645@qq.com> Date: Thu, 21 May 2026 14:30:02 +0800 Subject: [PATCH] feat: complete DTOs with Config, EdgeType, Condition, Order fields --- .../WorkflowDefinitions/DTOs/WorkflowDefinitionDTOs.cs | 6 +++++- .../Queries/GetWorkflowDefinitionByIdQuery.cs | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/Workflow.Application/Features/WorkflowDefinitions/DTOs/WorkflowDefinitionDTOs.cs b/src/Workflow.Application/Features/WorkflowDefinitions/DTOs/WorkflowDefinitionDTOs.cs index 39ef5c9..aee0383 100644 --- a/src/Workflow.Application/Features/WorkflowDefinitions/DTOs/WorkflowDefinitionDTOs.cs +++ b/src/Workflow.Application/Features/WorkflowDefinitions/DTOs/WorkflowDefinitionDTOs.cs @@ -30,6 +30,7 @@ public record WorkflowNodeDto( Guid Id, NodeType NodeType, string Name, + string? Config, int PositionX, int PositionY ); @@ -38,5 +39,8 @@ public record WorkflowEdgeDto( Guid Id, Guid SourceNodeId, Guid TargetNodeId, - string? Label + EdgeType EdgeType, + string? Label, + string? Condition, + int Order ); diff --git a/src/Workflow.Application/Features/WorkflowDefinitions/Queries/GetWorkflowDefinitionByIdQuery.cs b/src/Workflow.Application/Features/WorkflowDefinitions/Queries/GetWorkflowDefinitionByIdQuery.cs index debe501..e9131b9 100644 --- a/src/Workflow.Application/Features/WorkflowDefinitions/Queries/GetWorkflowDefinitionByIdQuery.cs +++ b/src/Workflow.Application/Features/WorkflowDefinitions/Queries/GetWorkflowDefinitionByIdQuery.cs @@ -32,6 +32,7 @@ public class GetWorkflowDefinitionByIdQueryHandler(WorkflowDbContext db) n.Id, n.NodeType, n.Name, + n.Config, n.PositionX, n.PositionY )).ToList(), @@ -39,7 +40,10 @@ public class GetWorkflowDefinitionByIdQueryHandler(WorkflowDbContext db) e.Id, e.SourceNodeId, e.TargetNodeId, - e.Label + e.EdgeType, + e.Label, + e.Condition, + e.Order )).ToList() ); }