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

+4 -4
View File
@@ -1,8 +1,8 @@
package conf
type ServerConfig struct {
Port int `mapstructure:"port" yaml:"port"`
Mode string `mapstructure:"mode" yaml:"mode"` // debug / release
AllowOrigins []string `mapstructure:"allow_origins" yaml:"allow_origins"`
Version string `mapstructure:"mode" yaml:"version"`
Port int `yaml:"port"`
Mode string `yaml:"mode"` // debug / release
AllowOrigins []string `yaml:"allow_origins"`
Version string `yaml:"version"`
}