This commit is contained in:
fallen-angle
2022-01-17 17:38:08 +08:00
parent 0a5379c8f3
commit 2280679053
19 changed files with 283 additions and 19 deletions

View File

@@ -1,12 +1,21 @@
package global
import (
"fmt"
"nCovTrack-Backend/config"
"github.com/gin-gonic/gin"
"go.uber.org/zap"
"gorm.io/gorm"
)
var (
ServerSettings config.ServerConfig
Db *gorm.DB
RootRouter *gin.RouterGroup
Logger *zap.SugaredLogger
)
func GetListenOn() string {
return fmt.Sprintf("%s:%d", ServerSettings.Listen, ServerSettings.Port)
}