From 4095cde22505a6d2fe8d7f31b009a46242e2164a Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期五, 06 十二月 2019 17:44:02 +0800
Subject: [PATCH] add RuleApply2All

---
 syssetApi.go |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/syssetApi.go b/syssetApi.go
index 7fd8669..3739d03 100644
--- a/syssetApi.go
+++ b/syssetApi.go
@@ -137,6 +137,25 @@
 	return res.Success
 }
 
+func (api SysSetApi) UpdateChannelCount(pollChannelCount int, videoChannelCount int) bool{
+	url := api.getBasicUrl() + DATA_URL_PREFIX + "/pollConfig/updateChannelCount"
+	client := NewClient()
+	paramBody :=make(map[string]interface{},0)
+	paramBody["pollChannelCount"] = pollChannelCount
+	paramBody["videoChannelCount"] = videoChannelCount
+	body,err := client.DoPostRequest(url,CONTENT_TYPE_JSON, paramBody,nil,nil)
+	if err != nil {
+		return false
+	}
+
+	var res Result
+	if err = json.Unmarshal(body, &res); err != nil {
+		return false
+	}
+
+	return res.Success
+}
+
 func (api SysSetApi) AlarmEdit(paramBody map[string]interface{}) (bool,interface{}){
 	url := api.getBasicUrl() + DATA_URL_PREFIX + "/sysset/alarmEdit"
 	client := NewClient()

--
Gitblit v1.8.0