【优化】租户功能,框架优化

This commit is contained in:
PandaGoAdmin
2022-07-18 18:17:11 +08:00
parent d33bd39570
commit ae38e7bcef
60 changed files with 861 additions and 647 deletions

13
pkg/global/global.go Normal file
View File

@@ -0,0 +1,13 @@
package global
import (
"github.com/sirupsen/logrus"
"gorm.io/gorm"
"pandax/base/config"
)
var (
Log *logrus.Logger // 日志
Db *gorm.DB // gorm
Conf *config.Config
)