fix: 修复多库模式不能使用 pg 的问题
This commit is contained in:
@@ -31,7 +31,7 @@ func GormPgSql() *gorm.DB {
|
||||
}
|
||||
|
||||
// GormPgSqlByConfig 初始化 Postgresql 数据库 通过参数
|
||||
func GormPgSqlByConfig(p config.DB) *gorm.DB {
|
||||
func GormPgSqlByConfig(p config.Pgsql) *gorm.DB {
|
||||
if p.Dbname == "" {
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user