优化结构

This commit is contained in:
Yvan
2026-08-20 23:02:06 +08:00
parent 63dbb4cfbc
commit e65cf0b1d0
338 changed files with 622 additions and 481 deletions
-23
View File
@@ -1,23 +0,0 @@
package data
import (
"kra/internal/data/migration"
datapayment "kra/internal/data/payment"
datasystem "kra/internal/data/system"
"gorm.io/gorm"
)
// migrateAll is the single data-layer migration entry point. Module-specific
// schema work stays with the module that owns its persistent objects.
func migrateAll(db *gorm.DB) error {
steps := []migration.Step{{
ID: "202608200001_data_infrastructure",
Migrate: func(db *gorm.DB) error {
return db.AutoMigrate(&integrationConfigPO{})
},
}}
steps = append(steps, datasystem.Migrations()...)
steps = append(steps, datapayment.Migrations()...)
return migration.Run(db, steps)
}