From c7a8ae9004aab2ae40be3d4b12cd31d184da1549 Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期六, 31 八月 2019 15:55:10 +0800 Subject: [PATCH] facedetect done --- 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 35e83f6..450cc18 100644 --- a/extend/config/config.go +++ b/extend/config/config.go @@ -69,6 +69,10 @@ var DBconf = &database{} +type facedetect struct { + Url string `mapstructure:"url"` +} + type dbpersoncompare struct { Url string `mapstructure:"url"` } @@ -81,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. @@ -100,6 +105,7 @@ 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