feature:后端路由注册和数据库注册方法与原始框架分离,自定业务不再干扰原始框架内容。

This commit is contained in:
pixelmaxQM
2024-06-23 17:01:39 +08:00
parent b628bd7769
commit 6e2140258e
7 changed files with 55 additions and 13 deletions
+9
View File
@@ -0,0 +1,9 @@
package initialize
import (
"gorm.io/gorm"
)
func bizModel(db *gorm.DB) error {
return db.AutoMigrate()
}