feat 初始化

This commit is contained in:
2026-10-29 10:12:22 +08:00
parent 332d812347
commit 09c1df8a22
81 changed files with 2211 additions and 7821 deletions

View File

@@ -29,7 +29,7 @@ func initOneDB(cfg *config.MySQLConfig) (*gorm.DB, error) {
mysql.Open(cfg.Dsn),
&gorm.Config{
TranslateError: true,
Logger: logger.Default.LogMode(parseLogLevel(cfg.LogLevel)),
Logger: NewGormLogger(parseLogLevel(cfg.LogLevel)),
},
)
if err != nil {