package config // Config 配置模型 type Config struct { Server ServerConfig `json:"server"` // 服务器配置 } // ServerConfig 服务器配置 type ServerConfig struct { Port int `json:"port"` // 服务器端口 }