diff --git a/README.md b/README.md index b426c4f..04c53a6 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,11 @@ go mod tidy # 开发 +## 安装wire +``` shell +go install github.com/google/wire/cmd/wire@latest +``` + ## dao生成 #### 通过gentool生成,model和query目录下的文件 diff --git a/cmd/wire.go b/cmd/wire.go index ea5a0ad..29abb88 100644 --- a/cmd/wire.go +++ b/cmd/wire.go @@ -15,7 +15,6 @@ import ( // wireApp init kratos application. func wireApp(log *zap.Logger, q *query.Query) (*server.EcpmApp, func(), error) { panic(wire.Build( - wire.Value(q), server.NewEcpmApp, ecpm_httpserver.NewHttpServer, ))