From 9fc8b8adf2f2856a545682e185512aa0e45ac06c Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期四, 05 九月 2019 14:57:07 +0800
Subject: [PATCH] add go.mod go.sum

---
 extend/config/config.go |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/extend/config/config.go b/extend/config/config.go
index 20e52bc..450cc18 100644
--- a/extend/config/config.go
+++ b/extend/config/config.go
@@ -1,9 +1,8 @@
 package config
 
 import (
-	"log"
-
 	"github.com/spf13/viper"
+	"log"
 )
 
 type server struct {
@@ -54,15 +53,25 @@
 	Dbtablepersons index `mapstructure:"dbtablepersons"`
 	Personaction   index `mapstructure:"personaction"`
 }
-
 type index struct {
 	IndexName string `mapstructure:"index"`
 	IndexType string `mapstructure:"type"`
 }
 
+type sopath struct {
+	Ip string `mapstructure:"ip"`
+	Port string `mapstructure:"port"`
+}
+
+var SoPath = &sopath{}
+
 var EsInfo = &esinfo{}
 
 var DBconf = &database{}
+
+type facedetect struct {
+	Url string `mapstructure:"url"`
+}
 
 type dbpersoncompare struct {
 	Url string `mapstructure:"url"`
@@ -76,6 +85,7 @@
 
 var EsCompServerInfo = &espersoncompare{}
 
+var FaceDetectSet = &facedetect{}
 
 // Init is an exported method that takes the environment starts the viper
 // (external lib) and returns the configuration struct.
@@ -94,6 +104,8 @@
 	viper.UnmarshalKey("redis", RedisConf)
 	viper.UnmarshalKey("database", DBconf)
 	viper.UnmarshalKey("weedfs", WeedFs)
+	viper.UnmarshalKey("sopath",SoPath)
+	viper.UnmarshalKey("facedetect", FaceDetectSet)
 	viper.UnmarshalKey("dbpersoncompare",DbPersonCompInfo)
 	viper.UnmarshalKey("espersoncompare", EsCompServerInfo)
 }

--
Gitblit v1.8.0