updated

This commit is contained in:
landaiqing
2024-11-14 01:58:20 +08:00
parent c95d5fc041
commit 3b8e3df27a
83 changed files with 172212 additions and 343 deletions

View File

@@ -0,0 +1,12 @@
package redisx
import "github.com/redis/go-redis/v9"
func NewRedis(host, password string, db int) *redis.Client {
rdb := redis.NewClient(&redis.Options{
Addr: host,
Password: password,
DB: db,
})
return rdb
}

View File

@@ -0,0 +1,6 @@
package types
type RedisToken struct {
AccessToken string `json:"access_token"`
UID string `json:"uid"`
}