fix: missing account module
This commit is contained in:
parent
faa7387106
commit
2887a63a7a
|
@ -2,6 +2,7 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"git.lumeweb.com/LumeWeb/portal/account"
|
||||||
"git.lumeweb.com/LumeWeb/portal/api"
|
"git.lumeweb.com/LumeWeb/portal/api"
|
||||||
"git.lumeweb.com/LumeWeb/portal/api/registry"
|
"git.lumeweb.com/LumeWeb/portal/api/registry"
|
||||||
_config "git.lumeweb.com/LumeWeb/portal/config"
|
_config "git.lumeweb.com/LumeWeb/portal/config"
|
||||||
|
@ -12,7 +13,6 @@ import (
|
||||||
"git.lumeweb.com/LumeWeb/portal/storage"
|
"git.lumeweb.com/LumeWeb/portal/storage"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"go.uber.org/fx"
|
"go.uber.org/fx"
|
||||||
"go.uber.org/fx/fxevent"
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"net"
|
"net"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
@ -39,14 +39,15 @@ func main() {
|
||||||
fx.Decorate(func() *zap.Logger {
|
fx.Decorate(func() *zap.Logger {
|
||||||
return logger
|
return logger
|
||||||
}),
|
}),
|
||||||
fx.WithLogger(func(logger *zap.Logger) *fxevent.ZapLogger {
|
/* fx.WithLogger(func(logger *zap.Logger) *fxevent.ZapLogger {
|
||||||
return &fxevent.ZapLogger{Logger: logger}
|
return &fxevent.ZapLogger{Logger: logger}
|
||||||
}),
|
}),*/
|
||||||
fx.Invoke(initCheckRequiredConfig),
|
fx.Invoke(initCheckRequiredConfig),
|
||||||
fx.Provide(NewIdentity),
|
fx.Provide(NewIdentity),
|
||||||
db.Module,
|
db.Module,
|
||||||
storage.Module,
|
storage.Module,
|
||||||
cron.Module,
|
cron.Module,
|
||||||
|
account.Module,
|
||||||
protocols.BuildProtocols(config),
|
protocols.BuildProtocols(config),
|
||||||
api.BuildApis(config),
|
api.BuildApis(config),
|
||||||
fx.Provide(api.NewCasbin),
|
fx.Provide(api.NewCasbin),
|
||||||
|
|
Loading…
Reference in New Issue