新增admin

This commit is contained in:
yan.y
2024-03-29 22:05:43 +08:00
parent f716403e8e
commit 53e9f1cbab
12 changed files with 1223 additions and 24 deletions
+7 -5
View File
@@ -2,13 +2,15 @@ package g
import (
"os"
"strconv"
"strings"
)
var (
TestRedisPwd = strings.TrimSpace(os.Getenv("redisProPwd"))
TestMysqlAddr = strings.TrimSpace(os.Getenv("mysqlAddr"))
TestMysqlPwd = strings.TrimSpace(os.Getenv("mysqlPwd"))
TestMongoAddr = strings.TrimSpace(os.Getenv("mongoAddr"))
TestDbType = strings.TrimSpace(os.Getenv("dbType"))
TestRedisPwd = strings.TrimSpace(os.Getenv("redisProPwd"))
TestMysqlIp = strings.TrimSpace(os.Getenv("mysqlIp"))
TestMysqlPort, _ = strconv.Atoi(os.Getenv("mysqlAddr"))
TestMysqlPwd = strings.TrimSpace(os.Getenv("mysqlPwd"))
TestMongoAddr = strings.TrimSpace(os.Getenv("mongoAddr"))
TestDbType = strings.TrimSpace(os.Getenv("dbType"))
)