feat: add auto migrate and init account

This commit is contained in:
engigu
2024-01-07 21:30:59 +08:00
parent 312c591063
commit 63f6e93894
9 changed files with 116 additions and 36 deletions
+3 -1
View File
@@ -12,6 +12,7 @@ import (
"github.com/gin-gonic/gin"
"message-nest/migrate"
"message-nest/models"
"message-nest/pkg/logging"
"message-nest/pkg/setting"
@@ -26,9 +27,10 @@ var (
)
func init() {
logging.Setup()
migrate.Setup()
setting.Setup()
models.Setup()
logging.Setup()
table.Setup()
env_service.Setup()
cron_service.Setup()