refactor(conf): 移除冗余的 mapstructure 结构体标签

This commit is contained in:
unclesam committed 2026-07-25 15:13:42 +08:00
1 parent 7f68cecf21
commit ddf28f59cf
6 files changed
+37 -32

No files matched your search

+3 -3
View File
@@ -1,7 +1,7 @@
package conf
type RedisConfig struct {
Addr string `mapstructure:"addr" yaml:"addr"`
Password string `mapstructure:"password" yaml:"password"`
Db int `mapstructure:"db" yaml:"db"`
Addr string `yaml:"addr"`
Password string `yaml:"password"`
Db int `yaml:"db"`
}