feat: complete DTOs with Config, EdgeType, Condition, Order fields
This commit is contained in:
parent
d9cf703615
commit
19399378c1
@ -30,6 +30,7 @@ public record WorkflowNodeDto(
|
|||||||
Guid Id,
|
Guid Id,
|
||||||
NodeType NodeType,
|
NodeType NodeType,
|
||||||
string Name,
|
string Name,
|
||||||
|
string? Config,
|
||||||
int PositionX,
|
int PositionX,
|
||||||
int PositionY
|
int PositionY
|
||||||
);
|
);
|
||||||
@ -38,5 +39,8 @@ public record WorkflowEdgeDto(
|
|||||||
Guid Id,
|
Guid Id,
|
||||||
Guid SourceNodeId,
|
Guid SourceNodeId,
|
||||||
Guid TargetNodeId,
|
Guid TargetNodeId,
|
||||||
string? Label
|
EdgeType EdgeType,
|
||||||
|
string? Label,
|
||||||
|
string? Condition,
|
||||||
|
int Order
|
||||||
);
|
);
|
||||||
|
|||||||
@ -32,6 +32,7 @@ public class GetWorkflowDefinitionByIdQueryHandler(WorkflowDbContext db)
|
|||||||
n.Id,
|
n.Id,
|
||||||
n.NodeType,
|
n.NodeType,
|
||||||
n.Name,
|
n.Name,
|
||||||
|
n.Config,
|
||||||
n.PositionX,
|
n.PositionX,
|
||||||
n.PositionY
|
n.PositionY
|
||||||
)).ToList(),
|
)).ToList(),
|
||||||
@ -39,7 +40,10 @@ public class GetWorkflowDefinitionByIdQueryHandler(WorkflowDbContext db)
|
|||||||
e.Id,
|
e.Id,
|
||||||
e.SourceNodeId,
|
e.SourceNodeId,
|
||||||
e.TargetNodeId,
|
e.TargetNodeId,
|
||||||
e.Label
|
e.EdgeType,
|
||||||
|
e.Label,
|
||||||
|
e.Condition,
|
||||||
|
e.Order
|
||||||
)).ToList()
|
)).ToList()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user