认证授权主要流程实现

This commit is contained in:
2025-03-18 17:57:07 +08:00
parent 19530d9d40
commit 6ddf1118a5
37 changed files with 2209 additions and 180 deletions

18
init/rds/rds.go Normal file
View File

@@ -0,0 +1,18 @@
package rds
import (
"net"
"platform/init/env"
"github.com/redis/go-redis/v9"
)
var Client *redis.Client
func Init() {
Client = redis.NewClient(&redis.Options{
Addr: net.JoinHostPort(env.RedisHost, env.RedisPort),
DB: env.RedisDb,
Password: env.RedisPass,
})
}