feat: add resetpwd cmd -- fix init useless process

This commit is contained in:
engigu
2026-02-27 23:19:50 +08:00
parent dac413d985
commit 6e50172fd3
2 changed files with 8 additions and 2 deletions
+7 -1
View File
@@ -21,10 +21,16 @@ type App struct {
}
func New() *App {
app := InitBasic()
app.initRouter()
return app
}
// InitBasic 初始化基础环境(配置和数据库),不启动后台服务和路由
func InitBasic() *App {
app := &App{}
app.initConfig()
app.initDatabase()
app.initRouter()
return app
}