修改了RedisConn結構體為json配置體
This commit is contained in:
parent
d2c7fc3bcf
commit
a636ca67d9
@ -18,10 +18,10 @@ var (
|
|||||||
|
|
||||||
// redis连接结构体
|
// redis连接结构体
|
||||||
type RedisConn struct {
|
type RedisConn struct {
|
||||||
Addr string
|
Addr string `json:"addr"`
|
||||||
Port int
|
Port int `json:"port"`
|
||||||
Password string
|
Password string `json:"password"`
|
||||||
DB int
|
DB int `json:"db"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// redis连接参数默认值
|
// redis连接参数默认值
|
||||||
|
Loading…
Reference in New Issue
Block a user