|
@@ -6,6 +6,7 @@ type Config struct {
|
|
|
Mysql Mysql `mapstructure:"mysql" json:"mysql" yaml:"mysql"`
|
|
|
Redis Redis `mapstructure:"redis" json:"redis" yaml:"redis"`
|
|
|
OracleJY OracleJY `mapstructure:"oracle_jy" json:"oracle_jy" yaml:"oracle_jy"`
|
|
|
+ Business Business `mapstructure:"business" json:"business" yaml:"business"`
|
|
|
}
|
|
|
|
|
|
// Serve gin服务配置
|
|
@@ -65,3 +66,8 @@ type OracleJY struct {
|
|
|
Password string `mapstructure:"password" json:"password" yaml:"password" description:"oracle数据库密码"`
|
|
|
LibDir string `mapstructure:"lib_dir" json:"lib_dir" yaml:"lib_dir" description:"oracle数据库组件"`
|
|
|
}
|
|
|
+
|
|
|
+// Business 商家的配置
|
|
|
+type Business struct {
|
|
|
+ JiaYueIndexSyncMinute int `mapstructure:"jiayue-index-sync-minute" json:"jiayue-index-sync-minute" yaml:"jiayue-index-sync-minute" description:"嘉悦同步N分钟前至现在的指标(负数)"`
|
|
|
+}
|