wip: 24/10/28
This commit is contained in:
@ -7,6 +7,7 @@ import (
|
||||
"uauth/internal/store/cache"
|
||||
"uauth/internal/store/db"
|
||||
"uauth/internal/tool"
|
||||
"uauth/model"
|
||||
)
|
||||
|
||||
func initServe() *cobra.Command {
|
||||
@ -16,6 +17,7 @@ func initServe() *cobra.Command {
|
||||
tool.TablePrinter(opt.Cfg)
|
||||
tool.Must(cache.Init(opt.Cfg.Svc.Cache))
|
||||
tool.Must(db.Init(cmd.Context(), opt.Cfg.Svc.DB))
|
||||
tool.Must(model.Init(db.Default.Session()))
|
||||
return serve.Run(cmd.Context())
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user