chore:use struct pointer (#1538)

This commit is contained in:
mlr3000
2022-02-15 11:34:48 +08:00
committed by GitHub
parent 493e3bcf4b
commit 50b1928502
2 changed files with 4 additions and 4 deletions

View File

@@ -34,7 +34,7 @@ func {{.HandlerName}}(svcCtx *svc.ServiceContext) http.HandlerFunc {
}
{{end}}l := {{.LogicName}}.New{{.LogicType}}(r.Context(), svcCtx)
{{if .HasResp}}resp, {{end}}err := l.{{.Call}}({{if .HasRequest}}req{{end}})
{{if .HasResp}}resp, {{end}}err := l.{{.Call}}({{if .HasRequest}}&req{{end}})
if err != nil {
httpx.Error(w, err)
} else {