|
|
|
@ -15,7 +15,7 @@ func {{.HandlerName}}(svcCtx *svc.ServiceContext) http.HandlerFunc {
|
|
|
|
|
return func(w http.ResponseWriter, r *http.Request) {
|
|
|
|
|
{{if .TransErr}}const transErr = true{{else}}const transErr = false{{end}}
|
|
|
|
|
{{if .HasRequest}}var req types.{{.RequestType}}
|
|
|
|
|
if err := httpx.Parse(r, &req, true); err != nil {
|
|
|
|
|
if err := httpx.Parse(r, &req); err != nil {
|
|
|
|
|
statusz.ResponseHandler(r, w, transErr, nil, err)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|