From 74f675b955abcdadaa556c87fe3ec834c487271b Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期四, 14 十一月 2019 15:59:02 +0800
Subject: [PATCH] fix ret
---
extend/config/config.go | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/extend/config/config.go b/extend/config/config.go
index 4dd7ec8..2ab67ab 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{}
--
Gitblit v1.8.0