From f5e81e9c941e92b140c8b08b02ea13f8d32537ca Mon Sep 17 00:00:00 2001 From: xiabin Date: Wed, 15 Jan 2025 18:04:40 +0800 Subject: [PATCH] wire --- README.md | 5 +++++ cmd/wire.go | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) 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, ))