This commit is contained in:
2024-08-26 17:20:13 +08:00
commit 51090658a2
39 changed files with 2231 additions and 0 deletions

19
config/config.go Normal file
View File

@@ -0,0 +1,19 @@
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 {
Db DbConf `mapstructure:"db" json:"db" yaml:"db"`
Service ServiceConf `mapstructure:"service" json:"service" yaml:"service"`
}