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

Injector结构体的CasbinEnforcer、Auth字段是否多余 #135

Open
TZY0101 opened this issue Aug 18, 2023 · 1 comment
Open

Injector结构体的CasbinEnforcer、Auth字段是否多余 #135

TZY0101 opened this issue Aug 18, 2023 · 1 comment

Comments

@TZY0101
Copy link

TZY0101 commented Aug 18, 2023

wire_gen.go文件的BuildInjector函数前面如下:func BuildInjector() (*Injector, func(), error),这个函数在app.go的Init()被调用,但是在这之后只有injector.MenuSrv、injector.Engine被使用,所以Injector结构体的CasbinEnforcer、Auth字段是否多余呢?

@LyricTian
Copy link
Owner

嗯,可以查看最新 V10 版本的代码,这次版本迭代较大一些,每个模块的处理逻辑更加清晰了

https://github.com/LyricTian/gin-admin/blob/feat/v10/internal/wirex/injector.go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants