From a636ca67d99db33af61296cccad2689896dd3df5 Mon Sep 17 00:00:00 2001 From: KynixInHK Date: Mon, 8 Jul 2024 17:59:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86RedisConn=E7=B5=90?= =?UTF-8?q?=E6=A7=8B=E9=AB=94=E7=82=BAjson=E9=85=8D=E7=BD=AE=E9=AB=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- am_redis/redis.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/am_redis/redis.go b/am_redis/redis.go index 5077161..468ce54 100644 --- a/am_redis/redis.go +++ b/am_redis/redis.go @@ -18,10 +18,10 @@ var ( // redis连接结构体 type RedisConn struct { - Addr string - Port int - Password string - DB int + Addr string `json:"addr"` + Port int `json:"port"` + Password string `json:"password"` + DB int `json:"db"` } // redis连接参数默认值