From 49f30a4e82ae1afa481bf4f947f087fbeafc90eb Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期二, 22 十月 2019 17:39:02 +0800
Subject: [PATCH] update swagger
---
extend/config/config.go | 22 ----------------------
1 files changed, 0 insertions(+), 22 deletions(-)
diff --git a/extend/config/config.go b/extend/config/config.go
index df3e1d6..0a7b6b0 100644
--- a/extend/config/config.go
+++ b/extend/config/config.go
@@ -11,8 +11,6 @@
JwtExpire string `mapstructure: "jwtExpire"`
Url string `mapstructure: "url"`
AnalyServerId string `mapstructure: "analyServerId"`
- ImageUrl string `mapstructure: "imageUrl"`
- PublicDomain string `mapstructure: "publicDomain"`
NetworkAdapter string `mapstructure: "networkAdapter"`
DeviceNum string `mapstructure: "deviceNum"` //璁惧缂栧彿
@@ -26,24 +24,8 @@
var Server = &server{}
-type weedfs struct {
- Ip string `mapstructure: "ip"`
- UploadPort int `mapstructure: "uploadport"`
- VisitPort int `mapstructure: "visitport"`
-}
-
-var WeedFs = &weedfs{}
-
-type database struct {
- Drive string `mapstructure:"drive"`
- Name string `mapstructure:"name"`
- FilePath string `mapstructure:"filepath"`
-}
-
// wp add es 绱㈠紩 浠ュ強 IP port
type esinfo struct {
- Masterip string `mapstructure:"masterip"`
- Httpport string `mapstructure:"httpport"`
Shards string `mapstructure:"shards"`
EsIndex esindexlist `mapstructure:"index"`
}
@@ -67,8 +49,6 @@
var SoPath = &sopath{}
var EsInfo = &esinfo{}
-
-var DBconf = &database{}
type facedetect struct {
Ip string `mapstructure:"Ip"`
@@ -104,8 +84,6 @@
}
viper.UnmarshalKey("es", EsInfo)
viper.UnmarshalKey("server", Server)
- viper.UnmarshalKey("database", DBconf)
- viper.UnmarshalKey("weedfs", WeedFs)
viper.UnmarshalKey("sopath",SoPath)
viper.UnmarshalKey("facedetect", FaceDetectSet)
viper.UnmarshalKey("dbpersoncompare",DbPersonCompInfo)
--
Gitblit v1.8.0