package config // ServerConfig 服务器配置 type ServerConfig struct { Host string `mapstructure:"host"` Port int `mapstructure:"port"` Mode string `mapstructure:"mode"` } // LogConfig 日志配置 type LogConfig struct { Level string `mapstructure:"level"` Encoding string `mapstructure:"encoding"` OutputPaths []string `mapstructure:"output_paths"` } // RateLimitConfig 限流配置 type RateLimitConfig struct { Enabled bool `mapstructure:"enabled"` RequestsPerMinute int `mapstructure:"requests_per_minute"` } // UploadConfig 上传配置 type UploadConfig struct { MaxFileSize int64 `mapstructure:"max_file_size"` AllowedTypes []string `mapstructure:"allowed_types"` }