wire
This commit is contained in:
parent
a74d1a6f8e
commit
f5e81e9c94
@ -13,6 +13,11 @@ go mod tidy
|
||||
|
||||
# 开发
|
||||
|
||||
## 安装wire
|
||||
``` shell
|
||||
go install github.com/google/wire/cmd/wire@latest
|
||||
```
|
||||
|
||||
## dao生成
|
||||
#### 通过gentool生成,model和query目录下的文件
|
||||
|
||||
|
@ -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,
|
||||
))
|
||||
|
Loading…
x
Reference in New Issue
Block a user