Files
energy-management-system/config/config.go
2024-08-30 11:55:19 +08:00

21 lines
623 B
Go

package config
//环境 全称 简写
//开发环境 development dev
//测试环境 testing test
//灰度/预发布环境 staging/pre-production stag
//生产环境 production prod
const (
// AppEnv 应用环境 dev,test,stag,prod
AppEnv = "dev"
// EnvConfig 环境配置
EnvConfig = "config.yaml"
)
type Config struct {
IsDebug bool `mapstructure:"is_debug" json:"is_debug" yaml:"is_debug"`
Db DbConf `mapstructure:"db" json:"db" yaml:"db"`
Service ServiceConf `mapstructure:"service" json:"service" yaml:"service"`
}