1 Star 0 Fork 0

gowebframe3/webframe

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
InitDb.go 548 Bytes
一键复制 编辑 原始数据 按行查看 历史
leijmdas 提交于 2026-04-12 08:14 +08:00 . add
package code
import (
"gitee.com/gowebframe3/webframe.git/data/code/internal/dbentity"
"gitee.com/gowebframe3/webframe.git/domain/db/dbiface"
"gitee.com/gowebframe3/webframe.git/goconfig/ichubconfig"
"gitee.com/gowebframe3/webframe.git/goconfig/ichublog/golog"
)
func InitDb() error {
golog.Info("init db")
ichubconfig.FindBeanIchubConfig().CheckSoftwareEnv()
//idb.InitDb()
initCommon()
return dbiface.AutoMigrate()
}
func initCommon() error {
golog.Info("InitCommon db")
return dbiface.AutoMigrate(dbentity.NewCreditSchemeLine())
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/gowebframe3/webframe.git
git@gitee.com:gowebframe3/webframe.git
gowebframe3
webframe
webframe
6b9be9befa4e

搜索帮助