feat: implement service

This commit is contained in:
Oarkflow
2025-08-07 21:04:11 +05:45
parent c324140ae7
commit 1128ae76b7
12 changed files with 1757 additions and 5 deletions

View File

@@ -66,7 +66,8 @@ func loginDAG() *dag.DAG {
}, mq.WithSyncMode(true), mq.WithLogger(nil))
renderHTML := handlers.NewRenderHTMLNode("render-html")
renderHTML.Payload.Data = map[string]any{
"schema_file": "login.json",
"schema_file": "login.json",
"template_file": "app/templates/basic.html",
}
flow.AddNode(dag.Page, "Login Form", "LoginForm", renderHTML, true)
flow.AddNode(dag.Function, "Validate Login", "ValidateLogin", &ValidateLoginNode{})
@@ -87,7 +88,8 @@ func main() {
renderHTML := handlers.NewRenderHTMLNode("render-html")
renderHTML.Payload.Data = map[string]any{
"schema_file": "schema.json",
"schema_file": "schema.json",
"template_file": "app/templates/basic.html",
}
flow.AddDAGNode(dag.Page, "Check Login", "Login", loginDAG(), true)
flow.AddNode(dag.Page, "Contact Form", "ContactForm", renderHTML)