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

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

View File

@@ -1,16 +1,15 @@
package starter
import (
"pandax/base/config"
"pandax/base/global"
"pandax/pkg/global"
"github.com/gin-gonic/gin"
)
func RunWebServer(web *gin.Engine) {
server := config.Conf.Server
server := global.Conf.Server
port := server.GetPort()
if app := config.Conf.App; app != nil {
if app := global.Conf.App; app != nil {
global.Log.Infof("%s- Listening and serving HTTP on %s", app.GetAppInfo(), port)
} else {
global.Log.Infof("Listening and serving HTTP on %s", port)