mirror of
https://github.com/flipped-aurora/gin-vue-admin.git
synced 2026-09-26 14:23:44 +00:00
* Beta:发布v2.7.5测试版本 (#1896) * 生产环境时移除console * 更新第三方库道最新版本,修正导致的兼容问题 * feat: 版本号变更,修复自动化历史的结构体描述 * feat: 放弃element的按需引用,增加自定义表单组件,替换原始的iframe引入模式。 * feat: 放开表单生成器的key输入 * feat: 自动化代码关联属性支持跨数据库关联 * fixed: 修复跨库关联模板 * feat: 允许清空跨数据关联的业务库选项 * feat: 增加用户搜索功能 * feat: 允许单条API同步 --------- Co-authored-by: task <121913992@qq.com> Co-authored-by: task <ms.yangdan@gmail.com> * feat: 更新逻辑内容至2.7.5版本,等待同步 * feat: update go.sum * fixed: 修复暗夜模式失效的bug * feat: 配置保存按钮移动到顶部 * fix: support pluginPath svg file as component show list when dev mode (#1902) * feat: i18n 前端增加繁体中文 * feat: i18n 后端增加繁体 * feat: i18n 前端增加繁体中文 * feat: i18n 细节调整 发布正式i18n版本 --------- Co-authored-by: task <121913992@qq.com> Co-authored-by: task <ms.yangdan@gmail.com> Co-authored-by: piexlMax(奇淼 <qimiaojiangjizhao@gmail.com> Co-authored-by: chenlianghong <clh021@gmail.com> Co-authored-by: krank <emosick@qq.com>
60 lines
1.7 KiB
Go
60 lines
1.7 KiB
Go
package core
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/flipped-aurora/gin-vue-admin/server/global"
|
|
"github.com/flipped-aurora/gin-vue-admin/server/initialize"
|
|
"github.com/flipped-aurora/gin-vue-admin/server/service/system"
|
|
"go.uber.org/zap"
|
|
)
|
|
|
|
type server interface {
|
|
ListenAndServe() error
|
|
}
|
|
|
|
func RunWindowsServer() {
|
|
if global.GVA_CONFIG.System.UseMultipoint || global.GVA_CONFIG.System.UseRedis {
|
|
// 初始化redis服务
|
|
initialize.Redis()
|
|
initialize.RedisList()
|
|
}
|
|
|
|
if global.GVA_CONFIG.System.UseMongo {
|
|
err := initialize.Mongo.Initialization()
|
|
if err != nil {
|
|
zap.L().Error(fmt.Sprintf("%+v", err))
|
|
}
|
|
}
|
|
// 从db加载jwt数据
|
|
if global.GVA_DB != nil {
|
|
system.LoadAll()
|
|
}
|
|
|
|
Router := initialize.Routers()
|
|
|
|
address := fmt.Sprintf(":%d", global.GVA_CONFIG.System.Addr)
|
|
s := initServer(address, Router)
|
|
|
|
global.GVA_LOG.Info("server run success on ", zap.String("address", address))
|
|
|
|
fmt.Printf(`
|
|
%s gin-vue-admin
|
|
%s:v2.7.5
|
|
加群方式:微信号:shouzi_1994 QQ群:470239250
|
|
项目地址:https://github.com/flipped-aurora/gin-vue-admin
|
|
插件市场:https://plugin.gin-vue-admin.com
|
|
GVA讨论社区:https://support.qq.com/products/371961
|
|
默认自动化文档地址:http://127.0.0.1%s/swagger/index.html
|
|
默认前端文件运行地址:http://127.0.0.1:8080
|
|
--------------------------------------版权声明--------------------------------------
|
|
** 版权所有方:flipped-aurora开源团队 **
|
|
** 版权持有公司:北京翻转极光科技有限责任公司 **
|
|
** 剔除授权标识需购买商用授权:https://gin-vue-admin.com/empower/index.html **
|
|
`,
|
|
global.Translate("core.server.welcomeTo"),
|
|
global.Translate("core.server.currentVersion"),
|
|
address)
|
|
global.GVA_LOG.Error(s.ListenAndServe().Error())
|
|
}
|