fix: goctl genhandler duplicate rest/httpx & goctl genhandler template support custom import httpx package (#2152)

This commit is contained in:
杨圆建
2022-07-19 23:24:47 +08:00
committed by GitHub
parent 2a6f801978
commit bc85eaa9b1
2 changed files with 21 additions and 20 deletions

View File

@@ -3,8 +3,8 @@ package {{.PkgName}}
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
{{.ImportPackages}}
{{.ImportHttpxPackage}}
)
func {{.HandlerName}}(svcCtx *svc.ServiceContext) http.HandlerFunc {