refactor: add database initialization entrypoint

This commit is contained in:
2026-07-23 13:55:49 +08:00
parent 50274184dc
commit 51ee510112
3 changed files with 11 additions and 3 deletions

View File

@@ -23,7 +23,7 @@ func main() {
if err != nil {
log.Fatal(err)
}
if err := initdb.InitUser(models.DBService); err != nil {
if err := initdb.New(models.DBService); err != nil {
log.Fatal(err)
}