add
wangpengfei
2023-08-26 cee959716548f41471d56a653eb3815be9f921ca
1
2
3
4
5
6
7
package config
 
type Redis struct {
    Addr     string `mapstructure:"addr" json:"addr" yaml:"addr"`             // 服务器地址:端口
    Password string `mapstructure:"password" json:"password" yaml:"password"` // 密码
    DB       int    `mapstructure:"db" json:"db" yaml:"db"`                   // redis的哪个数据库
}