From d9e01c51a525adf4f2393a95f87604e3b6e79ad2 Mon Sep 17 00:00:00 2001 From: sunty <1172534965@qq.com> Date: 星期二, 19 十一月 2019 15:57:19 +0800 Subject: [PATCH] fix all --- extend/config/config.go | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/extend/config/config.go b/extend/config/config.go index 4dd7ec8..a62cdfa 100644 --- a/extend/config/config.go +++ b/extend/config/config.go @@ -6,6 +6,10 @@ "github.com/spf13/viper" ) +type threshold struct { + Value int `mapstructure: "value"` + Color string `mapstructure: "color"` +} type server struct { Runmode string `mapstructure: "runmode"` JwtSecret string `mapstructure: "jwtSecret"` @@ -22,7 +26,9 @@ ChannelCount string `mapstructure: "channelCount"` //閫氶亾涓暟 DiskCount string `mapstructure: "diskCount"` //纭洏涓暟 - SysServerPort string `mapstructure: "SysServerPort"` + SudoPassword string `mapstructure: "sudoPassword"` //绯荤粺瀵嗙爜 + SysThresholds []threshold `mapstructure: "sysThresholds"` + PTZSpeed int `mapstructure: "ptzSpeed"` // 浜戝彴绉诲姩閫熷害 } var Server = &server{} @@ -34,10 +40,7 @@ } type esindexlist struct { - VideoPersons index `mapstructure:"videopersons"` - DbTables index `mapstructure:"dbtables"` - Dbtablepersons index `mapstructure:"dbtablepersons"` - Personaction index `mapstructure:"personaction"` + AiOcean index `mapstructure:"aiOcean"` } type index struct { IndexName string `mapstructure:"index"` -- Gitblit v1.8.0