diff --git a/tools/goctl/rpc/generator/gencall.go b/tools/goctl/rpc/generator/gencall.go index 1e97f932..85a37f02 100644 --- a/tools/goctl/rpc/generator/gencall.go +++ b/tools/goctl/rpc/generator/gencall.go @@ -18,15 +18,15 @@ import ( const ( callTemplateText = `{{.head}} - package {{.filePackage}} import ( "context" - "google.golang.org/grpc" + {{.package}} "github.com/tal-tech/go-zero/zrpc" + "google.golang.org/grpc" ) type (