This commit is contained in:
xiabin 2025-01-15 18:04:40 +08:00
parent a74d1a6f8e
commit f5e81e9c94
2 changed files with 5 additions and 1 deletions

View File

@ -13,6 +13,11 @@ go mod tidy
# 开发 # 开发
## 安装wire
``` shell
go install github.com/google/wire/cmd/wire@latest
```
## dao生成 ## dao生成
#### 通过gentool生成,model和query目录下的文件 #### 通过gentool生成,model和query目录下的文件

View File

@ -15,7 +15,6 @@ import (
// wireApp init kratos application. // wireApp init kratos application.
func wireApp(log *zap.Logger, q *query.Query) (*server.EcpmApp, func(), error) { func wireApp(log *zap.Logger, q *query.Query) (*server.EcpmApp, func(), error) {
panic(wire.Build( panic(wire.Build(
wire.Value(q),
server.NewEcpmApp, server.NewEcpmApp,
ecpm_httpserver.NewHttpServer, ecpm_httpserver.NewHttpServer,
)) ))