From da3db6565b7e9bdc050d2f4c2a650d35e6cc9e4b Mon Sep 17 00:00:00 2001 From: "liujian.0502" Date: Fri, 3 Jan 2025 18:04:38 +0800 Subject: [PATCH] feat(devops): add InputType,OutputType and GenLocalStateType in GraphSchema --- devops/model/canvas.go | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/devops/model/canvas.go b/devops/model/canvas.go index 7a9c0f6..eac59e0 100644 --- a/devops/model/canvas.go +++ b/devops/model/canvas.go @@ -54,8 +54,15 @@ type GraphSchema struct { Branches []*Branch `json:"branches"` // graph config option - NodeTriggerMode NodeTriggerMode `json:"node_trigger_mode"` - GenLocalStateMethod *string `json:"gen_local_state_method,omitempty"` + NodeTriggerMode NodeTriggerMode `json:"node_trigger_mode"` + GenLocalState *GenLocalState `json:"gen_local_state,omitempty"` + InputType string `json:"input_type"` + OutputType string `json:"output_type"` +} + +type GenLocalState struct { + Method string `json:"method"` + Type string `json:"type"` } type Node struct { @@ -176,6 +183,8 @@ type ComponentSchema struct { type LambdaExtra struct { HasOption bool `json:"has_option"` InteractionType InteractionType `json:"interaction_type"` + InputType string `json:"input_type"` + OutputType string `json:"output_type"` } type ComponentImplType string