Skip to content

Commit

Permalink
Merge pull request #136 from z913123456/patch-1
Browse files Browse the repository at this point in the history
Update template.md
  • Loading branch information
kevwan authored Sep 8, 2024
2 parents ad34c51 + 48199d8 commit 5e7ff69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorials/customization/template.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func {{.HandlerName}}(svcCtx *svc.ServiceContext) http.HandlerFunc {
return
}{{end}}

l := logic.New{{.LogicType}}(r.Context(), svcCtx)
l := {{.LogicName}}.New{{.LogicType}}(r.Context(), svcCtx)
{{if .HasResp}}resp, {{end}}err := l.{{.Call}}({{if .HasRequest}}&req{{end}})
{{if .HasResp}}response.Response(w, resp, err){{else}}response.Response(w, nil, err){{end}}//

Expand Down

0 comments on commit 5e7ff69

Please sign in to comment.