Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

通过 eagle new创建的项目的一些疑问 #166

Open
bowmansir opened this issue Dec 14, 2024 · 2 comments
Open

通过 eagle new创建的项目的一些疑问 #166

bowmansir opened this issue Dec 14, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@bowmansir
Copy link

通过 eagle new 创建的项目用的wire来管理依赖注入,在service中和repo中
var ProviderSet = wire.NewSet(NewWeXXXAccountService, NewUserServiceServer)
var ProviderSet = wire.NewSet(dal.Init, NewUserRepo, NewXXXRepo)
然后执行 cmd下的server的wire,生成的 wire_gen中并还没有包含我所依赖的service文件
还有在handle如何通过依赖注入来调用repo的方法呢,新版有没有demo参考下,打扰了

@qloog
Copy link
Contributor

qloog commented Dec 15, 2024

@bowmansir 已经为handler添加了wire支持,可以 重新创建个项目,或者看这里:

@qloog qloog added the enhancement New feature or request label Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants
@qloog @bowmansir and others