fix: goctl genhandler duplicate rest/httpx & goctl genhandler template support custom import httpx package (#2152)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user