feat: 支持redis缓存权限等信息

This commit is contained in:
meilin.huang
2022-12-26 20:53:07 +08:00
parent 4fec38724d
commit 4a26bb3ba5
11 changed files with 200 additions and 86 deletions

View File

@@ -18,6 +18,8 @@ func RunWebServer() {
printBanner()
// 初始化并赋值数据库全局变量
initDb()
// 有配置redis信息则初始化redis。多台机器部署需要使用redis存储验证码、权限、公私钥等
initRedis()
// 运行web服务
runWebServer()
}