feat: update system

This commit is contained in:
wenjianzhang committed 2020-07-06 18:13:29 +08:00
1 parent 8a1614f64d
commit 916e30005f
10 files changed
+678 -688

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ func Setup(driver string) {
// db.Setup()
//}
if dbType == "pgsql" {
if dbType == "postgres" {
var db = new(PgSql)
db.Setup()
}
+1
View File
@@ -2,6 +2,7 @@ package database
import (
"github.com/jinzhu/gorm"
_ "github.com/jinzhu/gorm/dialects/postgres"
log "github.com/sirupsen/logrus"
"go-admin/global"
"go-admin/tools/config"