From 1fd7e37234d1b9058526495bdc59b426570d4d18 Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期一, 08 六月 2020 14:42:00 +0800
Subject: [PATCH] add shopConf

---
 extend/config/config.go |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/extend/config/config.go b/extend/config/config.go
index 48af440..ff08f67 100644
--- a/extend/config/config.go
+++ b/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)
 }

--
Gitblit v1.8.0