Refine some structs and handle cycle import

This commit is contained in:
Granty1
2020-04-05 09:18:25 +08:00
parent 6db275ca39
commit 1891c1bcbc
15 changed files with 146 additions and 293 deletions
+4 -4
View File
@@ -11,9 +11,9 @@ import (
func RunWindowsServer() {
if global.GVA_CONFIG.System.UseMultipoint {
// 初始化redis服务
init.RegisterRedis()
init.Redis()
}
Router := init.RegisterRouter()
Router := init.Routers()
Router.Static("/form-generator", "./resource/page")
address := fmt.Sprintf(":%d", global.GVA_CONFIG.System.Addr)
s := &http.Server{
@@ -24,11 +24,11 @@ func RunWindowsServer() {
MaxHeaderBytes: 1 << 20,
}
time.Sleep(10 * time.Microsecond)
init.L.Debug("server run success on ", address)
global.GVA_LOG.Debug("server run success on ", address)
fmt.Printf(`欢迎使用 Gin-Vue-Admin
默认自动化文档地址:http://127.0.0.1%s/swagger/index.html
默认前端文件运行地址:http://127.0.0.1:8080
`, s.Addr)
init.L.Error(s.ListenAndServe())
global.GVA_LOG.Error(s.ListenAndServe())
}