refactor:

- source 初始化数据 new 实现
- service mysql 与 pgsql 分开实现
- 代码备注优化
This commit is contained in:
SliverHorn
2021-11-16 02:02:21 +08:00
parent f19e719cbb
commit b12a18a693
23 changed files with 1259 additions and 163 deletions

View File

@@ -8,8 +8,8 @@ import (
)
// GormPgSql 初始化 Postgresql 数据库
// Author piexlmax
// Author SliverHorn
// Author [piexlmax](https://github.com/piexlmax)
// Author [SliverHorn](https://github.com/SliverHorn)
func GormPgSql() *gorm.DB {
p := global.GVA_CONFIG.Pgsql
if p.Dbname == "" {