liuxiaolong
2020-07-02 1b4337e04bc35c8b6f4931a5896f04884fef69c6
extend/config/config.go
@@ -87,6 +87,11 @@
var FaceDetectSet = &facedetect{}
type shop struct {
   Url string `mapstructure:"url"`
}
var ShopConf = &shop{}
// Init is an exported method that takes the environment starts the viper
// (external lib) and returns the configuration struct.
func Init(env string) {
@@ -105,4 +110,5 @@
   viper.UnmarshalKey("dbpersoncompare", DbPersonCompInfo)
   viper.UnmarshalKey("espersoncompare", EsCompServerInfo)
   viper.UnmarshalKey("elastic.basicFS", BasicFS)
   viper.UnmarshalKey("shop", ShopConf)
}