modified 增加结构体描述,完善自动化文档

This commit is contained in:
何秀钢
2021-05-14 11:33:14 +08:00
parent c37ea861eb
commit 0f45d3830a
10 changed files with 69 additions and 39 deletions

View File

@@ -1,7 +1,7 @@
package config
type Redis struct {
DB int `mapstructure:"db" json:"db" yaml:"db"`
DB int `mapstructure:"db" json:"db" yaml:"db"` // redis的哪个数据库
Addr string `mapstructure:"addr" json:"addr" yaml:"addr"` // 服务器地址:端口
Password string `mapstructure:"password" json:"password" yaml:"password"` // 密码
}