feat: 重构认证控制器,统一类型命名为auth

This commit is contained in:
2025-12-17 16:22:10 +08:00
parent fe9601baf4
commit 70c9094001
3 changed files with 14 additions and 14 deletions

View File

@@ -14,8 +14,8 @@ func Provide(opts ...opt.Option) error {
if err := container.Container.Provide(func(
app *app.Config,
jwt *jwt.JWT,
) (*authController, error) {
obj := &authController{
) (*auth, error) {
obj := &auth{
app: app,
jwt: jwt,
}
@@ -25,14 +25,14 @@ func Provide(opts ...opt.Option) error {
return err
}
if err := container.Container.Provide(func(
authController *authController,
auth *auth,
tenant *tenant,
user *user,
) (contracts.HttpRoute, error) {
obj := &Routes{
authController: authController,
tenant: tenant,
user: user,
auth: auth,
tenant: tenant,
user: user,
}
if err := obj.Prepare(); err != nil {
return nil, err